Appearance
adam_nasto_physics_object
ADAM, NASTO fluid physics class definition, CPU backend.
Source: src/app/nasto/common/adam_nasto_physics_object.F90
Dependencies
Contents
- nasto_physics_object
- initialize
- load_from_file
- conservative2primitive
- description
- primitive2conservative
- internal_energy
- total_energy
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
INI_SECTION_NAME | character(len=7) | parameter | INI file section name containing fluid physics. |
IR | integer(kind=I4P) | ||
IU | integer(kind=I4P) | ||
IV | integer(kind=I4P) | ||
IW | integer(kind=I4P) | ||
IG | integer(kind=I4P) | ||
IP | integer(kind=I4P) |
Derived Types
nasto_physics_object
NASTO fluid physics class definition.
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
mpih | type(mpih_object) | MPI handler. | |
ns | integer(kind=I4P) | Number of species. | |
nv | integer(kind=I4P) | Number of variables (rns+ru+rv+rw+rE=ns+4). | |
nv_aux | integer(kind=I4P) | Number of auxiliary variables (rns+r+u+v+w+p+g=ns+6). | |
np | integer(kind=I4P) | Number of 1D primitive variables (rns+r+un+p+g=ns+4). | |
eos | type(nasto_eos_object) | allocatable | Equations of state of each specie [1:ns]. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
conservative2primitive | pass(self) | Return primitive variables from conservative ones. |
description | pass(self) | Return pretty-printed object description. |
initialize | pass(self) | Initialize physics. |
load_from_file | pass(self) | Load config from file. |
primitive2conservative | pass(self) | Return conservative variables from primitive ones. |
Subroutines
initialize
Initialize the equation.
fortran
subroutine initialize(self, file_parameters)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(nasto_physics_object) | inout | Physics. | |
file_parameters | type(file_ini) | in | Simulation 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(nasto_physics_object) | inout | Physics. | |
file_parameters | type(file_ini) | in | Simulation parameters ini file handler. | |
go_on_fail | logical | in | optional | Go 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(nasto_physics_object) | in | Equation of state. | |
conservative | real(kind=R8P) | in | Conservative variables |
description
Return a pretty-formatted object description.
Attributes: pure
Returns: character(len=:)
fortran
function description(self) result(desc)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(nasto_physics_object) | in | Physics. |
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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(nasto_physics_object) | in | Equation of state. | |
primitive | real(kind=R8P) | in | Primitive 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
g | real(kind=R8P) | in | Specific heats ratio. | |
density | real(kind=R8P) | in | Density value. | |
pressure | real(kind=R8P) | in | Pressure 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
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
g | real(kind=R8P) | in | Specific heats ratio. | |
density | real(kind=R8P) | in | Density value. | |
pressure | real(kind=R8P) | in | Pressure value. | |
velocity_sq_norm | real(kind=R8P) | in | Velocity vector square norm ||velocity||^2. |
Call graph