- #1
member 428835
Hi PF!
I have a system of 4 first order linear ODE's, call each ODE ##\psi_1,...,\psi_4 : \psi = \psi(x,y,z,t)##. However, there are three algebraic variables (not ##x,y,z,t##, let's call them ##c_1,c_2,c_3##) that must be solved for as well, and I have three different (non-differential) equations to solve for them, call those ##\alpha_1, \,\, \alpha_2, \,\, \alpha_3 : \alpha_i = \alpha_i(c_1,c_2,c_3)##. I need to solve this system.
I have been using ode15s in MATLAB, a stiff solver. Typically this method works but since there are algebraic variables whose governing equations are not differential, the ode15s function is not working. Any ideas how to set this up?
Thanks so much!
Josh
I have a system of 4 first order linear ODE's, call each ODE ##\psi_1,...,\psi_4 : \psi = \psi(x,y,z,t)##. However, there are three algebraic variables (not ##x,y,z,t##, let's call them ##c_1,c_2,c_3##) that must be solved for as well, and I have three different (non-differential) equations to solve for them, call those ##\alpha_1, \,\, \alpha_2, \,\, \alpha_3 : \alpha_i = \alpha_i(c_1,c_2,c_3)##. I need to solve this system.
I have been using ode15s in MATLAB, a stiff solver. Typically this method works but since there are algebraic variables whose governing equations are not differential, the ode15s function is not working. Any ideas how to set this up?
Thanks so much!
Josh