Undefined variable in Mathcad ODE solve block
- November 14, 2013
- 3 replies
- 3734 views
Hey guys, I am a Chemical Engineering Grad Student taking a programming class, which has never been one of my strongest subjects.
I am currently trying to solve a system of differential equations governing an emergency shut down in a water reservoir system using the ODE Solve Block in Mathcad and I am trying to monitor the affect of the diameter of my tank (Di) from 5ft to 10ft, and the value of the downstream head (hstar) from 0 to hstart in the program attached. However, I keep getting that my variable Di is undefined since it is what I am inputing into the builtin Odesolve function. If I define Di as having units of ft, the Odesolve function tells me I have too many initial conditions.
Please help me figure out how to have Di as a changing input variable while having it defined in the preliminary equations!!!!
Thank you!
Emilia

