Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
NoEffectiveMediumModel Class Referencefinal

#include <effective_medium_model.h>

Inheritance diagram for NoEffectiveMediumModel:
[legend]

Public Member Functions

std::complex< double > apply_mixing_law (const std::map< field, double > &field_values, const std::complex< double > phase_1_property, const std::complex< double > phase_2_property) const override
void vector_apply_mixing_law (const std::map< field, std::vector< double > > &field_vectors, const std::vector< std::complex< double > > &phase_1_property, const std::vector< std::complex< double > > &phase_2_property, std::vector< std::complex< double > > &mixture_property) const override
 EffectiveMediumModel (const Parameters::PhysicalProperties &physical_properties, const unsigned int material_interaction_id, const EffectiveMediumProperty &property, const ComplexComponent &complex_component)
Public Member Functions inherited from EffectiveMediumModel
 EffectiveMediumModel (const Parameters::PhysicalProperties &physical_properties, const unsigned int material_interaction_id, const EffectiveMediumProperty &property, const ComplexComponent &complex_component)
double value (const std::map< field, double > &field_values) override
void vector_value (const std::map< field, std::vector< double > > &field_vectors, std::vector< double > &property_vector) override
double jacobian (const std::map< field, double > &field_values, const field id) override
void vector_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector) override
Public Member Functions inherited from PhysicalPropertyModel
 PhysicalPropertyModel ()
virtual ~PhysicalPropertyModel ()=default
bool depends_on (const field &id)
void provide_simulation_control (std::shared_ptr< SimulationControl > &p_simulation_control)
double numerical_jacobian (const std::map< field, double > &field_values, const field id)
void vector_numerical_jacobian (const std::map< field, std::vector< double > > &field_vectors, const field id, std::vector< double > &jacobian_vector)

Additional Inherited Members

Public Types inherited from PhysicalPropertyModel
enum class  ComplexComponent : std::int8_t { real , imag }
Static Public Member Functions inherited from EffectiveMediumModel
static std::shared_ptr< EffectiveMediumModel > model_cast (const Parameters::PhysicalProperties &physical_properties, const unsigned int material_interaction_id, const EffectiveMediumProperty &property, const ComplexComponent &complex_component)
Protected Member Functions inherited from EffectiveMediumModel
void add_phase_dependencies (const PhaseModels &phase_models)
Protected Member Functions inherited from PhysicalPropertyModel
std::shared_ptr< SimulationControl > & get_simulation_control ()
Protected Attributes inherited from EffectiveMediumModel
PhaseModels phase_1_models
PhaseModels phase_2_models
Protected Attributes inherited from PhysicalPropertyModel
std::map< field, bool > model_depends_on

Detailed Description

Mixture without effective medium model: the mixture property is the property of phase 1. It is used when one of the phases has no impact on the mixture property.

Definition at line 273 of file effective_medium_model.h.

Member Function Documentation

◆ apply_mixing_law()

std::complex< double > NoEffectiveMediumModel::apply_mixing_law ( const std::map< field, double > & field_values,
const std::complex< double > phase_1_property,
const std::complex< double > phase_2_property ) const
inlineoverridevirtual

Returns the property of phase 1.

Parameters
[in]field_valuesValues of the fields (unused).
[in]phase_1_propertyProperty of phase 1.
[in]phase_2_propertyProperty of phase 2 (unused).
Returns
Property of phase 1.

Implements EffectiveMediumModel.

Definition at line 288 of file effective_medium_model.h.

◆ EffectiveMediumModel()

EffectiveMediumModel::EffectiveMediumModel ( const Parameters::PhysicalProperties & physical_properties,
const unsigned int material_interaction_id,
const EffectiveMediumProperty & property,
const ComplexComponent & complex_component )

Constructor. Gets the materials of the two phases from the material interaction, creates the models of their property and sets the fields on which these models depend.

Parameters
[in]physical_propertiesPhysical properties parameters.
[in]material_interaction_idIndex of the material interaction that defines the mixture.
[in]propertyMixture property calculated by the model.
[in]complex_componentPart of the mixture property returned by the model.

Definition at line 63 of file effective_medium_model.cc.

References EffectiveMediumModel::complex_component, EffectiveMediumModel::get_model_type(), Parameters::PhysicalProperties::material_interactions, and Parameters::MaterialInteractions::none.

◆ vector_apply_mixing_law()

void NoEffectiveMediumModel::vector_apply_mixing_law ( const std::map< field, std::vector< double > > & field_vectors,
const std::vector< std::complex< double > > & phase_1_property,
const std::vector< std::complex< double > > & phase_2_property,
std::vector< std::complex< double > > & mixture_property ) const
inlineoverridevirtual

Returns the property of phase 1 at multiple points.

Parameters
[in]field_vectorsValues of the fields at each point (unused).
[in]phase_1_propertyProperty of phase 1 at each point.
[in]phase_2_propertyProperty of phase 2 at each point (unused).
[in,out]mixture_propertyProperty of phase 1 at each point.

Implements EffectiveMediumModel.

Definition at line 305 of file effective_medium_model.h.


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