The system allows the creation of differential-algebraic equation (DAE) models, although the solution facilities for algebraic equations are somewhat limited.
Its be described using a simple example.
dx1/dt = (-Ay-x1) / T1
dx/dt = (x1-y) / T2
y = x²
The initial conditions are: x = 0 , x1=1 at t=0
As with the algebraic system it is convenient to consider the model as consisting of sections:
Each of these sections will be described briefly.
x1, x, yThe variables are the unknowns in the model. As discussed elsewhere, there are two sorts of variables in DAEs, those which may appear as derivatives in the differential equations, and the `algebraic' variables which do not. This distinction is not made in this section, which serves mainly to define the names to be used for variables.
A=1 ; T1=1 T2 = 2`Parameters' as distinct from `unknowns' in a mathematical problem are quantities which the user knows, but which might be changed at some point to see their effect. It is convenient to give them symbols rather than simply numbers.
A parameter may often be a physical property, e.g. a heat capacity, which can appear several times in a set of equations. If the parameter is defined in one place, then making one change will result in the new parameter value being used throughout the model.
This section of the model enables parameters to be defined and given values if required. If no values are given the parameter defaults to zero. New values can be given when the spreadsheet has been generated.
y = x*xThese are differential equations:
x1.dt = (-A*y-x1)/T1 x.dt = (x1-x)/T2This is the main part of the model and contains the differential and algebraic equations which describe the model. Note the following:
x=0 ; x1=0This section provides another place where initial values may be given for variables. If no initial values is set for a variable which requires it, then it defaults to zero.
Clicking Show Model Data will provide a listing of the complete model. This can be copied and pasted into a text file, e.g. in Windows a Notepad .txt file, save and used to recreate your model.