MPI-AMRVAC 3.2
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
Loading...
Searching...
No Matches
mod_bfield Module Reference

Minimal magnetic-field-only state for static field construction. More...

Functions/Subroutines

subroutine bfield_activate ()
 Activate the B-only physics/state path.
subroutine bfield_read_params (files)
subroutine bfield_phys_init ()
subroutine bfield_check_params
subroutine bfield_to_conserved (ixil, ixol, w, x)
subroutine bfield_to_primitive (ixil, ixol, w, x)
subroutine bfield_get_cmax (w, x, ixil, ixol, idim, cmax)
subroutine bfield_get_cbounds (wlc, wrc, wlp, wrp, x, ixil, ixol, idim, hspeed, cmax, cmin)
subroutine bfield_get_flux (wc, w, x, ixil, ixol, idim, f)
subroutine bfield_get_dt (w, ixil, ixol, dtnew, dxd, x)
subroutine bfield_add_source_geom (qdt, dtfactor, ixil, ixol, wct, wprim, w, x)
subroutine bfield_physical_units ()

Variables

double precision bfield_h_ion_fr =1.d0
 Optional ionisation fractions used only by the unit normalisation.
double precision bfield_he_ion_fr =1.d0
double precision bfield_he_ion_fr2 =1.d0

Detailed Description

Minimal magnetic-field-only state for static field construction.

The B-only path deliberately registers only the magnetic components as conservative/primitive variables. It is intended for static potential (and other field-construction) cases; it does not provide a time-evolving induction equation. The legacy MHD-embedded magnetofriction path is intentionally unaffected by this module.

Function/Subroutine Documentation

◆ bfield_activate()

subroutine mod_bfield::bfield_activate

Activate the B-only physics/state path.

Definition at line 20 of file mod_bfield.t.

Here is the call graph for this function:

◆ bfield_add_source_geom()

subroutine mod_bfield::bfield_add_source_geom ( double precision, intent(in) qdt,
double precision, intent(in) dtfactor,
integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
double precision, dimension(ixi^s,1:nw), intent(inout) wct,
double precision, dimension(ixi^s,1:nw), intent(inout) wprim,
double precision, dimension(ixi^s,1:nw), intent(inout) w,
double precision, dimension(ixi^s,1:^nd), intent(in) x )

Definition at line 165 of file mod_bfield.t.

◆ bfield_check_params()

subroutine mod_bfield::bfield_check_params

Definition at line 88 of file mod_bfield.t.

◆ bfield_get_cbounds()

subroutine mod_bfield::bfield_get_cbounds ( double precision, dimension(ixi^s,nw), intent(in) wlc,
double precision, dimension(ixi^s,nw), intent(in) wrc,
double precision, dimension(ixi^s,nw), intent(in) wlp,
double precision, dimension(ixi^s,nw), intent(in) wrp,
double precision, dimension(ixi^s,1:^nd), intent(in) x,
integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
integer, intent(in) idim,
double precision, dimension(ixi^s,1:number_species), intent(in) hspeed,
double precision, dimension(ixi^s,1:number_species), intent(inout) cmax,
double precision, dimension(ixi^s,1:number_species), intent(inout), optional cmin )

Definition at line 130 of file mod_bfield.t.

◆ bfield_get_cmax()

subroutine mod_bfield::bfield_get_cmax ( double precision, dimension(ixi^s,nw), intent(in) w,
double precision, dimension(ixi^s,1:^nd), intent(in) x,
integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
integer, intent(in) idim,
double precision, dimension(ixi^s), intent(inout) cmax )

Definition at line 121 of file mod_bfield.t.

◆ bfield_get_dt()

subroutine mod_bfield::bfield_get_dt ( double precision, dimension(ixi^s,1:nw), intent(in) w,
integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
double precision, intent(inout) dtnew,
double precision, intent(in) dx,
double precision, intent(in) d,
double precision, dimension(ixi^s,1:^nd), intent(in) x )

Definition at line 155 of file mod_bfield.t.

◆ bfield_get_flux()

subroutine mod_bfield::bfield_get_flux ( double precision, dimension(ixi^s,nw), intent(in) wc,
double precision, dimension(ixi^s,nw), intent(in) w,
double precision, dimension(ixi^s,1:^nd), intent(in) x,
integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
integer, intent(in) idim,
double precision, dimension(ixi^s,nwflux), intent(out) f )

Definition at line 145 of file mod_bfield.t.

◆ bfield_phys_init()

subroutine mod_bfield::bfield_phys_init

Definition at line 40 of file mod_bfield.t.

Here is the call graph for this function:

◆ bfield_physical_units()

subroutine mod_bfield::bfield_physical_units

Definition at line 173 of file mod_bfield.t.

◆ bfield_read_params()

subroutine mod_bfield::bfield_read_params ( character(len=*), dimension(:), intent(in) files)

Definition at line 24 of file mod_bfield.t.

◆ bfield_to_conserved()

subroutine mod_bfield::bfield_to_conserved ( integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
double precision, dimension(ixi^s,nw), intent(inout) w,
double precision, dimension(ixi^s,1:^nd), intent(in) x )

Definition at line 107 of file mod_bfield.t.

◆ bfield_to_primitive()

subroutine mod_bfield::bfield_to_primitive ( integer, intent(in) ixi,
integer, intent(in) l,
integer, intent(in) ixo,
l,
double precision, dimension(ixi^s,nw), intent(inout) w,
double precision, dimension(ixi^s,1:^nd), intent(in) x )

Definition at line 114 of file mod_bfield.t.

Variable Documentation

◆ bfield_h_ion_fr

double precision mod_bfield::bfield_h_ion_fr =1.d0

Optional ionisation fractions used only by the unit normalisation.

Definition at line 13 of file mod_bfield.t.

◆ bfield_he_ion_fr

double precision mod_bfield::bfield_he_ion_fr =1.d0

Definition at line 14 of file mod_bfield.t.

◆ bfield_he_ion_fr2

double precision mod_bfield::bfield_he_ion_fr2 =1.d0

Definition at line 15 of file mod_bfield.t.