| ... | ... | @@ -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
|
|
|
|
$|\mathtt{level}|\le\mathtt{\_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
|
|
|
|
$\mathtt{level}<0$ with $|\mathtt{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:
|
|
|
|
|
|
|
|
- $\mathtt{level}=0$: no restriction for mesh refinement
|
|
|
|
- `level`=0: no restriction for mesh refinement
|
|
|
|
|
|
|
|
- $\mathtt{level}=-1$: prohibits mesh refinement on that domain
|
|
|
|
- `level`=-1: prohibits mesh refinement on that domain
|
|
|
|
|
|
|
|
- $\mathtt{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
|
|
|
|
$\mathtt{level}\le \mathtt{\_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.
|
|
|
|
|
| ... | ... | |