Mathematica How can I fix the sign issue in my NDSolve command in Mathematica?

  • Thread starter Thread starter burcuugur
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion centers on a user attempting to model a process using mass and energy balances with NDSolve in Mathematica. They encounter an issue where the solver reaches the maximum number of steps when using a "+" sign in a specific equation involving density, energy change, and a derivative. The user notes that the equation works with a "-" sign instead, but they believe the correct sign should be "+". They seek assistance and have attached their Mathematica file for review. Other participants suggest that the attachment may not have been properly uploaded and recommend simplifying the problem to ensure the NDSolve expression is clear and readable for troubleshooting. There is also a mention of adjusting the MaxSteps parameter to potentially resolve the issue.
burcuugur
Messages
2
Reaction score
0
Hi,

I'm trying to model a process by making mass and energy balances using the NDSolve. It reaches the maximum number of steps

It is working when I put "-" sign in front of this [Rho]p*(1 - ec)*\[CapitalDelta]H*D[q[z, t], t] (in 3rd equation) in the NDSolve command. But it should be "+" sign.

I attached the mathematica file.

I would really appreciate some help. This is really important for me.
 

Attachments

Last edited:
Physics news on Phys.org
burcuugur said:
I attached the mathematica file.

I don't see the attached notebook. Perhaps something didn't get clicked on. Perhaps there is some restriction involved.

If you could simplify your problem down enough that you could just scrape your NDSolve[] expression, paste it into your post and then edit it to make certain that it was all readable then that might be enough.

If you scrape and paste then carefully check it after you complete the post and edit as necessary to make certain it is all there and readable.
 
Sorry for that. I attached it now.
 
MaxSteps->more?
 

Similar threads

Back
Top