IRockyFluidScalarsModel allows users to add new fluid scalars, or find fluid scalars created in other modules, all during the setup phase of a module. Fluid scalars are special variables attached to CFD cell elements that store per-cell values preserved between simulation time iterations.
Inherits from:
- ScalarsModel< rocky20::FluidScalarsController >
Members
- add
- enable_storage_cell_volume
- find
- find_species_scalar
- get_scalar_name
- get_scalar_unit
- MassDiffusivity
- MassSource
- MolecularWeight
- MoleFraction
- reset
- set_dimension
- SpeciesVariableType
Public types
Enumeration type SpeciesVariableType
Enumerator MoleFraction
Enumerator MassDiffusivity
Enumerator MolecularWeight
Enumerator MassSource
Public functions
Function enable_storage_cell_volume
Function find_species_scalar
- type: The type of the species variable according to the enum SpeciesVariableType
- species_name: The species name
- phase_name: The phase name
- const SpeciesVariableType type
- const std::string species_name = ""
- const std::string phase_name = ""
Function get_scalar_name
- index: The index of the scalar
- int index
Function get_scalar_unit
- index: The index of the scalar
- int index
Function find
- name: The name given to the scalar at the moment of its creation.
- const char * name
Function add
double:
for storing custom values during a simulation, preserving them between time iterations.
Parameters:
- name: The name given to the scalar variable. The purpose of this name is twofold. First, it enables to find this scalar variable from other module, in order to share their values. Second, if the scalar variable can be displayed in a 3D window as a property, this name will identify it in the Rocky UI.
- unit: A string specifying the unit in S.I. associated to the scalar variable.
- output: Enables/disables the storage in disk at output times, for the visualization and post-processing of the scalar values.
- const char * name
- const char * unit
- bool output = true
Function reset
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- int scalar_index
Function set_dimension
IRockyModel object.
Parameters:
- scalar_index: The index attributed to the scalar variable at the moment of its creation.
- dimension_factor: The appropriate dimensional factor for the scalar variable.
- int scalar_index
- double dimension_factor