LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ODE Runge Kutta 4th order.vi & Structure

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?

0 Kudos
Message 1 of 4
(2,731 Views)
0 Kudos
Message 2 of 4
(2,697 Views)
The LabVIEW version is 8.6
0 Kudos
Message 3 of 4
(2,692 Views)

I am thinking of a "for loop" structure from z=0 to 12. But how should I implement it with the vi?

0 Kudos
Message 4 of 4
(2,676 Views)