Skip to content

adam_chase_physics_object

ADAM, CHASE physics class definition, common CPU backend.

Field variables are arranged as follows:

 q(1): r
 q(2): r * u
 q(3): r * v
 q(4): r * w
 q(5): r * E

Field variables fluxes are:

 Fx(1) = r * u       Fy(1) = r * v       Fz(1) = r * w
 Fx(2) = r * u^2 + p Fy(2) = r * u * v   Fz(2) = r * u * w
 Fx(3) = r * v * u   Fy(3) = r * v^2 + p Fz(3) = r * v * w
 Fx(4) = r * w * u   Fy(4) = r * w * v   Fz(4) = r * w^2 + p
 Fx(5) = r * u * H   Fy(5) = r * v * H   Fz(5) = r * w * H

Field auxiliary variables are arranged as follows:

 q_aux(1 ): r  (density)              |
 q_aux(2 ): u  (x velocity component) |
 q_aux(3 ): v  (y velocity component) | primitive variables
 q_aux(4 ): w  (z velocity component) |
 q_aux(5 ): P  (pressure)             |
 q_aux(6 ): T  (temperature)
 q_aux(7 ): E  (total energy)
 q_aux(8 ): H  (total entalpy)
 q_aux(9 ): a  (speed of sound)
 q_aux(10): cv (specific heat at constant volume)
 q_aux(11): Rf (fluid constant, cp-cv)
 q_aux(12): g  (specific heats ratio, cp/cv)

Note that the first nv=5 auxiliary variables are also the primitive ones.

Source: src/app/chase/common/adam_chase_physics_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=7)parameterINI file section name containing fluid physics.
VAR_Rinteger(kind=I4P)parameterAuxiliary/primitive/conservative variable 1, r, density.
VAR_Uinteger(kind=I4P)parameterAuxiliary/primitive variable 2, u, x velocity component.
VAR_Vinteger(kind=I4P)parameterAuxiliary/primitive variable 3, v, y velocity component.
VAR_Winteger(kind=I4P)parameterAuxiliary/primitive variable 4, w, z velocity component.
VAR_Pinteger(kind=I4P)parameterAuxiliary/primitive variable 5, P, pressure.
VAR_Ainteger(kind=I4P)parameterAuxiliary variable 6, a, speed of sound.
VAR_Tinteger(kind=I4P)parameterAuxiliary variable 7, T, temperature.
VAR_Einteger(kind=I4P)parameterAuxiliary variable 8, E, total specific energy.
VAR_Hinteger(kind=I4P)parameterAuxiliary variable 9, H, total specific entalpy.
VAR_RFinteger(kind=I4P)parameterAuxiliary variable 10, Rf, cp-cv.
VAR_Ginteger(kind=I4P)parameterAuxiliary variable 11, g, cp/cv.
VAR_RUinteger(kind=I4P)parameterConservative variable 2, r*u, x momemtum component.
VAR_RVinteger(kind=I4P)parameterConservative variable 3, r*v, y momemtum component.
VAR_RWinteger(kind=I4P)parameterConservative variable 4, r*w, z momemtum component.
VAR_REinteger(kind=I4P)parameterConservative variable 5, r*E, total energy.
WENO_REC_VAR_CONScharacter(len=12)parameterWENO reconstruction on conservative variables.
WENO_REC_VAR_CHARcharacter(len=15)parameterWENO reconstruction on characteristics variables.

Derived Types

chase_physics_object

CHASE physics class definition.

Components

NameTypeAttributesDescription
mpihtype(mpih_object)MPI handler.
nvinteger(kind=I4P)Number of conservative/primitive variables.
nv_auxinteger(kind=I4P)Number of auxiliary variables.
weno_rec_varcharacter(len=:)allocatableType of WENO reconstruction variables (cons., charct.,...).
erwreal(kind=R8P)pointerRight eigenvectors for WENO reconstruction.
elwreal(kind=R8P)pointerLeft eigenvectors for WENO reconstruction.
eostype(eos_ic_object)Equations of state of ideal compressibile fluid.

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)

Arguments

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

Call graph

compute_auxiliary

Compute auxiliary variables from conservative ones.

Attributes: pure

fortran
subroutine compute_auxiliary(cv, Rf, g, conservative, auxiliary)

Arguments

NameTypeIntentAttributesDescription
cvreal(kind=R8P)inSpecific heat at constant volume.
Rfreal(kind=R8P)inFluid constant (cp-cv).
greal(kind=R8P)inSpecific heats ration (cp/cv).
conservativereal(kind=R8P)inConservative variables.
auxiliaryreal(kind=R8P)inoutAuxiliary variables.

Call graph

compute_conservative

Compute convervative variables from auxiliary ones, scalar input.

Attributes: pure

fortran
subroutine compute_conservative(auxiliary, conservative)

Arguments

NameTypeIntentAttributesDescription
auxiliaryreal(kind=R8P)inAuxiliary variables.
conservativereal(kind=R8P)inoutConservative variables.

Call graph

compute_fluxes_conservative

Compute fluxes of convervative variables from auxiliary ones.

Attributes: pure

fortran
subroutine compute_fluxes_conservative(sir, auxiliary, fluxes)

Arguments

NameTypeIntentAttributesDescription
sirreal(kind=R8P)inDirectional (1=x,2=y,3=z) increment.
auxiliaryreal(kind=R8P)inAuxiliary variables.
fluxesreal(kind=R8P)inoutConservative fluxes.

Call graph

Functions

description

Return a pretty-formatted object description.

Attributes: pure

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(chase_physics_object)inPhysics.

Call graph