![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <effective_medium_model.h>
Public Member Functions | |
| BruggemanEffectiveMediumModel (const Parameters::PhysicalProperties &physical_properties, const unsigned int material_interaction_id, const EffectiveMediumProperty property, const ComplexComponent complex_component) | |
| 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 |
| 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) |
Static Private Member Functions | |
| static std::complex< double > | bruggeman (const double void_fraction, const std::complex< double > phase_1_property, const std::complex< double > phase_2_property) |
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 |
Two-phase Bruggeman effective medium approximation for spherical inclusions. With the void fraction \(\epsilon\) (volume fraction of phase 1), the mixture property \(\alpha_\mathrm{eff}\) is the root of \(\epsilon\frac{\alpha_1 - \alpha_\mathrm{eff}}{\alpha_1 + 2\alpha_\mathrm{eff}} + (1-\epsilon)\frac{\alpha_2 - \alpha_\mathrm{eff}}{\alpha_2 + 2\alpha_\mathrm{eff}} = 0\), a quadratic equation. The root with a positive real part and a non-negative imaginary part is kept.
Definition at line 325 of file effective_medium_model.h.
| BruggemanEffectiveMediumModel::BruggemanEffectiveMediumModel | ( | const Parameters::PhysicalProperties & | physical_properties, |
| const unsigned int | material_interaction_id, | ||
| const EffectiveMediumProperty | property, | ||
| const ComplexComponent | complex_component ) |
Constructor. Adds the fields on which the models of phase 2 depend and the void fraction to the fields on which the mixture property depends.
| [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 264 of file effective_medium_model.cc.
References EffectiveMediumModel::add_phase_dependencies(), EffectiveMediumModel::complex_component, EffectiveMediumModel::EffectiveMediumModel(), PhysicalPropertyModel::model_depends_on, EffectiveMediumModel::phase_2_models, and void_fraction.
|
overridevirtual |
Calculates the mixture property with the Bruggeman effective medium approximation.
| [in] | field_values | Values of the fields. It must contain the void fraction. |
| [in] | phase_1_property | Property of phase 1. |
| [in] | phase_2_property | Property of phase 2. |
Implements EffectiveMediumModel.
Definition at line 281 of file effective_medium_model.cc.
References bruggeman(), and void_fraction.
|
staticprivate |
Bruggeman formula for a given void fraction.
| [in] | void_fraction | Void fraction of the mixture (volume fraction of phase 1). |
| [in] | phase_1_property | Property of phase 1. |
| [in] | phase_2_property | Property of phase 2. |
Definition at line 318 of file effective_medium_model.cc.
References void_fraction.
|
overridevirtual |
Calculates the mixture property with the Bruggeman effective medium approximation at multiple points.
| [in] | field_vectors | Values of the fields at each point. It must contain the void fraction. |
| [in] | phase_1_property | Property of phase 1 at each point. |
| [in] | phase_2_property | Property of phase 2 at each point. |
| [in,out] | mixture_property | Property of the mixture at each point. |
Implements EffectiveMediumModel.
Definition at line 296 of file effective_medium_model.cc.
References bruggeman(), and void_fraction.