... | ... | @@ -22,7 +22,7 @@ Run-time variables are created at run-time during pre-processing, processing or |
|
|
|
|
|
Some run-time variables are read-only and are only modified by built-in GetDP algorithms or functions, like `$Time` or `$TimeStep`.
|
|
|
|
|
|
In the following example the run-time variable `$a` is set to the value 2 in different ways; the run-time variables `$b_1`, `$b_2`, ... are dynamically created depending on the index of the quadrature point in a formulation term; and the run-time variable `$c` is set to `0.3`, `0.4` ... `1` using the `Evaluate` operation in a `Resolution`:
|
|
|
In the following example the run-time variable `$a` is set to the value 2 in different ways; the run-time variables `$b_1`, `$b_2`, ... are dynamically created and used depending on the index of the quadrature point in a formulation term; and the run-time variable `$c` is set to `0.3`, `0.4` ... `1` using the `Evaluate` operation in a `Resolution`:
|
|
|
|
|
|
```cpp
|
|
|
Function{
|
... | ... | @@ -33,6 +33,7 @@ Formulation{ |
|
|
...
|
|
|
Equation{
|
|
|
Integral{ [ SetVariable[{u}, QuadraturePointIndex[]]{$b} * Dof{d u} , {d u}]; ... }
|
|
|
Integral{ [ 0.5 * GetVariable[QuadraturePointIndex[]]{$b} , {u}]; ... }
|
|
|
}
|
|
|
}
|
|
|
Resolution{
|
... | ... | |