Changes
Page history
version 4.2
authored
Oct 28, 2025
by
Udo Ziegler
Show whitespace changes
Inline
Side-by-side
3-NIRVANA-user-guide/3.1-Code-basics.md
View page @
f76b04cb
...
...
@@ -106,7 +106,7 @@ strong magnetic field and/or very low gas density which allows larger
integration timesteps. More details:
[
Physics
guide
](
https://gitlab.aip.de/ziegler/NIRVANA/-/tree/master/doc/pdf/PhysicsGuide.pdf
)
.
Use of the Boris correction is controlled in the header file
[
`nirvanaUser.h`
](
#user-controllable-macros
)
.
[
`nirvanaUser.h`
](
3.2-User-interfaces
#user-controllable-macros
)
.
#### Magnetic field splitting
...
...
@@ -120,7 +120,7 @@ guide](https://gitlab.aip.de/ziegler/NIRVANA/-/tree/master/doc/pdf/PhysicsGuide.
Use of the magnetic field splitting scheme is controlled in the header
file
[
`nirvanaUser.h`
](
#user-controllable-macros
)
and definition of the
background magnetic field in module
[
`sourceB0User.c`
](
#user-defined-background-magnetic-field
)
.
[
`sourceB0User.c`
](
3.2-User-interfaces
#user-defined-background-magnetic-field
)
.
### Dynamic arrays
...
...
@@ -405,13 +405,13 @@ individually selected by the user. The standard implementation covers
the following criteria:
-
derivatives-based (most important in practice):
$
$
\l
eft[
\a
lpha
\f
rac{|
\d
U|}{|U|+U_
\m
athrm{ref}}+(1-
\a
lpha)
$
\l
eft[
\a
lpha
\f
rac{|
\d
U|}{|U|+U_
\m
athrm{ref}}+(1-
\a
lpha)
\f
rac{|
\d
^2U|}{|
\d
U|+{
\r
m FILTER}
\c
dot(|U|+U_
\m
athrm{ref})}
\r
ight]
\l
eft(
\f
rac{
\d
x^{(l)}}{
\d
x^{(0)}}
\r
ight)^{
\x
i}
\l
eft
\{\b
egin{array}{ll}
>\mathcal{E}_{U} &\exists U \quad\hbox{refinement}\\
<0.8
\m
athcal{E}_{U} &
\f
orall U
\q
uad
\h
box{derefinement}
\\
\e
nd{array}
\r
ight.$
$
\e
nd{array}
\r
ight.$
The criterion is applied to physical variables $U$
($=\{\varrho,\mathbf{m},e,\mathbf{B},C_\mathrm{c}\}$). Undivided
...
...
...
...