Skip to content

adam_nasto_ic_object

ADAM, NASTO Initial Conditions class definition, CPU backend.

Source: src/app/nasto/common/adam_nasto_ic_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=18)parameterINI (config) file section name containing IC configs.
IC_TYPE_UNIFORMcharacter(len=7)parameterUniform IC TYPE parameter.
IC_TYPE_IVORTEXcharacter(len=17)parameterIsentropic Vortex IC TYPE parameter.
IC_TYPE_RPcharacter(len=15)parameterRiemann Problem IC TYPE parameter.

Derived Types

nasto_ic_object

Initial Conditions class definition, CPU backend.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
amr_iterationsinteger(kind=I4P)Number of AMR iterations imposing IC.
ic_typecharacter(len=:)allocatableIC type.
regions_numberinteger(kind=I4P)Number of IC regions.
qreal(kind=R8P)allocatablePrimitive variables (r,u,v,w,p), s fluid specie index at IC for each region.
eminreal(kind=R8P)allocatableIC regions bounding box.
emaxreal(kind=R8P)allocatableIC regions bounding box.

Type-Bound Procedures

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize IC.
load_from_filepass(self)Load config from file.
set_initial_conditionspass(self)Set initial conditions on NASTO fields.

Subroutines

initialize

Initialize the equation.

fortran
subroutine initialize(self, file_parameters)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_ic_object)inoutIC.
file_parameterstype(file_ini)inSimulation parameters ini file handler.

Call graph

load_from_file

Load config from file.

fortran
subroutine load_from_file(self, file_parameters, go_on_fail)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_ic_object)inoutIC.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.

Call graph

set_initial_conditions

Set initial conditions on NASTO fields.

fortran
subroutine set_initial_conditions(self, physics, field, q)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_ic_object)inIC.
physicstype(nasto_physics_object)inFluids physiscs.
fieldtype(field_object)inField object.
qreal(kind=R8P)inoutConservative variables.

Call graph

Functions

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_ic_object)inIC.

Call graph