... | ... | @@ -845,7 +845,7 @@ considered primary. |
|
|
|
|
|
*Note: In case magnetic field splitting is enabled
|
|
|
(cf. [Functionality overview](3.1-Code-basics#functionality-overview))
|
|
|
the variable **B** represents the residual magnetic field which
|
|
|
the variable* **B** *represents the residual magnetic field which
|
|
|
must be initialized instead of the total field. Likewise, *e* represents
|
|
|
the residual total energy density.*
|
|
|
|
... | ... | @@ -1847,15 +1847,15 @@ An example can be found in the testproblem |
|
|
## User-defined background magnetic field
|
|
|
|
|
|
The module `sourceB0User.c` serves as template
|
|
|
for coding a background magnetic field, **B**<sup>0</sub>, in the context
|
|
|
for coding a background magnetic field, **B**<sub>0</sub>, in the context
|
|
|
of the magnetic field splitting formalism.
|
|
|
**B**<sup>0</sup> must be a time-independent, divergence-free potential field, i.e.,
|
|
|
**B**<sub>0</sub> must be a time-independent, divergence-free potential field, i.e.,
|
|
|
|
|
|
$\partial_t$**B**<sup>0</sub>=0,
|
|
|
$\partial$<sub>t</sub>**B**<sub>0</sub>=0,
|
|
|
|
|
|
∇⋅**B**<sup>0</sup>=0
|
|
|
∇⋅**B**<sub>0</sub>=0
|
|
|
|
|
|
∇×**B**<sup>0</sup>=0.
|
|
|
∇×**B**<sub>0</sub>=0.
|
|
|
|
|
|
In the call of `sourceB0User()`
|
|
|
the function arguments are the pointer to the array `B0` of magnetic field
|
... | ... | |