![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <effective_medium_model.h>
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 |
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.
|
inlineoverridevirtual |
Returns the property of phase 1.
| [in] | field_values | Values of the fields (unused). |
| [in] | phase_1_property | Property of phase 1. |
| [in] | phase_2_property | Property of phase 2 (unused). |
Implements EffectiveMediumModel.
Definition at line 288 of file effective_medium_model.h.
| 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.
| [in] | physical_properties | Physical properties parameters. |
| [in] | material_interaction_id | Index of the material interaction that defines the mixture. |
| [in] | property | Mixture property calculated by the model. |
| [in] | complex_component | Part 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.
|
inlineoverridevirtual |
Returns the property of phase 1 at multiple points.
| [in] | field_vectors | Values of the fields at each point (unused). |
| [in] | phase_1_property | Property of phase 1 at each point. |
| [in] | phase_2_property | Property of phase 2 at each point (unused). |
| [in,out] | mixture_property | Property of phase 1 at each point. |
Implements EffectiveMediumModel.
Definition at line 305 of file effective_medium_model.h.