Changes
Page history
version 4.2
authored
Oct 29, 2025
by
Udo Ziegler
Hide whitespace changes
Inline
Side-by-side
3-NIRVANA-user-guide/3.2-User-interfaces.md
View page @
c39850da
...
...
@@ -1773,12 +1773,12 @@ user must check whether the testpoint lies within its specified domain
and return the requested refinement level
`level`
for that domain.
`level`
is limited by the constraint
$|
\m
athtt{level}|
\l
e
\m
athtt{
\
_
C.imr
}$
where
`_C.imr`
is the maximum
|
`level`
|<=
`
_C.imr
`
where
`_C.imr`
is the maximum
allowed initial mesh refinement level as specified in file
`nirvana.par`
below category MESH REFINEMENT. In practice, the user defines spatial
domains in
`initDomainUser()`
via mathematical relations. Here is an
example which illustrates the procedure. It refines the vicinity of a
spherical interface with radius
$
0.1
$
centered at
$
(x,y,z)=(0.3,0,0)
$
spherical interface with radius 0.1 centered at (x,y,z)=(0.3,0,0)
with refinement level 4:
int initDomainUser(double x, double y, double z)
...
...
@@ -1835,7 +1835,7 @@ established smoothly.
An initially refined domain is, by default, subject to derefinement
during runtime according to the standard refinement criteria. However,
it can also be marked as static by returning a negative value
$
\m
athtt{
level
}
<0
$
with
$|
\m
athtt{
level
}|$
then the requested refinement
`
level
`
<0 with
|
`
level
`
|
then the requested refinement
level. No derefinement occurs during runtime but, on the other hand,
further dynamic refinement on the initially refined domains is possible.
...
...
@@ -1852,13 +1852,13 @@ spatial domains via mathematical relations, checks whether the testpoint
lies inside a certain domain or not, and returns the corresponding
control value
`level`
for that domain:
-
$
\m
athtt{
level
}
=0
$
: no restriction for mesh refinement
-
`
level
`
=0: no restriction for mesh refinement
-
$
\m
athtt{
level
}
=-1
$
: prohibits mesh refinement on that domain
-
`
level
`
=-1: prohibits mesh refinement on that domain
-
$
\m
athtt{
level
}
>0
$
: forces step-by-step mesh refinement on that
-
`
level
`
>0: forces step-by-step mesh refinement on that
domain up to level
`level`
subject to the constraint
$
\m
athtt{level}
\l
e
\m
athtt{
\
_
C.amr
}$
where parameter
`_C.amr`
is the
`level}<=`
_C.amr
`
where parameter `_
C.amr
` is the
maximum allowed mesh refinement level as specified in file
`
nirvana.par
` below category MESH REFINEMENT.
...
...
...
...