11-21-2009 07:35 PM
I want to use the ODE Runge Kutta 4th order.vi to calculate X values from F(X,t). The question is the following (see attached file):
In the AA_SR.vi I have four X variables: x_CH4, x_CO2, T, and p.
The time is "z" (start:0, end:12, step rate:0.5).
At start time (z=0), the four X0 variables are given as the X0 input (0, 0, 793.15, 29)
The four F(X,T) values are the numeric values of dx_CH4_dz, dx_CO2_dz, dT_dz, and dp_dz, respectively. I want to insert them to the ODE R-K vi from the AA_SR vi but at every step rate I want the calculated values (X values solution) to be fed as input to the AA_SR.vi and repeat this procedure (therefore at every step rate I will have new X0 (which are the previous step's X values) and new F(X,t) values) until the end time (z=12).
What kind of procedure is needed to accomplish this?
11-23-2009 07:07 AM
11-23-2009 07:37 AM
11-23-2009 04:57 PM
I am thinking of a "for loop" structure from z=0 to 12. But how should I implement it with the vi?