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

#include <effective_medium_model.h>

Inheritance diagram for BruggemanEffectiveMediumModel:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ BruggemanEffectiveMediumModel()

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.

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 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.

Member Function Documentation

◆ apply_mixing_law()

std::complex< double > BruggemanEffectiveMediumModel::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
overridevirtual

Calculates the mixture property with the Bruggeman effective medium approximation.

Parameters
[in]field_valuesValues of the fields. It must contain the void fraction.
[in]phase_1_propertyProperty of phase 1.
[in]phase_2_propertyProperty of phase 2.
Returns
Property of the mixture.

Implements EffectiveMediumModel.

Definition at line 281 of file effective_medium_model.cc.

References bruggeman(), and void_fraction.

◆ bruggeman()

std::complex< double > BruggemanEffectiveMediumModel::bruggeman ( const double void_fraction,
const std::complex< double > phase_1_property,
const std::complex< double > phase_2_property )
staticprivate

Bruggeman formula for a given void fraction.

Parameters
[in]void_fractionVoid fraction of the mixture (volume fraction of phase 1).
[in]phase_1_propertyProperty of phase 1.
[in]phase_2_propertyProperty of phase 2.
Returns
Property of the mixture.

Definition at line 318 of file effective_medium_model.cc.

References void_fraction.

◆ vector_apply_mixing_law()

void BruggemanEffectiveMediumModel::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
overridevirtual

Calculates the mixture property with the Bruggeman effective medium approximation at multiple points.

Parameters
[in]field_vectorsValues of the fields at each point. It must contain the void fraction.
[in]phase_1_propertyProperty of phase 1 at each point.
[in]phase_2_propertyProperty of phase 2 at each point.
[in,out]mixture_propertyProperty of the mixture at each point.

Implements EffectiveMediumModel.

Definition at line 296 of file effective_medium_model.cc.

References bruggeman(), and void_fraction.


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