But, Micha, I probably put something, or understood something, incorrectly due to my rather inferior english language skills
Let me put it simple. If you look at the code, you'll see the "q" variable. It holds thee "maximum kilograms per second" value. Later on, I use the "maxFt" variable, which represent "maximum kilograms per time step" value. And I was really unable to see the flaw in "ft" variable, which holds "current kilograms per second" value, and used it in my calculations! Instead of converting it to "current kilograms per time step", like I did with "maxFt". You noticed it:
and now I am amazed how didn't I noticed it Thank you! And may this help someone somedayAnd right before you put ft into the equation you calculateCode: Select all
ft = ftpers * dt
Edit: I tested it right away, though I am at work This solution works perfect, and indeed it solves both problems. Thanks to Micha I optimized my code.
P.S. BTW how do I attach a file to the post?