Skip to content

adam_nasto_physics_object

ADAM, NASTO fluid physics class definition, CPU backend.

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

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=7)parameterINI file section name containing fluid physics.
IRinteger(kind=I4P)
IUinteger(kind=I4P)
IVinteger(kind=I4P)
IWinteger(kind=I4P)
IGinteger(kind=I4P)
IPinteger(kind=I4P)

Derived Types

nasto_physics_object

NASTO fluid physics class definition.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
nsinteger(kind=I4P)Number of species.
nvinteger(kind=I4P)Number of variables (rns+ru+rv+rw+rE=ns+4).
nv_auxinteger(kind=I4P)Number of auxiliary variables (rns+r+u+v+w+p+g=ns+6).
npinteger(kind=I4P)Number of 1D primitive variables (rns+r+un+p+g=ns+4).
eostype(nasto_eos_object)allocatableEquations of state of each specie [1:ns].

Type-Bound Procedures

NameAttributesDescription
conservative2primitivepass(self)Return primitive variables from conservative ones.
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize physics.
load_from_filepass(self)Load config from file.
primitive2conservativepass(self)Return conservative variables from primitive ones.

Subroutines

initialize

Initialize the equation.

fortran
subroutine initialize(self, file_parameters)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_physics_object)inoutPhysics.
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_physics_object)inoutPhysics.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.

Call graph

Functions

conservative2primitive

Return primitive variables (rs, u, v, w, r, p, g) from conservative variables (rs, ru, rv, rw, rE).

Attributes: pure

Returns: real(kind=R8P)

fortran
function conservative2primitive(self, conservative) result(primitive)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_physics_object)inEquation of state.
conservativereal(kind=R8P)inConservative variables

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_physics_object)inPhysics.

Call graph

primitive2conservative

Return conservative variables (rs, ru, rv, rw, rE) from primitive variables (rs, u, v, w, r, p, g).

Returns: real(kind=R8P)

fortran
function primitive2conservative(self, primitive) result(conservative)

Arguments

NameTypeIntentAttributesDescription
selfclass(nasto_physics_object)inEquation of state.
primitivereal(kind=R8P)inPrimitive variables

Call graph

internal_energy

Return specific internal energy.

Attributes: elemental

Returns: real(kind=R8P)

fortran
function internal_energy(g, density, pressure) result(energy_)

Arguments

NameTypeIntentAttributesDescription
greal(kind=R8P)inSpecific heats ratio.
densityreal(kind=R8P)inDensity value.
pressurereal(kind=R8P)inPressure value.

Call graph

total_energy

Return total specific energy.

Attributes: elemental

Returns: real(kind=R8P)

fortran
function total_energy(g, density, pressure, velocity_sq_norm) result(energy_)

Arguments

NameTypeIntentAttributesDescription
greal(kind=R8P)inSpecific heats ratio.
densityreal(kind=R8P)inDensity value.
pressurereal(kind=R8P)inPressure value.
velocity_sq_normreal(kind=R8P)inVelocity vector square norm ||velocity||^2.

Call graph