Skip to content

adam_flume_forcing_object ​

ADAM, FLUME mass-flow forcing of a periodic channel (issue #119, T3.1).

[forcing] type = mass-flow, axis (x, y, z), bulk_momentum (the target volume mean of the momentum along the axis). Once per step, on the committed state, a uniform momentum dm = bulk_momentum - mean is added, so the bulk momentum is held exactly; the total energy gains the change of kinetic energy, the internal energy is untouched. f = dm / dt is the driving force per unit volume, written on the conservation history cadence to <output_basename>-forcing_history.dat (header VARIABLES="it" "time" "f", the output units of [reference]): at a statistically steady state its mean balances the wall friction. Without the section nothing changes, bitwise.

Source: src/app/flume/common/adam_flume_forcing_object.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=7)parameterSection name.

Derived Types ​

flume_forcing_object ​

Mass-flow forcing.

Components ​

NameTypeAttributesDescription
is_activelogicalForcing on.
axisinteger(kind=I4P)Axis of the flow.
bulk_momentumreal(kind=R8P)Target volume mean of the momentum along the axis.
freal(kind=R8P)Last driving force per unit volume.
unitinteger(kind=I4P)History file unit.

Type-Bound Procedures ​

NameAttributesDescription
load_from_filepass(self)Load [forcing].
save_rowpass(self)Write one history row.

Subroutines ​

load_from_file ​

Load [forcing]; an unknown value is fatal.

fortran
subroutine load_from_file(self, file_parameters, model)

Arguments

NameTypeIntentAttributesDescription
selfclass(flume_forcing_object)inoutForcing.
file_parameterstype(file_ini)inSimulation parameters file handler.
modelinteger(kind=I4P)inPhysical model.

Call graph

save_row ​

Write one history row, rank 0: a new file with its header, or appended on a restart, so that the restart continues it. time and force are the output factors of the time and of the force per unit volume (1 in code units, issue #119).

fortran
subroutine save_row(self, output_basename, it, time, force, is_restart)

Arguments

NameTypeIntentAttributesDescription
selfclass(flume_forcing_object)inoutForcing.
output_basenamecharacter(len=*)inOutput base name.
itinteger(kind=I4P)inTime iteration.
timereal(kind=R8P)inTime (output units).
forcereal(kind=R8P)inOutput factor of the force per unit volume.
is_restartlogicalinRestarted run.

Call graph