@@ -21,15 +21,15 @@ to manipulate.
2121### Example: ODE
2222
2323Let's build an ODE. First we define some variables. In a differential equation
24- system, we need to differentiate between our dependent variables, independent
24+ system, we need to differentiate between our unknown variables, independent
2525variables, and parameters. Therefore we label them as follows:
2626
2727``` julia
2828using ModelingToolkit
2929
3030# Define some variables
3131@IVar t
32- @DVar x (t) y (t) z (t)
32+ @Unknown x (t) y (t) z (t)
3333@Deriv D' ~ t
3434@Param σ ρ β
3535```
@@ -87,12 +87,12 @@ f = ODEFunction(de)
8787
8888We can also build nonlinear systems. Let's say we wanted to solve for the steady
8989state of the previous ODE. This is the nonlinear system defined by where the
90- derivatives are zero. We could use dependent variables for our nonlinear system
90+ derivatives are zero. We could use unknown variables for our nonlinear system
9191(for direct compatibility with the above ODE code), or we can use non-tagged
9292variables. Here we will show the latter. We write:
9393
9494``` julia
95- @DVar x y z
95+ @Unknown x y z
9696@Param σ ρ β
9797
9898# Define a nonlinear system
@@ -191,7 +191,7 @@ structure is as follows:
191191 the system of equations.
192192- Name to subtype mappings: these describe how variable ` subtype ` s are mapped
193193 to the contexts of the system. For example, for a differential equation,
194- the dependent variable corresponds to given subtypes and then the ` eqs ` can
194+ the unknown variable corresponds to given subtypes and then the ` eqs ` can
195195 be analyzed knowing what the state variables are.
196196- Variable names which do not fall into one of the system's core subtypes are
197197 treated as intermediates which can be used for holding subcalculations and
@@ -262,7 +262,7 @@ syntactic sugar in some form. For example, the variable construction:
262262
263263``` julia
264264@IVar t
265- @DVar x (t) y (t) z (t)
265+ @Unknown x (t) y (t) z (t)
266266@Deriv D' ~ t
267267@Param σ ρ β
268268```
@@ -271,9 +271,9 @@ is syntactic sugar for:
271271
272272``` julia
273273t = IndependentVariable (:t )
274- x = DependentVariable (:x ,dependents = [t])
275- y = DependentVariable (:y ,dependents = [t])
276- z = DependentVariable (:z ,dependents = [t])
274+ x = Unknown (:x , dependents = [t])
275+ y = Unknown (:y , dependents = [t])
276+ z = Unknown (:z , dependents = [t])
277277D = Differential (t) # Default of first derivative, Derivative(t,1)
278278σ = Parameter (:σ )
279279ρ = Parameter (:ρ )
@@ -285,7 +285,7 @@ D = Differential(t) # Default of first derivative, Derivative(t,1)
285285The system building functions can handle intermediate calculations. For example,
286286
287287``` julia
288- @DVar a x y z
288+ @Unknown a x y z
289289@Param σ ρ β
290290eqs = [a ~ y- x,
291291 0 ~ σ* a,
0 commit comments