Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
physical_properties_manager.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) 2022-2024, 2026 The Lethe Authors
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
3
4#ifndef lethe_physical_properties_manager_h
5#define lethe_physical_properties_manager_h
6
20
21#include <utility>
22
23using namespace dealii;
24
26 RequiresConstantDensity,
27 std::string,
28 "The following assembler or post-processing utility "
29 << arg1
30 << " that you are trying to use does not support the use of a non-constant density model."
31 " Modifications to Lethe are required to take this into account.");
32
33
35 RequiresConstantViscosity,
36 std::string,
37 "The following assembler or post-processing utility "
38 << arg1
39 << " that you are trying to use does not support the use of a non-constant viscosity model. "
40 "Modifications to Lethe are required to take this into account.");
41
43 MaterialInteractionIsNotEffectiveMedium,
44 unsigned int,
45 "The material interaction with id "
46 << arg1
47 << " does not define an effective medium model. Only fluid-dispersed phase interactions do.");
48
55
56
57/** @brief Class that manages the physical properties
58 * model which are required to calculate the various physical properties
59 * This centralizes the place where the models are created.
60 * The class can be constructed empty and initialized from parameters
61 * or it can be constructed directly with a Parameters section.
62 * The architecture of the PhysicalPropertiesManager is made to ensure that it
63 * can store as many physical properties models as required. It first stores
64 * the physical properties of the fluids, which are always assumed to lie in
65 * material_id=0, and then stores the physical properties of the solid, which
66 * may be in cells for which material_id>0.
67 *
68 */
69
71{
72public:
73 /**
74 * @brief Default constructor that initialized none of the physical properties
75 */
80
81 /**
82 * @brief PhysicalPropertiesManager Constructor that initializes the class
83 * @param physical_properties Parameters for the physical properties
84 */
85
87
88 /**
89 * @brief initialize Initializes the physical properties using the parameters
90 * @param physical_properties Parameters for the physical properties
91 */
92
93 void
94 initialize(Parameters::PhysicalProperties physical_properties);
95
96 void
98 std::shared_ptr<SimulationControl> &simulation_control)
99 {
100 // At the present moment, only SpecificHeatModel can be time-dependent
101 // Consequently we only pass the SimulationControl object to the
102 // SpecificHeatModel.
103 for (unsigned int f = 0; f < number_of_fluids; ++f)
104 specific_heat[f]->provide_simulation_control(simulation_control);
105 for (unsigned int s = 0; s < number_of_solids; ++s)
107 simulation_control);
108 }
109
110 inline unsigned int
112 {
113 return number_of_fluids;
114 }
115
116 inline unsigned int
118 {
119 return number_of_solids;
120 }
121
122 inline unsigned int
127
128 // Getters for the physical property models
129 std::shared_ptr<DensityModel>
130 get_density(const unsigned int fluid_id = 0,
131 const unsigned int material_id = 0) const
132 {
133 return density[calculate_global_id(fluid_id, material_id)];
134 }
135
136 std::shared_ptr<SpecificHeatModel>
137 get_specific_heat(const unsigned int fluid_id = 0,
138 const unsigned int material_id = 0) const
139 {
140 return specific_heat[calculate_global_id(fluid_id, material_id)];
141 }
142
143 std::shared_ptr<ThermalConductivityModel>
144 get_thermal_conductivity(const unsigned int fluid_id = 0,
145 const unsigned int material_id = 0) const
146 {
147 return thermal_conductivity[calculate_global_id(fluid_id, material_id)];
148 }
149
150 std::shared_ptr<RheologicalModel>
151 get_rheology(const unsigned int fluid_id = 0,
152 const unsigned int material_id = 0) const
153 {
154 return rheology[calculate_global_id(fluid_id, material_id)];
155 }
156
157 std::shared_ptr<ThermalExpansionModel>
158 get_thermal_expansion(const unsigned int fluid_id = 0,
159 const unsigned int material_id = 0) const
160 {
161 return thermal_expansion[calculate_global_id(fluid_id, material_id)];
162 }
163
164 std::shared_ptr<TracerDiffusivityModel>
165 get_tracer_diffusivity(const unsigned int fluid_id = 0,
166 const unsigned int material_id = 0) const
167 {
168 return tracer_diffusivity[calculate_global_id(fluid_id, material_id)];
169 }
170
171 std::shared_ptr<TracerReactionPrefactorModel>
172 get_tracer_reaction_prefactor(const unsigned int fluid_id = 0,
173 const unsigned int material_id = 0) const
174 {
176 material_id)];
177 }
178
179 std::shared_ptr<SurfaceTensionModel>
180 get_surface_tension(const unsigned int material_interaction_id = 0) const
181 {
182 return surface_tension[material_interaction_id];
183 }
184
185 /**
186 * @brief Returns the mobility model for a given material_interaction_id
187 * (integer)
188 * @param material_interaction_id
189 * @return A shared pointer to a MobilityCahnHilliardModel which inherits from
190 * the InterfacePropertyModel class.
191 */
192 std::shared_ptr<MobilityCahnHilliardModel>
194 const unsigned int material_interaction_id = 0) const
195 {
196 return mobility_cahn_hilliard[material_interaction_id];
197 }
198
199 /**
200 * @brief Returns the electric conductivity model for a given fluid_id and material_id
201 * @param fluid_id
202 * @param material_id
203 * @return A shared pointer to a ElectricConductivityModel which inherits from
204 * the PhysicalPropertyModel class.
205 */
206 std::shared_ptr<ElectricConductivityModel>
207 get_electric_conductivity(const unsigned int fluid_id = 0,
208 const unsigned int material_id = 0) const
209 {
210 return electric_conductivity[calculate_global_id(fluid_id, material_id)];
211 }
212
213 /**
214 * @brief Returns the electric permittivity model of the real part for a given fluid_id and material_id
215 * @param fluid_id
216 * @param material_id
217 * @return A shared pointer to a ElectricPermittivityModel which inherits from
218 * the PhysicalPropertyModel class.
219 */
220 std::shared_ptr<ElectricPermittivityModel>
221 get_electric_permittivity_real(const unsigned int fluid_id = 0,
222 const unsigned int material_id = 0) const
223 {
225 material_id)];
226 }
227
228 /**
229 * @brief Returns the electric permittivity model of the imaginary part for a given fluid_id and material_id
230 * @param fluid_id
231 * @param material_id
232 * @return A shared pointer to a ElectricPermittivityModel which inherits from
233 * the PhysicalPropertyModel class.
234 */
235 std::shared_ptr<ElectricPermittivityModel>
236 get_electric_permittivity_imag(const unsigned int fluid_id = 0,
237 const unsigned int material_id = 0) const
238 {
240 material_id)];
241 }
242
243 /**
244 * @brief Returns the magnetic permeability model of the real part for a given fluid_id and material_id
245 * @param fluid_id
246 * @param material_id
247 * @return A shared pointer to a MagneticPermeabilityModel which inherits from
248 * the PhysicalPropertyModel class.
249 */
250 std::shared_ptr<MagneticPermeabilityModel>
251 get_magnetic_permeability_real(const unsigned int fluid_id = 0,
252 const unsigned int material_id = 0) const
253 {
255 material_id)];
256 }
257
258 /**
259 * @brief Returns the magnetic permeability model of the imaginary part for a given fluid_id and material_id
260 * @param fluid_id
261 * @param material_id
262 * @return A shared pointer to a MagneticPermeabilityModel which inherits from
263 * the PhysicalPropertyModel class.
264 */
265 std::shared_ptr<MagneticPermeabilityModel>
266 get_magnetic_permeability_imag(const unsigned int fluid_id = 0,
267 const unsigned int material_id = 0) const
268 {
270 material_id)];
271 }
272
273 // Vector Getters for the physical property models
274 std::vector<std::shared_ptr<DensityModel>>
276 {
277 return density;
278 }
279
280 std::vector<std::shared_ptr<SpecificHeatModel>>
282 {
283 return specific_heat;
284 }
285
286 std::vector<std::shared_ptr<ThermalConductivityModel>>
291
292 std::vector<std::shared_ptr<RheologicalModel>>
294 {
295 return rheology;
296 }
297
298 std::vector<std::shared_ptr<ThermalExpansionModel>>
300 {
301 return thermal_expansion;
302 }
303
304 std::vector<Parameters::PhaseChange>
309
310 std::vector<std::shared_ptr<TracerDiffusivityModel>>
312 {
313 return tracer_diffusivity;
314 }
315
316 std::vector<std::shared_ptr<SurfaceTensionModel>>
318 {
319 return surface_tension;
320 }
321
322 /**
323 * @brief Returns the vector of all mobility models defined in the problem.
324 * @return A vector of shared pointer, each one them pointing to a
325 * MobilityCahnHilliardModel.
326 */
327 std::vector<std::shared_ptr<MobilityCahnHilliardModel>>
332
333 /**
334 * @brief Returns the vector of all electric conductivity models defined in the problem.
335 * @return A vector of shared pointer, each one them pointing to a
336 * ElectricConductivityModel.
337 */
338 std::vector<std::shared_ptr<ElectricConductivityModel>>
343
344 /**
345 * @brief Returns the vector of all real part electric permittivity models defined in the problem.
346 * @return A vector of shared pointer, each one them pointing to a
347 * ElectricPermittivityModel.
348 */
349 std::vector<std::shared_ptr<ElectricPermittivityModel>>
354
355 /**
356 * @brief Returns the vector of all imaginary part electric permittivity models defined in the problem.
357 * @return A vector of shared pointer, each one them pointing to a
358 * ElectricPermittivityModel.
359 */
360 std::vector<std::shared_ptr<ElectricPermittivityModel>>
365
366 /**
367 * @brief Returns the vector of all real part magnetic permeability models defined in the problem.
368 * @return A vector of shared pointer, each one them pointing to a
369 * MagneticPermeabilityModel.
370 */
371 std::vector<std::shared_ptr<MagneticPermeabilityModel>>
376
377 /**
378 * @brief Returns the vector of all imaginary part magnetic permeability models defined in the problem.
379 * @return A vector of shared pointer, each one them pointing to a
380 * MagneticPermeabilityModel.
381 */
382 std::vector<std::shared_ptr<MagneticPermeabilityModel>>
387
388 /**
389 * @brief Returns the effective medium model of the real part of the electric
390 * permittivity of the mixture defined by a material interaction.
391 * @param material_interaction_id Index of the material interaction. It must
392 * be a fluid-dispersed phase interaction.
393 * @return A shared pointer to an EffectiveMediumModel.
394 */
395 std::shared_ptr<EffectiveMediumModel>
397 const unsigned int material_interaction_id) const
398 {
400 material_interaction_id) != nullptr,
401 MaterialInteractionIsNotEffectiveMedium(
402 material_interaction_id));
403 return effective_electric_permittivity_real[material_interaction_id];
404 }
405
406 /**
407 * @brief Returns the effective medium model of the imaginary part of the electric
408 * permittivity of the mixture defined by a material interaction.
409 * @param material_interaction_id Index of the material interaction. It must
410 * be a fluid-dispersed phase interaction.
411 * @return A shared pointer to an EffectiveMediumModel.
412 */
413 std::shared_ptr<EffectiveMediumModel>
415 const unsigned int material_interaction_id) const
416 {
418 material_interaction_id) != nullptr,
419 MaterialInteractionIsNotEffectiveMedium(
420 material_interaction_id));
421 return effective_electric_permittivity_imag[material_interaction_id];
422 }
423
424 /**
425 * @brief Returns the effective medium model of the real part of the magnetic
426 * permeability of the mixture defined by a material interaction.
427 * @param material_interaction_id Index of the material interaction. It must
428 * be a fluid-dispersed phase interaction.
429 * @return A shared pointer to an EffectiveMediumModel.
430 */
431 std::shared_ptr<EffectiveMediumModel>
433 const unsigned int material_interaction_id) const
434 {
436 material_interaction_id) != nullptr,
437 MaterialInteractionIsNotEffectiveMedium(
438 material_interaction_id));
439 return effective_magnetic_permeability_real[material_interaction_id];
440 }
441
442 /**
443 * @brief Returns the effective medium model of the imaginary part of the magnetic
444 * permeability of the mixture defined by a material interaction.
445 * @param material_interaction_id Index of the material interaction. It must
446 * be a fluid-dispersed phase interaction.
447 * @return A shared pointer to an EffectiveMediumModel.
448 */
449 std::shared_ptr<EffectiveMediumModel>
451 const unsigned int material_interaction_id) const
452 {
454 material_interaction_id) != nullptr,
455 MaterialInteractionIsNotEffectiveMedium(
456 material_interaction_id));
457 return effective_magnetic_permeability_imag[material_interaction_id];
458 }
459
460 double
462 {
463 return rheology[0]->get_kinematic_viscosity_scale();
464 }
465
466 double
468 {
469 return density[0]->get_density_ref();
470 }
471
472 void
473 set_rheology(std::shared_ptr<RheologicalModel> p_rheology,
474 const unsigned int fluid_id = 0)
475 {
476 rheology[fluid_id] = std::move(p_rheology);
477 }
478
479 bool
481 {
482 return non_newtonian_flow;
483 }
484
485 bool
486 field_is_required(const field id) const
487 {
488 return required_fields.at(id);
489 }
490
491 bool
493 {
494 return constant_density;
495 }
496
502
503 bool
505 {
506 return phase_change;
507 }
508
509 bool
514
515 unsigned int
517 const material_interactions_type material_interaction_type,
518 const unsigned int material_0_id,
519 const unsigned int material_1_id) const
520 {
521 if (material_interaction_type == material_interactions_type::fluid_fluid)
522 {
523 std::pair<unsigned int, unsigned int> fluid_fluid_material_interaction(
524 material_0_id, material_1_id);
526 .find(fluid_fluid_material_interaction)
527 ->second;
528 }
529 else if (material_interaction_type ==
531 {
532 std::pair<unsigned int, unsigned int> fluid_solid_material_interaction(
533 material_0_id, material_1_id);
535 .find(fluid_solid_material_interaction)
536 ->second;
537 }
538 else if (material_interaction_type ==
540 {
541 std::pair<unsigned int, unsigned int>
542 fluid_dispersed_phase_material_interaction(material_0_id,
543 material_1_id);
545 .find(fluid_dispersed_phase_material_interaction)
546 ->second;
547 }
548 else
549 throw(std::runtime_error(
550 "Invalid type of material interaction. The choices are <fluid_fluid|fluid_solid|fluid_dispersed_phase>"));
551 }
552
553 double
555 {
557 }
558
559 /**
560 * @brief Returns true if the material with the given fluid_id and material_id
561 * is defined by an effective medium model, false otherwise.
562 *
563 * @param fluid_id The id of the fluid (0 for single phase simulations, 0 or 1 for CLS simulations)
564 * @param material_id The 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
565 * @return true if the material is defined by an effective medium model, false otherwise
566 */
567 inline bool
568 is_effective_medium(const unsigned int fluid_id,
569 const unsigned int material_id) const
570 {
572 material_id)];
573 }
574
575private:
576 void
578
579 void
581
582 /** @brief Calculates the global id of the physical property. By default. Lethe stores all
583 * the properties of the fluids, then the properties of the solid. Fluids
584 * need to have a material id of 0, then solids are consequential.
585 *
586 * @param fluid_id the id of the fluid (0 for single phase simulations, 0 or 1 for CLS simulations)
587 *
588 * @param material_id the 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
589 */
590 unsigned int
591 calculate_global_id(const unsigned int fluid_id,
592 const unsigned int material_id) const
593 {
594 if (material_id < 1)
595 return fluid_id;
596 else
597 {
598 return number_of_fluids + material_id - 1;
599 }
600 }
601
602public:
604
605private:
606 std::vector<std::shared_ptr<DensityModel>> density;
607 std::vector<std::shared_ptr<SpecificHeatModel>> specific_heat;
608 std::vector<std::shared_ptr<ThermalConductivityModel>> thermal_conductivity;
609 std::vector<std::shared_ptr<RheologicalModel>> rheology;
610 std::vector<std::shared_ptr<ThermalExpansionModel>> thermal_expansion;
611 std::vector<std::shared_ptr<TracerDiffusivityModel>> tracer_diffusivity;
612 std::vector<std::shared_ptr<TracerReactionPrefactorModel>>
614 std::vector<double> tracer_reaction_order;
615 std::vector<std::shared_ptr<SurfaceTensionModel>> surface_tension;
616 std::vector<std::shared_ptr<MobilityCahnHilliardModel>>
618 std::vector<Parameters::PhaseChange> phase_change_parameters;
619 std::vector<std::shared_ptr<ElectricConductivityModel>> electric_conductivity;
620 std::vector<std::shared_ptr<ElectricPermittivityModel>>
622 std::vector<std::shared_ptr<ElectricPermittivityModel>>
624 std::vector<std::shared_ptr<MagneticPermeabilityModel>>
626 std::vector<std::shared_ptr<MagneticPermeabilityModel>>
628 std::vector<std::shared_ptr<EffectiveMediumModel>>
630 std::vector<std::shared_ptr<EffectiveMediumModel>>
632 std::vector<std::shared_ptr<EffectiveMediumModel>>
634 std::vector<std::shared_ptr<EffectiveMediumModel>>
636
637 std::map<field, bool> required_fields;
638
643 /*
644 * Reference temperature used for the calculation of all physical properties
645 * of all materials. Currently, this is only used for the thermal expansion
646 * model.
647 */
649
650 // Internal copy of the parameters used to build the manager
652
653 unsigned int number_of_fluids;
654 unsigned int number_of_solids;
656
657 // For material interactions
658 std::map<std::pair<unsigned int, unsigned int>, unsigned int>
660 std::map<std::pair<unsigned int, unsigned int>, unsigned int>
662 std::map<std::pair<unsigned int, unsigned int>, unsigned int>
664
665 // Container that indicates, for each material (global id), if its properties
666 // are given by effective medium models.
668};
669
670#endif
Abstract class that defines the interface for a interface property model. Interface property model pr...
PhysicalProperties - Define the possible physical properties. All continuum equations share the same ...
Definition parameters.h:839
std::vector< std::shared_ptr< ElectricConductivityModel > > electric_conductivity
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_magnetic_permeability_real
std::vector< bool > material_is_effective_medium
std::shared_ptr< SpecificHeatModel > get_specific_heat(const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::vector< std::shared_ptr< MobilityCahnHilliardModel > > get_mobility_cahn_hilliard_vector() const
Returns the vector of all mobility models defined in the problem.
std::shared_ptr< ElectricPermittivityModel > get_electric_permittivity_real(const unsigned int fluid_id=0, const unsigned int material_id=0) const
Returns the electric permittivity model of the real part for a given fluid_id and material_id.
std::vector< std::shared_ptr< ElectricConductivityModel > > get_electric_conductivity_vector() const
Returns the vector of all electric conductivity models defined in the problem.
std::vector< Parameters::PhaseChange > get_phase_change_parameters_vector() const
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_fluid_interactions_with_material_interaction_ids
std::vector< Parameters::PhaseChange > phase_change_parameters
std::shared_ptr< ElectricConductivityModel > get_electric_conductivity(const unsigned int fluid_id=0, const unsigned int material_id=0) const
Returns the electric conductivity model for a given fluid_id and material_id.
std::vector< std::shared_ptr< SpecificHeatModel > > get_specific_heat_vector() const
bool field_is_required(const field id) const
std::vector< std::shared_ptr< ThermalExpansionModel > > get_thermal_expansion_vector() const
unsigned int calculate_global_id(const unsigned int fluid_id, const unsigned int material_id) const
Calculates the global id of the physical property. By default. Lethe stores all the properties of the...
std::shared_ptr< MagneticPermeabilityModel > get_magnetic_permeability_real(const unsigned int fluid_id=0, const unsigned int material_id=0) const
Returns the magnetic permeability model of the real part for a given fluid_id and material_id.
std::vector< std::shared_ptr< ThermalExpansionModel > > thermal_expansion
std::shared_ptr< ThermalConductivityModel > get_thermal_conductivity(const unsigned int fluid_id=0, const unsigned int material_id=0) const
PhysicalPropertiesManager(Parameters::PhysicalProperties physical_properties)
PhysicalPropertiesManager Constructor that initializes the class.
std::vector< std::shared_ptr< ElectricPermittivityModel > > get_electric_permittivity_real_vector() const
Returns the vector of all real part electric permittivity models defined in the problem.
bool is_effective_medium(const unsigned int fluid_id, const unsigned int material_id) const
Returns true if the material with the given fluid_id and material_id is defined by an effective mediu...
std::shared_ptr< EffectiveMediumModel > get_effective_electric_permittivity_imag(const unsigned int material_interaction_id) const
Returns the effective medium model of the imaginary part of the electric permittivity of the mixture ...
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_solid_interactions_with_material_interaction_ids
std::vector< double > tracer_reaction_order
std::vector< std::shared_ptr< ElectricPermittivityModel > > electric_permittivity_real
std::vector< std::shared_ptr< RheologicalModel > > rheology
std::map< field, bool > required_fields
void set_rheology(std::shared_ptr< RheologicalModel > p_rheology, const unsigned int fluid_id=0)
std::map< std::pair< unsigned int, unsigned int >, unsigned int > fluid_dispersed_phase_interactions_with_material_interaction_ids
std::vector< std::shared_ptr< MagneticPermeabilityModel > > get_magnetic_permeability_imag_vector() const
Returns the vector of all imaginary part magnetic permeability models defined in the problem.
std::vector< std::shared_ptr< ElectricPermittivityModel > > electric_permittivity_imag
PhysicalPropertiesManager()
Default constructor that initialized none of the physical properties.
std::shared_ptr< EffectiveMediumModel > get_effective_magnetic_permeability_imag(const unsigned int material_interaction_id) const
Returns the effective medium model of the imaginary part of the magnetic permeability of the mixture ...
Parameters::PhysicalProperties get_physical_properties_parameters() const
std::vector< std::shared_ptr< MagneticPermeabilityModel > > get_magnetic_permeability_real_vector() const
Returns the vector of all real part magnetic permeability models defined in the problem.
std::shared_ptr< MobilityCahnHilliardModel > get_mobility_cahn_hilliard(const unsigned int material_interaction_id=0) const
Returns the mobility model for a given material_interaction_id (integer).
void initialize(Parameters::PhysicalProperties physical_properties)
initialize Initializes the physical properties using the parameters
std::shared_ptr< DensityModel > get_density(const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::vector< std::shared_ptr< MagneticPermeabilityModel > > magnetic_permeability_imag
std::vector< std::shared_ptr< DensityModel > > get_density_vector() const
std::shared_ptr< EffectiveMediumModel > get_effective_magnetic_permeability_real(const unsigned int material_interaction_id) const
Returns the effective medium model of the real part of the magnetic permeability of the mixture defin...
std::vector< std::shared_ptr< DensityModel > > density
std::vector< std::shared_ptr< TracerDiffusivityModel > > get_tracer_diffusivity_vector() const
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_magnetic_permeability_imag
std::shared_ptr< EffectiveMediumModel > get_effective_electric_permittivity_real(const unsigned int material_interaction_id) const
Returns the effective medium model of the real part of the electric permittivity of the mixture defin...
std::vector< std::shared_ptr< SurfaceTensionModel > > surface_tension
std::vector< std::shared_ptr< ThermalConductivityModel > > get_thermal_conductivity_vector() const
std::shared_ptr< SurfaceTensionModel > get_surface_tension(const unsigned int material_interaction_id=0) const
std::vector< std::shared_ptr< ElectricPermittivityModel > > get_electric_permittivity_imag_vector() const
Returns the vector of all imaginary part electric permittivity models defined in the problem.
std::vector< std::shared_ptr< MobilityCahnHilliardModel > > mobility_cahn_hilliard
std::vector< std::shared_ptr< SurfaceTensionModel > > get_surface_tension_vector() const
std::shared_ptr< ThermalExpansionModel > get_thermal_expansion(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
void provide_simulation_control(std::shared_ptr< SimulationControl > &simulation_control)
Parameters::PhysicalProperties physical_properties_parameters
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_electric_permittivity_real
std::vector< std::shared_ptr< TracerReactionPrefactorModel > > tracer_reaction_prefactor
std::shared_ptr< ElectricPermittivityModel > get_electric_permittivity_imag(const unsigned int fluid_id=0, const unsigned int material_id=0) const
Returns the electric permittivity model of the imaginary part for a given fluid_id and material_id.
void establish_fields_required_by_model(PhysicalPropertyModel &model)
std::vector< std::shared_ptr< RheologicalModel > > get_rheology_vector() const
unsigned int get_number_of_material_interactions() const
std::shared_ptr< TracerDiffusivityModel > get_tracer_diffusivity(const unsigned int fluid_id=0, const unsigned int material_id=0) const
std::vector< std::shared_ptr< MagneticPermeabilityModel > > magnetic_permeability_real
std::vector< std::shared_ptr< TracerDiffusivityModel > > tracer_diffusivity
std::vector< std::shared_ptr< EffectiveMediumModel > > effective_electric_permittivity_imag
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
std::shared_ptr< TracerReactionPrefactorModel > get_tracer_reaction_prefactor(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
Returns the magnetic permeability model of the imaginary part for a given fluid_id and material_id.
std::vector< std::shared_ptr< SpecificHeatModel > > specific_heat
std::vector< std::shared_ptr< ThermalConductivityModel > > thermal_conductivity
Abstract class that defines the interface for a physical property model Physical property model provi...
DeclException1(RequiresConstantDensity, std::string, "The following assembler or post-processing utility "<< arg1<< " that you are trying to use does not support the use of a non-constant density model." " Modifications to Lethe are required to take this into account.")