Skip to content

adam_prism_physics_object

ADAM, PRISM (Plasma Research usIng Simulation Methods) physics class definition, common backend.

Field variables are arranged as follows:

 q(1): Dx
 q(2): Dy
 q(3): Dz
 q(4): Bx
 q(5): By
 q(6): Bz
 q(7): Jx
 q(8): Jy
 q(9): Jz

Field variables fluxes are:

 Fx(1) =  0       Fy(1) = -Bz/muz  Fz(1) =  By/muy
 Fx(2) =  Bz/muz  Fy(2) =  0       Fz(2) = -Bx/mux
 Fx(3) = -By/muy  Fy(3) =  Bx/mux  Fz(3) =  0
 Fx(4) =  0       Fy(4) =  Dz/epsz Fz(4) = -Dy/epsy
 Fx(5) = -Dz/epsz Fy(5) =  0       Fz(5) =  Dx/epsx
 Fx(6) =  Dy/epsy Fy(6) = -Dx/epsx Fz(6) =  0
 Fx(7) =  0       Fy(7) =  0       Fz(7) =  0
 Fx(8) =  0       Fy(8) =  0       Fz(8) =  0
 Fx(9) =  0       Fy(9) =  0       Fz(9) =  0

Source: src/app/prism/common/adam_prism_physics_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=7)parameterINI file section name containing fluid physics.
EM_PHYSICAL_MODELcharacter(len=15)parameterElectromagnetic physical model.
PIC_PHYSICAL_MODELcharacter(len=3)parameterPIC physical model.
VAR_DXinteger(kind=I4P)parameterConservative variable 1, Dx.
VAR_DYinteger(kind=I4P)parameterConservative variable 2, Dy.
VAR_DZinteger(kind=I4P)parameterConservative variable 3, Dz.
VAR_BXinteger(kind=I4P)parameterConservative variable 4, Bx.
VAR_BYinteger(kind=I4P)parameterConservative variable 5, By.
VAR_BZinteger(kind=I4P)parameterConservative variable 6, Bz.

Derived Types

prism_physics_object

PRISM physics class definition.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
physical_modelcharacter(len=99)Physical model.
nvinteger(kind=I4P)Number of variables in q vector (nv=nv_c+nv_s+nv_cl).
nv_cinteger(kind=I4P)Number of conservative variables in q vector.
nv_sinteger(kind=I4P)Number of source variables in q vector.
nv_clinteger(kind=I4P)Number of divergence cleaning variables in q vector.
nv_picinteger(kind=I4P)Number of PIC variables in q vector.
var_Jxinteger(kind=I4P)Indices of current density components in q vector.
var_Jyinteger(kind=I4P)Indices of current density components in q vector.
var_Jzinteger(kind=I4P)Indices of current density components in q vector.
chireal(kind=R8P)Speed coefficient for D & B div-cleaning.
evmaxreal(kind=R8P)Maximum signal speed (eigenvalue).
erwreal(kind=R8P)pointerRight eigenvectors for high order reconstruction.
elwreal(kind=R8P)pointerLeft eigenvectors for high order reconstruction.
EV_Dreal(kind=R8P)Eigenvalues with D divergence cleaning.
EV_Breal(kind=R8P)Eigenvalues with B divergence cleaning.
EV_D_Breal(kind=R8P)Eigenvalues with D and B divergence cleaning.
ER_Dreal(kind=R8P)Right eigenvectors with D divergence cleaning.
ER_Breal(kind=R8P)Right eigenvectors with B divergence cleaning.
ER_D_Breal(kind=R8P)Right eigenvectors with D and B divergence cleaning.
EL_Dreal(kind=R8P)Left eigenvectors with D divergence cleaning.
EL_Breal(kind=R8P)Left eigenvectors with B divergence cleaning.
EL_D_Breal(kind=R8P)Left eigenvectors with D and B divergence cleaning.

Type-Bound Procedures

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize physics.
load_from_filepass(self)Load config from file.

Subroutines

initialize

Initialize the equation.

fortran
subroutine initialize(self, file_parameters, reconstruction_vars, div_corr_var, constrained_transport_D, constrained_transport_B)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_physics_object)inouttargetPhysics.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
reconstruction_varscharacter(len=*)inoptionalVariables used for HO reconstruction.
div_corr_varcharacter(len=*)inoptionalType of divergence correction variables
constrained_transport_DlogicalinoptionalEnable CT-Correction on D.
constrained_transport_BlogicalinoptionalEnable CT-Correction on B.

Call graph

load_from_file

Load config from file.

fortran
subroutine load_from_file(self, file_parameters, go_on_fail, div_corr_var)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_physics_object)inoutPhysics.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.
div_corr_varcharacter(len=*)inoptionalType of divergence correction variables (poisson, hyperbolic,...).

Call graph

Functions

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_physics_object)inPhysics.

Call graph