Page 1 of 1

Showing maximum Slope

Posted: Fri May 19, 2023 8:04 am
by martin.michel
Hello everyone,
I am facing a small problem that I somehow can not solve alone.
With the help of the program I have mapped a recycling process in which two results are available. The mass of recycled material in kg and the CO2 lost in kg.
At the end, the CO2 produced should be divided by the recycled material displayed.
The background is that we have the amount of CO2 consumed by the new material.

This value represents the maximum slope, is there a function for this?
Or does anyone have another idea how to display this final value.

Re: Showing maximum Slope

Posted: Fri May 19, 2023 8:34 am
by Administrator
I'm not sure I really understand what you are trying to get at.

Are you trying to calculate
max slope = CO2 produced / recycled material displayed

You don't need any special function for this. You might want to use ZIDZ to prevent any floating point errors.

Re: Showing maximum Slope

Posted: Sat May 20, 2023 1:03 am
by tomfid
You can use SAMPLE IF TRUE if you're trying to capture the maximum over time.

Re: Showing maximum Slope

Posted: Sat May 20, 2023 6:53 am
by martin.michel
Thanks for the hints, I think I have a thinking error in there.
Actually I need only the final value as output under "CO2 per kg".
I have attached the model here.

Re: Showing maximum Slope

Posted: Mon May 22, 2023 5:52 am
by martin.michel
When running the simulation, I get a n very high value for CO2/Kg at the beginning. I need only the final values for these variables to perform the operation.

Re: Showing maximum Slope

Posted: Tue May 23, 2023 2:34 pm
by Administrator
I'd suggest fixing the unit errors before you look at any results from the model.

To get the final values, display a table of the parameter you need, the values will be there.