The boundary conditions at the six sides of the computational box cannot be specified independently. For the naming convention of the boundaries a gravitational acceleration in -x3 direction is assumed. Accordingly, there is a bottom and a top boundary, and four side boundaries.
All boundary conditions of the hydrodynamic case are available in the MHD module.
character side_bound
:
reflective
: closed wall, no gravity, no radiation.
Like the velocity field, the magnetic field is mirrored at the boundary.
This boundary condition is unphysical, because the magnetic field
is an axial vector and it violates the divergence free property of the
magnetic field. Therefore, this boundary condition should not be used
in MHD simulations. Use closed
boundary conditions instead.
constant
: open boundary with constant extrapolation of all values,
no gravity, no radiation
closed
, closedtop
: closed wall, can handle gravity, open for outward radiation
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
closedbottom
: closed wall, handles gravity, radiation in diffusion approximation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
periodic
: periodic boundaries for hydrodynamics, radiation, and magnetic fields
transmitting
: transmitting boundary for hydro and outward radiation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
MSrad
radiation transport module
the side boundaries have to be periodic
.
In simulations of a red supergiant all boundaries (including the sides) will typically
be transmitting
. As an alternative, closed
boundaries can be chosen in this case.
character top_bound
:
reflective
: closed wall, no gravity, no radiation.
Like the velocity field, the magnetic field is mirrored at the boundary.
This boundary condition is unphysical, because the magnetic field
is an axial vector and it violates the divergence free property of the
magnetic field. Therefore, this boundary condition should not be used
in MHD simulations. Use closed
boundary conditions instead.
constant
: open boundary with constant extrapolation of all values,
no gravity, no radiation
closed
, closedtop
: closed wall, can handle gravity, open for outward radiation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
periodic
: periodic boundaries for hydrodynamics, radiation, and magnetic fields
transmitting
: transmitting boundary for hydro and outward radiation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
transmitting
top
boundary will be selected, the closed
one is an alternative.
The periodic
condition is only recognized by the hydrodynamics routines
and not by any radiation transport routine.
character bottom_bound
:
reflective
: closed wall, no gravity, no radiation.
Like the velocity field, the magnetic field is mirrored at the boundary.
This boundary condition is unphysical, because the magnetic field
is an axial vector and it violates the divergence free property of the
magnetic field. Therefore, this boundary condition should not be used
in MHD simulations. Use closed
boundary conditions instead.
constant
: open boundary with constant extrapolation of all values,
no gravity, no radiation
closed
, closedtop
: closed wall, can handle gravity, open for outward radiation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
closedbottom
: closed wall, handles gravity, radiation in diffusion approximation.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
periodic
: periodic boundaries for hydrodynamics, radiation, and magnetic fields
transmitting
: transmitting boundary for hydro and outward radiation.
The parameters real c_tchange
, real c_tsurf
, and
real c_hptopfactor
have to be specified.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
inoutflow
: "classical" open lower boundary for deep convection,
gravity and radiation possible.
The parameters real s_inflow
, real c_schange
, and
real c_pchange
have to be specified.
Magnetic field lines are orthogonal to the boundary, i.e. the tangential component
of the magnetic field vanishes at the boundary.
inoutflow2
: variant of the open lower boundary condition.
The parameters real s_inflow
, real c_schange
,
real c_pchange
, and real B1_inflow
have to be specified.
MSrad
radiation transport module
the bottom boundary is typically of type ``inoutflow
''.
A supergiant simulation will have a transmitting
lower boundary.
character heat_mode
:
s_inflow
(see Sect. 5.3.4) and
luminositypervolume
(see Sect. 5.3.4).
Example:
: (empty). The classical value.
For local models the energy comes through the lower boundary,
either by radiation (for a closed bottom boundary closedbottom
)
or by convection + radiation (for an open bottom boundary inoutflow
).
bottom_entropy1
: The entropy in the bottom layers (defined as being less than
r0_grav
above the bottom of the model) is adjusted towards
s_inflow
on a rate given by c_schange
.
bottom_energy1
: Energy in the bottom layers is added according to
luminositypervolume
.
real luminositypervolume
:
heat_mode
can be set with this parameter.
To avoid numbers that do not fit into a 4 Byte real the luminosity per volume
has to be specified as e.g. in
0.0
or below the entropy of the
material within the core (defined by as all cells within radius r0_grav
)
is adjusted instead.
real s_inflow
:
inoutflow
''
into the model can be specified e.g. with
central
potential the entropy in a sphere with radius
r0_grav
is adjusted towards this entropy value.
In both geometry (supergiant as well as solar) this value is very important as
it finally (but indirectly) determines the luminosity and
effective temperature of the star.
A value of 0.0
(default) or below disables this energy input.
real c_schange
:
s_inflow
of the material in the bottom layer
(solar case, inoutflow
boundary condition)
or the central region of the model (supergiant case) is not just
set to the specified but adjusted towards it. The adjustment rate can be
controlled with e.g.
1.0
: fast adjustment
0.3
: typical value
0.1
: slow adjustment
<=0.0
: not allowed
real c_pchange
:
inoutflow
boundary condition not only controls entropy and velocity
but also the pressure in the bottom layers:
It is locally adjusted towards the global average to damp out possible
instabilities.
The adjustment rate can be specified e.g. with
real c_tchange
:
transmitting
upper or outer boundary
the temperature of the material streaming into the model
is adjusted with a rate given e.g. by
real c_tsurf
:
transmitting
upper or outer boundary
the temperature of the material streaming into the model
is adjusted towards a temperature teff
*c_tsurf
.
This temperature can be specified as fraction of the effective temperature
e.g. with
real c_hptopfactor
:
transmitting
upper or outer boundary
the density stratification outside the model has to be extrapolated properly.
Assumptions about this density affects the amount of mass flowing
into the model.
For the extrapolation it is assumed that the density scale c_hptopfactor
.
0.0
: No effect (actually, a value of 1.0
is chosen).
0.0
1.0
: The density scale height is enlarged to account for
possible effects of turbulent pressure on the scale height:
The density decays less rapidly with height than in
an (isothermal) hydrostatic stratification.
1.0
: Density scale height is pressure scale height.
1.0
: Density scale height is smaller than pressure scale height.
Not really useful.
real c_radhtautop
:
MSrad
radiation transport module needs the specification
of the scale height of the optical depth at the upper boundary, e.g. with
real rho_min
:
0.0
(default) or below deactivates this feature.
real c_coredrag
:
r0_grav
)
can be applied.
It is controlled e.g. with
0.0
(default) or below deactivates this feature.