Skip to content

adam_prism_coil_object

ADAM, PRISM coil source definition, CPU backend.

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

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=11)parameterINI (config) file section name containing coils configs.
COIL_TYPE_RECTANGULARcharacter(len=11)parameterRectangular shape coil.
COIL_TYPE_CIRCULARcharacter(len=8)parameterCircular shape coil.
CURRENT_TYPE_DCcharacter(len=10)parameterDC current.
CURRENT_TYPE_ACcharacter(len=10)parameterAC current
NORMAL_P_Xcharacter(len=2)parameterNormal versor along positive x axis.
NORMAL_M_Xcharacter(len=2)parameterNormal versor along negative x axis.
NORMAL_P_Ycharacter(len=2)parameterNormal versor along positive y axis.
NORMAL_M_Ycharacter(len=2)parameterNormal versor along negative y axis.
NORMAL_P_Zcharacter(len=2)parameterNormal versor along positive z axis.
NORMAL_M_Zcharacter(len=2)parameterNormal versor along negative z axis.

Derived Types

prism_coil_object

ADAM, PRISM coil source definition, CPU backend.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
coil_typecharacter(len=99)allocatableCoil type.
current_typecharacter(len=99)allocatableCurrent type.
normalcharacter(len=2)allocatableVersore normale alla spira, che identifica anche verso
Areal(kind=R8P)allocatableCurrent amplitude (A)
freal(kind=R8P)allocatableCurrent frequency, if AC (Hz)
phasereal(kind=R8P)allocatableCurrent initial phase, if AC
x_centerreal(kind=R8P)allocatableCoil center
y_centerreal(kind=R8P)allocatableCoil center
z_centerreal(kind=R8P)allocatableCoil center
lxreal(kind=R8P)allocatableRectangle's sizes (if rectangular coil)
lyreal(kind=R8P)allocatableRectangle's sizes (if rectangular coil)
r_coilreal(kind=R8P)allocatableCircle's radius (if circular coil)
sigmareal(kind=R8P)allocatableGaussian current distribution sigma
J_vecreal(kind=R8P)allocatableMatrice contenente versori corrente spire (se assente
tdreal(kind=R8P)Delay di accensione della spira
coil_flaginteger(kind=I4P)allocatableMatrice contenente informazioni su quale spira pass pe
circular_coils_numberinteger(kind=I4P)Number of circular coils
rectangular_coils_numberinteger(kind=I4P)Number of rectangular coils
total_coils_numberinteger(kind=I4P)Number of coils
ngcinteger(kind=I4P)pointerNumber of ghost cells.
niinteger(kind=I4P)pointerNumber of cells in i direction.
njinteger(kind=I4P)pointerNumber of cells in j direction.
nkinteger(kind=I4P)pointerNumber of cells in k direction.
nbinteger(kind=I4P)pointerTotal blocks number for MPI.
blocks_numberinteger(kind=I4P)pointerActual blocks number.

Type-Bound Procedures

NameAttributesDescription
allocate_coilpass(self)Allocate coil data.
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize IC.
load_from_filepass(self)Load config from file.

Subroutines

allocate_coil

Allocate coil data.

fortran
subroutine allocate_coil(self)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_coil_object)inoutCoils.

Call graph

initialize

Initialize the equation.

fortran
subroutine initialize(self, file_parameters, field)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_coil_object)inoutCoils.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
fieldtype(field_object)inThe field.

Call graph

load_from_file

Load config from file.

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

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_coil_object)inoutcoils.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
fieldtype(field_object)intargetThe field.
go_on_faillogicalinoptionalGo on if load fails.

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_coil_object)inIC.

Call graph