Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
PhysicalPropertiesManager Class Reference

#include <physical_properties_manager.h>

Public Member Functions

 PhysicalPropertiesManager ()
 PhysicalPropertiesManager (Parameters::PhysicalProperties physical_properties)
void initialize (Parameters::PhysicalProperties physical_properties)
void provide_simulation_control (std::shared_ptr< SimulationControl > &simulation_control)
unsigned int get_number_of_fluids () const
unsigned int get_number_of_solids () const
unsigned int get_number_of_material_interactions () const
std::shared_ptr< DensityModel > get_density (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< SpecificHeatModel > get_specific_heat (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< ThermalConductivityModel > get_thermal_conductivity (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< RheologicalModel > get_rheology (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< ThermalExpansionModel > get_thermal_expansion (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< TracerDiffusivityModel > get_tracer_diffusivity (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< TracerReactionPrefactorModel > get_tracer_reaction_prefactor (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< SurfaceTensionModel > get_surface_tension (const unsigned int material_interaction_id=0) const
std::shared_ptr< MobilityCahnHilliardModel > get_mobility_cahn_hilliard (const unsigned int material_interaction_id=0) const
std::shared_ptr< ElectricConductivityModel > get_electric_conductivity (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< ElectricPermittivityModel > get_electric_permittivity_real (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< ElectricPermittivityModel > get_electric_permittivity_imag (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< MagneticPermeabilityModel > get_magnetic_permeability_real (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::shared_ptr< MagneticPermeabilityModel > get_magnetic_permeability_imag (const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::vector< std::shared_ptr< DensityModel > > get_density_vector () const
std::vector< std::shared_ptr< SpecificHeatModel > > get_specific_heat_vector () const
std::vector< std::shared_ptr< ThermalConductivityModel > > get_thermal_conductivity_vector () const
std::vector< std::shared_ptr< RheologicalModel > > get_rheology_vector () const
std::vector< std::shared_ptr< ThermalExpansionModel > > get_thermal_expansion_vector () const
std::vector< Parameters::PhaseChange > get_phase_change_parameters_vector () const
std::vector< std::shared_ptr< TracerDiffusivityModel > > get_tracer_diffusivity_vector () const
std::vector< std::shared_ptr< SurfaceTensionModel > > get_surface_tension_vector () const
std::vector< std::shared_ptr< MobilityCahnHilliardModel > > get_mobility_cahn_hilliard_vector () const
std::vector< std::shared_ptr< ElectricConductivityModel > > get_electric_conductivity_vector () const
std::vector< std::shared_ptr< ElectricPermittivityModel > > get_electric_permittivity_real_vector () const
std::vector< std::shared_ptr< ElectricPermittivityModel > > get_electric_permittivity_imag_vector () const
std::vector< std::shared_ptr< MagneticPermeabilityModel > > get_magnetic_permeability_real_vector () const
std::vector< std::shared_ptr< MagneticPermeabilityModel > > get_magnetic_permeability_imag_vector () const
std::shared_ptr< EffectiveMediumModel > get_effective_electric_permittivity_real (const unsigned int material_interaction_id) const
std::shared_ptr< EffectiveMediumModel > get_effective_electric_permittivity_imag (const unsigned int material_interaction_id) const
std::shared_ptr< EffectiveMediumModel > get_effective_magnetic_permeability_real (const unsigned int material_interaction_id) const
std::shared_ptr< EffectiveMediumModel > get_effective_magnetic_permeability_imag (const unsigned int material_interaction_id) const
double get_kinematic_viscosity_scale () const
double get_density_scale () const
void set_rheology (std::shared_ptr< RheologicalModel > p_rheology, const unsigned int fluid_id=0)
bool is_non_newtonian () const
bool field_is_required (const field id) const
bool density_is_constant () const
Parameters::PhysicalProperties get_physical_properties_parameters () const
bool has_phase_change () const
bool surface_tension_is_constant () const
unsigned int get_material_interaction_id (const material_interactions_type material_interaction_type, const unsigned int material_0_id, const unsigned int material_1_id) const
double get_reference_temperature () const
bool is_effective_medium (const unsigned int fluid_id, const unsigned int material_id) const

Public Attributes

bool is_initialized

Private Member Functions

void establish_fields_required_by_model (PhysicalPropertyModel &model)
void establish_fields_required_by_model (InterfacePropertyModel &model)
unsigned int calculate_global_id (const unsigned int fluid_id, const unsigned int material_id) const

Private Attributes

std::vector< std::shared_ptr< DensityModel > > density
std::vector< std::shared_ptr< SpecificHeatModel > > specific_heat
std::vector< std::shared_ptr< ThermalConductivityModel > > thermal_conductivity
std::vector< std::shared_ptr< RheologicalModel > > rheology
std::vector< std::shared_ptr< ThermalExpansionModel > > thermal_expansion
std::vector< std::shared_ptr< TracerDiffusivityModel > > tracer_diffusivity
std::vector< std::shared_ptr< TracerReactionPrefactorModel > > tracer_reaction_prefactor
std::vector< double > tracer_reaction_order
std::vector< std::shared_ptr< SurfaceTensionModel > > surface_tension
std::vector< std::shared_ptr< MobilityCahnHilliardModel > > mobility_cahn_hilliard
std::vector< Parameters::PhaseChange > phase_change_parameters
std::vector< std::shared_ptr< ElectricConductivityModel > > electric_conductivity
std::vector< std::shared_ptr< ElectricPermittivityModel > > electric_permittivity_real
std::vector< std::shared_ptr< ElectricPermittivityModel > > electric_permittivity_imag
std::vector< std::shared_ptr< MagneticPermeabilityModel > > magnetic_permeability_real
std::vector< std::shared_ptr< MagneticPermeabilityModel > > magnetic_permeability_imag
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_electric_permittivity_real
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_electric_permittivity_imag
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_magnetic_permeability_real
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_magnetic_permeability_imag
std::map< field, bool > required_fields
bool non_newtonian_flow
bool constant_density
bool constant_surface_tension
bool phase_change
double reference_temperature
Parameters::PhysicalProperties physical_properties_parameters
unsigned int number_of_fluids
unsigned int number_of_solids
unsigned int number_of_material_interactions
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_fluid_interactions_with_material_interaction_ids
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_solid_interactions_with_material_interaction_ids
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_dispersed_phase_interactions_with_material_interaction_ids
std::vector< bool > material_is_effective_medium

Detailed Description

Class that manages the physical properties model which are required to calculate the various physical properties This centralizes the place where the models are created. The class can be constructed empty and initialized from parameters or it can be constructed directly with a Parameters section. The architecture of the PhysicalPropertiesManager is made to ensure that it can store as many physical properties models as required. It first stores the physical properties of the fluids, which are always assumed to lie in material_id=0, and then stores the physical properties of the solid, which may be in cells for which material_id>0.

Definition at line 70 of file physical_properties_manager.h.

Constructor & Destructor Documentation

◆ PhysicalPropertiesManager() [1/2]

PhysicalPropertiesManager::PhysicalPropertiesManager ( )
inline

Default constructor that initialized none of the physical properties.

Definition at line 76 of file physical_properties_manager.h.

References is_initialized.

◆ PhysicalPropertiesManager() [2/2]

PhysicalPropertiesManager::PhysicalPropertiesManager ( Parameters::PhysicalProperties physical_properties)

PhysicalPropertiesManager Constructor that initializes the class.

Parameters
physical_propertiesParameters for the physical properties

Member Function Documentation

◆ calculate_global_id()

unsigned int PhysicalPropertiesManager::calculate_global_id ( const unsigned int fluid_id,
const unsigned int material_id ) const
inlineprivate

Calculates the global id of the physical property. By default. Lethe stores all the properties of the fluids, then the properties of the solid. Fluids need to have a material id of 0, then solids are consequential.

Parameters
fluid_idthe id of the fluid (0 for single phase simulations, 0 or 1 for CLS simulations)
material_idthe material id of the cell. Cells with material_id=0 are fluid cells (0 or 1) and cells with material_id>0 are solid cells

Definition at line 591 of file physical_properties_manager.h.

References number_of_fluids.

◆ density_is_constant()

bool PhysicalPropertiesManager::density_is_constant ( ) const
inline

Definition at line 492 of file physical_properties_manager.h.

References constant_density.

◆ establish_fields_required_by_model() [1/2]

void PhysicalPropertiesManager::establish_fields_required_by_model ( InterfacePropertyModel & model)
private

◆ establish_fields_required_by_model() [2/2]

void PhysicalPropertiesManager::establish_fields_required_by_model ( PhysicalPropertyModel & model)
private

◆ field_is_required()

bool PhysicalPropertiesManager::field_is_required ( const field id) const
inline

Definition at line 486 of file physical_properties_manager.h.

References required_fields.

◆ get_density()

std::shared_ptr< DensityModel > PhysicalPropertiesManager::get_density ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 130 of file physical_properties_manager.h.

References calculate_global_id(), and density.

◆ get_density_scale()

double PhysicalPropertiesManager::get_density_scale ( ) const
inline

Definition at line 467 of file physical_properties_manager.h.

References density.

◆ get_density_vector()

std::vector< std::shared_ptr< DensityModel > > PhysicalPropertiesManager::get_density_vector ( ) const
inline

Definition at line 275 of file physical_properties_manager.h.

References density.

◆ get_effective_electric_permittivity_imag()

std::shared_ptr< EffectiveMediumModel > PhysicalPropertiesManager::get_effective_electric_permittivity_imag ( const unsigned int material_interaction_id) const
inline

Returns the effective medium model of the imaginary part of the electric permittivity of the mixture defined by a material interaction.

Parameters
material_interaction_idIndex of the material interaction. It must be a fluid-dispersed phase interaction.
Returns
A shared pointer to an EffectiveMediumModel.

Definition at line 414 of file physical_properties_manager.h.

References effective_electric_permittivity_imag.

◆ get_effective_electric_permittivity_real()

std::shared_ptr< EffectiveMediumModel > PhysicalPropertiesManager::get_effective_electric_permittivity_real ( const unsigned int material_interaction_id) const
inline

Returns the effective medium model of the real part of the electric permittivity of the mixture defined by a material interaction.

Parameters
material_interaction_idIndex of the material interaction. It must be a fluid-dispersed phase interaction.
Returns
A shared pointer to an EffectiveMediumModel.

Definition at line 396 of file physical_properties_manager.h.

References effective_electric_permittivity_real.

◆ get_effective_magnetic_permeability_imag()

std::shared_ptr< EffectiveMediumModel > PhysicalPropertiesManager::get_effective_magnetic_permeability_imag ( const unsigned int material_interaction_id) const
inline

Returns the effective medium model of the imaginary part of the magnetic permeability of the mixture defined by a material interaction.

Parameters
material_interaction_idIndex of the material interaction. It must be a fluid-dispersed phase interaction.
Returns
A shared pointer to an EffectiveMediumModel.

Definition at line 450 of file physical_properties_manager.h.

References effective_magnetic_permeability_imag.

◆ get_effective_magnetic_permeability_real()

std::shared_ptr< EffectiveMediumModel > PhysicalPropertiesManager::get_effective_magnetic_permeability_real ( const unsigned int material_interaction_id) const
inline

Returns the effective medium model of the real part of the magnetic permeability of the mixture defined by a material interaction.

Parameters
material_interaction_idIndex of the material interaction. It must be a fluid-dispersed phase interaction.
Returns
A shared pointer to an EffectiveMediumModel.

Definition at line 432 of file physical_properties_manager.h.

References effective_magnetic_permeability_real.

◆ get_electric_conductivity()

std::shared_ptr< ElectricConductivityModel > PhysicalPropertiesManager::get_electric_conductivity ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Returns the electric conductivity model for a given fluid_id and material_id.

Parameters
fluid_id
material_id
Returns
A shared pointer to a ElectricConductivityModel which inherits from the PhysicalPropertyModel class.

Definition at line 207 of file physical_properties_manager.h.

References calculate_global_id(), and electric_conductivity.

◆ get_electric_conductivity_vector()

std::vector< std::shared_ptr< ElectricConductivityModel > > PhysicalPropertiesManager::get_electric_conductivity_vector ( ) const
inline

Returns the vector of all electric conductivity models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a ElectricConductivityModel.

Definition at line 339 of file physical_properties_manager.h.

References electric_conductivity.

◆ get_electric_permittivity_imag()

std::shared_ptr< ElectricPermittivityModel > PhysicalPropertiesManager::get_electric_permittivity_imag ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Returns the electric permittivity model of the imaginary part for a given fluid_id and material_id.

Parameters
fluid_id
material_id
Returns
A shared pointer to a ElectricPermittivityModel which inherits from the PhysicalPropertyModel class.

Definition at line 236 of file physical_properties_manager.h.

References calculate_global_id(), and electric_permittivity_imag.

◆ get_electric_permittivity_imag_vector()

std::vector< std::shared_ptr< ElectricPermittivityModel > > PhysicalPropertiesManager::get_electric_permittivity_imag_vector ( ) const
inline

Returns the vector of all imaginary part electric permittivity models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a ElectricPermittivityModel.

Definition at line 361 of file physical_properties_manager.h.

References electric_permittivity_imag.

◆ get_electric_permittivity_real()

std::shared_ptr< ElectricPermittivityModel > PhysicalPropertiesManager::get_electric_permittivity_real ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Returns the electric permittivity model of the real part for a given fluid_id and material_id.

Parameters
fluid_id
material_id
Returns
A shared pointer to a ElectricPermittivityModel which inherits from the PhysicalPropertyModel class.

Definition at line 221 of file physical_properties_manager.h.

References calculate_global_id(), and electric_permittivity_real.

◆ get_electric_permittivity_real_vector()

std::vector< std::shared_ptr< ElectricPermittivityModel > > PhysicalPropertiesManager::get_electric_permittivity_real_vector ( ) const
inline

Returns the vector of all real part electric permittivity models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a ElectricPermittivityModel.

Definition at line 350 of file physical_properties_manager.h.

References electric_permittivity_real.

◆ get_kinematic_viscosity_scale()

double PhysicalPropertiesManager::get_kinematic_viscosity_scale ( ) const
inline

Definition at line 461 of file physical_properties_manager.h.

References rheology.

◆ get_magnetic_permeability_imag()

std::shared_ptr< MagneticPermeabilityModel > PhysicalPropertiesManager::get_magnetic_permeability_imag ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Returns the magnetic permeability model of the imaginary part for a given fluid_id and material_id.

Parameters
fluid_id
material_id
Returns
A shared pointer to a MagneticPermeabilityModel which inherits from the PhysicalPropertyModel class.

Definition at line 266 of file physical_properties_manager.h.

References calculate_global_id(), and magnetic_permeability_imag.

◆ get_magnetic_permeability_imag_vector()

std::vector< std::shared_ptr< MagneticPermeabilityModel > > PhysicalPropertiesManager::get_magnetic_permeability_imag_vector ( ) const
inline

Returns the vector of all imaginary part magnetic permeability models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a MagneticPermeabilityModel.

Definition at line 383 of file physical_properties_manager.h.

References magnetic_permeability_imag.

◆ get_magnetic_permeability_real()

std::shared_ptr< MagneticPermeabilityModel > PhysicalPropertiesManager::get_magnetic_permeability_real ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Returns the magnetic permeability model of the real part for a given fluid_id and material_id.

Parameters
fluid_id
material_id
Returns
A shared pointer to a MagneticPermeabilityModel which inherits from the PhysicalPropertyModel class.

Definition at line 251 of file physical_properties_manager.h.

References calculate_global_id(), and magnetic_permeability_real.

◆ get_magnetic_permeability_real_vector()

std::vector< std::shared_ptr< MagneticPermeabilityModel > > PhysicalPropertiesManager::get_magnetic_permeability_real_vector ( ) const
inline

Returns the vector of all real part magnetic permeability models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a MagneticPermeabilityModel.

Definition at line 372 of file physical_properties_manager.h.

References magnetic_permeability_real.

◆ get_material_interaction_id()

unsigned int PhysicalPropertiesManager::get_material_interaction_id ( const material_interactions_type material_interaction_type,
const unsigned int material_0_id,
const unsigned int material_1_id ) const
inline

◆ get_mobility_cahn_hilliard()

std::shared_ptr< MobilityCahnHilliardModel > PhysicalPropertiesManager::get_mobility_cahn_hilliard ( const unsigned int material_interaction_id = 0) const
inline

Returns the mobility model for a given material_interaction_id (integer).

Parameters
material_interaction_id
Returns
A shared pointer to a MobilityCahnHilliardModel which inherits from the InterfacePropertyModel class.

Definition at line 193 of file physical_properties_manager.h.

References mobility_cahn_hilliard.

◆ get_mobility_cahn_hilliard_vector()

std::vector< std::shared_ptr< MobilityCahnHilliardModel > > PhysicalPropertiesManager::get_mobility_cahn_hilliard_vector ( ) const
inline

Returns the vector of all mobility models defined in the problem.

Returns
A vector of shared pointer, each one them pointing to a MobilityCahnHilliardModel.

Definition at line 328 of file physical_properties_manager.h.

References mobility_cahn_hilliard.

◆ get_number_of_fluids()

unsigned int PhysicalPropertiesManager::get_number_of_fluids ( ) const
inline

Definition at line 111 of file physical_properties_manager.h.

References number_of_fluids.

◆ get_number_of_material_interactions()

unsigned int PhysicalPropertiesManager::get_number_of_material_interactions ( ) const
inline

Definition at line 123 of file physical_properties_manager.h.

References number_of_material_interactions.

◆ get_number_of_solids()

unsigned int PhysicalPropertiesManager::get_number_of_solids ( ) const
inline

Definition at line 117 of file physical_properties_manager.h.

References number_of_solids.

◆ get_phase_change_parameters_vector()

std::vector< Parameters::PhaseChange > PhysicalPropertiesManager::get_phase_change_parameters_vector ( ) const
inline

Definition at line 305 of file physical_properties_manager.h.

References phase_change_parameters.

◆ get_physical_properties_parameters()

Parameters::PhysicalProperties PhysicalPropertiesManager::get_physical_properties_parameters ( ) const
inline

Definition at line 498 of file physical_properties_manager.h.

References physical_properties_parameters.

◆ get_reference_temperature()

double PhysicalPropertiesManager::get_reference_temperature ( ) const
inline

Definition at line 554 of file physical_properties_manager.h.

References reference_temperature.

◆ get_rheology()

std::shared_ptr< RheologicalModel > PhysicalPropertiesManager::get_rheology ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 151 of file physical_properties_manager.h.

References calculate_global_id(), and rheology.

◆ get_rheology_vector()

std::vector< std::shared_ptr< RheologicalModel > > PhysicalPropertiesManager::get_rheology_vector ( ) const
inline

Definition at line 293 of file physical_properties_manager.h.

References rheology.

◆ get_specific_heat()

std::shared_ptr< SpecificHeatModel > PhysicalPropertiesManager::get_specific_heat ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 137 of file physical_properties_manager.h.

References calculate_global_id(), and specific_heat.

◆ get_specific_heat_vector()

std::vector< std::shared_ptr< SpecificHeatModel > > PhysicalPropertiesManager::get_specific_heat_vector ( ) const
inline

Definition at line 281 of file physical_properties_manager.h.

References specific_heat.

◆ get_surface_tension()

std::shared_ptr< SurfaceTensionModel > PhysicalPropertiesManager::get_surface_tension ( const unsigned int material_interaction_id = 0) const
inline

Definition at line 180 of file physical_properties_manager.h.

References surface_tension.

◆ get_surface_tension_vector()

std::vector< std::shared_ptr< SurfaceTensionModel > > PhysicalPropertiesManager::get_surface_tension_vector ( ) const
inline

Definition at line 317 of file physical_properties_manager.h.

References surface_tension.

◆ get_thermal_conductivity()

std::shared_ptr< ThermalConductivityModel > PhysicalPropertiesManager::get_thermal_conductivity ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 144 of file physical_properties_manager.h.

References calculate_global_id(), and thermal_conductivity.

◆ get_thermal_conductivity_vector()

std::vector< std::shared_ptr< ThermalConductivityModel > > PhysicalPropertiesManager::get_thermal_conductivity_vector ( ) const
inline

Definition at line 287 of file physical_properties_manager.h.

References thermal_conductivity.

◆ get_thermal_expansion()

std::shared_ptr< ThermalExpansionModel > PhysicalPropertiesManager::get_thermal_expansion ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 158 of file physical_properties_manager.h.

References calculate_global_id(), and thermal_expansion.

◆ get_thermal_expansion_vector()

std::vector< std::shared_ptr< ThermalExpansionModel > > PhysicalPropertiesManager::get_thermal_expansion_vector ( ) const
inline

Definition at line 299 of file physical_properties_manager.h.

References thermal_expansion.

◆ get_tracer_diffusivity()

std::shared_ptr< TracerDiffusivityModel > PhysicalPropertiesManager::get_tracer_diffusivity ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

Definition at line 165 of file physical_properties_manager.h.

References calculate_global_id(), and tracer_diffusivity.

◆ get_tracer_diffusivity_vector()

std::vector< std::shared_ptr< TracerDiffusivityModel > > PhysicalPropertiesManager::get_tracer_diffusivity_vector ( ) const
inline

Definition at line 311 of file physical_properties_manager.h.

References tracer_diffusivity.

◆ get_tracer_reaction_prefactor()

std::shared_ptr< TracerReactionPrefactorModel > PhysicalPropertiesManager::get_tracer_reaction_prefactor ( const unsigned int fluid_id = 0,
const unsigned int material_id = 0 ) const
inline

◆ has_phase_change()

bool PhysicalPropertiesManager::has_phase_change ( ) const
inline

Definition at line 504 of file physical_properties_manager.h.

References phase_change.

◆ initialize()

void PhysicalPropertiesManager::initialize ( Parameters::PhysicalProperties physical_properties)

initialize Initializes the physical properties using the parameters

Parameters
physical_propertiesParameters for the physical properties

Definition at line 31 of file physical_properties_manager.cc.

References constant_density, constant_surface_tension, density, effective_electric_permittivity_imag, effective_electric_permittivity_real, effective_magnetic_permeability_imag, effective_magnetic_permeability_real, electric_conductivity, electric_permittivity, electric_permittivity_imag, electric_permittivity_real, establish_fields_required_by_model(), fluid_dispersed_phase, Parameters::PhysicalProperties::fluid_dispersed_phase_interactions_with_material_interaction_ids, fluid_dispersed_phase_interactions_with_material_interaction_ids, Parameters::PhysicalProperties::fluid_fluid_interactions_with_material_interaction_ids, fluid_fluid_interactions_with_material_interaction_ids, Parameters::PhysicalProperties::fluid_solid_interactions_with_material_interaction_ids, fluid_solid_interactions_with_material_interaction_ids, Parameters::PhysicalProperties::fluids, PhysicalPropertyModel::imag, is_initialized, levelset, magnetic_permeability, magnetic_permeability_imag, magnetic_permeability_real, Parameters::PhysicalProperties::material_interactions, material_is_effective_medium, mobility_cahn_hilliard, DensityModel::model_cast(), EffectiveMediumModel::model_cast(), ElectricConductivityModel::model_cast(), MobilityCahnHilliardModel::model_cast(), RheologicalModel::model_cast(), SpecificHeatModel::model_cast(), SurfaceTensionModel::model_cast(), ThermalConductivityModel::model_cast(), ThermalExpansionModel::model_cast(), TracerDiffusivityModel::model_cast(), TracerReactionPrefactorModel::model_cast(), ElectricPermittivityModel::model_cast_imag(), MagneticPermeabilityModel::model_cast_imag(), ElectricPermittivityModel::model_cast_real(), MagneticPermeabilityModel::model_cast_real(), non_newtonian_flow, Parameters::PhysicalProperties::number_of_fluids, number_of_fluids, Parameters::PhysicalProperties::number_of_material_interactions, number_of_material_interactions, Parameters::PhysicalProperties::number_of_solids, number_of_solids, Parameters::Material::phase_change, phase_change, phase_change_parameters, phase_order_cahn_hilliard, physical_properties_parameters, pressure, PhysicalPropertyModel::real, Parameters::PhysicalProperties::reference_temperature, reference_temperature, required_fields, rheology, shear_rate, Parameters::PhysicalProperties::solids, specific_heat, surface_tension, temperature, temperature_p1, temperature_p2, thermal_conductivity, thermal_expansion, tracer_concentration, tracer_diffusivity, tracer_reaction_order, tracer_reaction_prefactor, and void_fraction.

◆ is_effective_medium()

bool PhysicalPropertiesManager::is_effective_medium ( const unsigned int fluid_id,
const unsigned int material_id ) const
inline

Returns true if the material with the given fluid_id and material_id is defined by an effective medium model, false otherwise.

Parameters
fluid_idThe id of the fluid (0 for single phase simulations, 0 or 1 for CLS simulations)
material_idThe material id of the cell. Cells with material_id=0 are fluid cells (0 or 1) and cells with material_id>0 are solid cells
Returns
true if the material is defined by an effective medium model, false otherwise

Definition at line 568 of file physical_properties_manager.h.

References calculate_global_id(), and material_is_effective_medium.

◆ is_non_newtonian()

bool PhysicalPropertiesManager::is_non_newtonian ( ) const
inline

Definition at line 480 of file physical_properties_manager.h.

References non_newtonian_flow.

◆ provide_simulation_control()

void PhysicalPropertiesManager::provide_simulation_control ( std::shared_ptr< SimulationControl > & simulation_control)
inline

◆ set_rheology()

void PhysicalPropertiesManager::set_rheology ( std::shared_ptr< RheologicalModel > p_rheology,
const unsigned int fluid_id = 0 )
inline

Definition at line 473 of file physical_properties_manager.h.

References rheology.

◆ surface_tension_is_constant()

bool PhysicalPropertiesManager::surface_tension_is_constant ( ) const
inline

Definition at line 510 of file physical_properties_manager.h.

References constant_surface_tension.

Member Data Documentation

◆ constant_density

bool PhysicalPropertiesManager::constant_density
private

Definition at line 640 of file physical_properties_manager.h.

◆ constant_surface_tension

bool PhysicalPropertiesManager::constant_surface_tension
private

Definition at line 641 of file physical_properties_manager.h.

◆ density

std::vector<std::shared_ptr<DensityModel> > PhysicalPropertiesManager::density
private

Definition at line 606 of file physical_properties_manager.h.

◆ effective_electric_permittivity_imag

std::vector<std::shared_ptr<EffectiveMediumModel> > PhysicalPropertiesManager::effective_electric_permittivity_imag
private

Definition at line 631 of file physical_properties_manager.h.

◆ effective_electric_permittivity_real

std::vector<std::shared_ptr<EffectiveMediumModel> > PhysicalPropertiesManager::effective_electric_permittivity_real
private

Definition at line 629 of file physical_properties_manager.h.

◆ effective_magnetic_permeability_imag

std::vector<std::shared_ptr<EffectiveMediumModel> > PhysicalPropertiesManager::effective_magnetic_permeability_imag
private

Definition at line 635 of file physical_properties_manager.h.

◆ effective_magnetic_permeability_real

std::vector<std::shared_ptr<EffectiveMediumModel> > PhysicalPropertiesManager::effective_magnetic_permeability_real
private

Definition at line 633 of file physical_properties_manager.h.

◆ electric_conductivity

std::vector<std::shared_ptr<ElectricConductivityModel> > PhysicalPropertiesManager::electric_conductivity
private

Definition at line 619 of file physical_properties_manager.h.

◆ electric_permittivity_imag

std::vector<std::shared_ptr<ElectricPermittivityModel> > PhysicalPropertiesManager::electric_permittivity_imag
private

Definition at line 623 of file physical_properties_manager.h.

◆ electric_permittivity_real

std::vector<std::shared_ptr<ElectricPermittivityModel> > PhysicalPropertiesManager::electric_permittivity_real
private

Definition at line 621 of file physical_properties_manager.h.

◆ fluid_dispersed_phase_interactions_with_material_interaction_ids

std::map<std::pair<unsigned int, unsigned int>, unsigned int> PhysicalPropertiesManager::fluid_dispersed_phase_interactions_with_material_interaction_ids
private

Definition at line 663 of file physical_properties_manager.h.

◆ fluid_fluid_interactions_with_material_interaction_ids

std::map<std::pair<unsigned int, unsigned int>, unsigned int> PhysicalPropertiesManager::fluid_fluid_interactions_with_material_interaction_ids
private

Definition at line 659 of file physical_properties_manager.h.

◆ fluid_solid_interactions_with_material_interaction_ids

std::map<std::pair<unsigned int, unsigned int>, unsigned int> PhysicalPropertiesManager::fluid_solid_interactions_with_material_interaction_ids
private

Definition at line 661 of file physical_properties_manager.h.

◆ is_initialized

bool PhysicalPropertiesManager::is_initialized

Definition at line 603 of file physical_properties_manager.h.

◆ magnetic_permeability_imag

std::vector<std::shared_ptr<MagneticPermeabilityModel> > PhysicalPropertiesManager::magnetic_permeability_imag
private

Definition at line 627 of file physical_properties_manager.h.

◆ magnetic_permeability_real

std::vector<std::shared_ptr<MagneticPermeabilityModel> > PhysicalPropertiesManager::magnetic_permeability_real
private

Definition at line 625 of file physical_properties_manager.h.

◆ material_is_effective_medium

std::vector<bool> PhysicalPropertiesManager::material_is_effective_medium
private

Definition at line 667 of file physical_properties_manager.h.

◆ mobility_cahn_hilliard

std::vector<std::shared_ptr<MobilityCahnHilliardModel> > PhysicalPropertiesManager::mobility_cahn_hilliard
private

Definition at line 617 of file physical_properties_manager.h.

◆ non_newtonian_flow

bool PhysicalPropertiesManager::non_newtonian_flow
private

Definition at line 639 of file physical_properties_manager.h.

◆ number_of_fluids

unsigned int PhysicalPropertiesManager::number_of_fluids
private

Definition at line 653 of file physical_properties_manager.h.

◆ number_of_material_interactions

unsigned int PhysicalPropertiesManager::number_of_material_interactions
private

Definition at line 655 of file physical_properties_manager.h.

◆ number_of_solids

unsigned int PhysicalPropertiesManager::number_of_solids
private

Definition at line 654 of file physical_properties_manager.h.

◆ phase_change

bool PhysicalPropertiesManager::phase_change
private

Definition at line 642 of file physical_properties_manager.h.

◆ phase_change_parameters

std::vector<Parameters::PhaseChange> PhysicalPropertiesManager::phase_change_parameters
private

Definition at line 618 of file physical_properties_manager.h.

◆ physical_properties_parameters

Parameters::PhysicalProperties PhysicalPropertiesManager::physical_properties_parameters
private

Definition at line 651 of file physical_properties_manager.h.

◆ reference_temperature

double PhysicalPropertiesManager::reference_temperature
private

Definition at line 648 of file physical_properties_manager.h.

◆ required_fields

std::map<field, bool> PhysicalPropertiesManager::required_fields
private

Definition at line 637 of file physical_properties_manager.h.

◆ rheology

std::vector<std::shared_ptr<RheologicalModel> > PhysicalPropertiesManager::rheology
private

Definition at line 609 of file physical_properties_manager.h.

◆ specific_heat

std::vector<std::shared_ptr<SpecificHeatModel> > PhysicalPropertiesManager::specific_heat
private

Definition at line 607 of file physical_properties_manager.h.

◆ surface_tension

std::vector<std::shared_ptr<SurfaceTensionModel> > PhysicalPropertiesManager::surface_tension
private

Definition at line 615 of file physical_properties_manager.h.

◆ thermal_conductivity

std::vector<std::shared_ptr<ThermalConductivityModel> > PhysicalPropertiesManager::thermal_conductivity
private

Definition at line 608 of file physical_properties_manager.h.

◆ thermal_expansion

std::vector<std::shared_ptr<ThermalExpansionModel> > PhysicalPropertiesManager::thermal_expansion
private

Definition at line 610 of file physical_properties_manager.h.

◆ tracer_diffusivity

std::vector<std::shared_ptr<TracerDiffusivityModel> > PhysicalPropertiesManager::tracer_diffusivity
private

Definition at line 611 of file physical_properties_manager.h.

◆ tracer_reaction_order

std::vector<double> PhysicalPropertiesManager::tracer_reaction_order
private

Definition at line 614 of file physical_properties_manager.h.

◆ tracer_reaction_prefactor

std::vector<std::shared_ptr<TracerReactionPrefactorModel> > PhysicalPropertiesManager::tracer_reaction_prefactor
private

Definition at line 613 of file physical_properties_manager.h.


The documentation for this class was generated from the following files: