Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
time_harmonic_maxwell_scratch_data.h File Reference
#include <core/physical_property_model.h>
#include <solvers/physical_properties_manager.h>
#include <solvers/physics_scratch_data.h>
#include <deal.II/base/point.h>
#include <deal.II/base/quadrature.h>
#include <deal.II/base/table.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/types.h>
#include <deal.II/dofs/dof_handler.h>
#include <deal.II/fe/fe.h>
#include <deal.II/fe/fe_values.h>
#include <deal.II/fe/fe_values_extractors.h>
#include <deal.II/fe/mapping.h>
#include <array>
#include <complex>
#include <map>
#include <memory>
#include <vector>
Include dependency graph for time_harmonic_maxwell_scratch_data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TimeHarmonicMaxwellScratchData< dim >

Functions

void compute_effective_electromagnetic_properties (const PhysicalPropertiesManager &physical_properties_manager, const std::map< field, std::vector< double > > &field_values_vectors, const unsigned int material_id, std::vector< std::complex< double > > &effective_electric_permittivities, std::vector< std::complex< double > > &effective_magnetic_permeabilities)
bool electromagnetic_properties_depend_on (const PhysicalPropertiesManager &physical_properties_manager, const unsigned int material_id, const field field_id)

Function Documentation

◆ compute_effective_electromagnetic_properties()

void compute_effective_electromagnetic_properties ( const PhysicalPropertiesManager & physical_properties_manager,
const std::map< field, std::vector< double > > & field_values_vectors,
const unsigned int material_id,
std::vector< std::complex< double > > & effective_electric_permittivities,
std::vector< std::complex< double > > & effective_magnetic_permeabilities )

Compute the effective electromagnetic properties of a material at a set of points. The effective electric permittivity is \(\varepsilon' + i(\varepsilon'' + \sigma)\) and the effective magnetic permeability is \(\mu' + i\mu''\), where each property is evaluated with the physical property models of the material. If the material is an effective medium, the properties are given by the effective medium models of its fluid-dispersed phase interaction. The conductivity of both phases is then already included in the imaginary part of the effective permittivity.

Note
The time-harmonic Maxwell equations do not support multiple fluids so the fluid_id is not necessary to determine the material properties. The material properties only depend on the material_id, which is used to identify the different materials in the input file and assign them their corresponding properties.
Parameters
[in]physical_properties_managerThe object that manages the physical properties of the problem and provides them at any given position of the domain.
[in]field_values_vectorA map containing the vector values of the fields at the current position. This is used to compute the material properties that depend on the fields.
[in]material_idThe material id of the current position, used to determine the appropriate material properties from the input parameters.
[out]effective_electric_permittivityEffective electric permittivity at the current position. This value is updated in place by the function.
[out]effective_magnetic_permeabilityEffective magnetic permeability at the current position. This value is updated in place by the function.

Definition at line 15 of file time_harmonic_maxwell_scratch_data.cc.

References fluid_dispersed_phase, PhysicalPropertiesManager::get_effective_electric_permittivity_imag(), PhysicalPropertiesManager::get_effective_electric_permittivity_real(), PhysicalPropertiesManager::get_effective_magnetic_permeability_imag(), PhysicalPropertiesManager::get_effective_magnetic_permeability_real(), PhysicalPropertiesManager::get_electric_conductivity(), PhysicalPropertiesManager::get_electric_permittivity_imag(), PhysicalPropertiesManager::get_electric_permittivity_real(), PhysicalPropertiesManager::get_magnetic_permeability_imag(), PhysicalPropertiesManager::get_magnetic_permeability_real(), PhysicalPropertiesManager::get_material_interaction_id(), PhysicalPropertiesManager::is_effective_medium(), and temperature.

◆ electromagnetic_properties_depend_on()

bool electromagnetic_properties_depend_on ( const PhysicalPropertiesManager & physical_properties_manager,
const unsigned int material_id,
const field field_id )

Check if at least one electromagnetic property of a material depends on a field. If the material is an effective medium, the dependencies are those of the effective medium models of its fluid-dispersed phase interaction. Otherwise, they are those of the electric permittivity, electric conductivity and magnetic permeability models of the material.

Parameters
[in]physical_properties_managerThe object that manages the physical properties of the problem.
[in]material_idThe material id of the cell.
[in]field_idThe field for which the dependency is checked.
Returns
true if at least one electromagnetic property of the material depends on the field, false otherwise.

Definition at line 97 of file time_harmonic_maxwell_scratch_data.cc.

References fluid_dispersed_phase, PhysicalPropertiesManager::get_effective_electric_permittivity_imag(), PhysicalPropertiesManager::get_effective_electric_permittivity_real(), PhysicalPropertiesManager::get_effective_magnetic_permeability_imag(), PhysicalPropertiesManager::get_effective_magnetic_permeability_real(), PhysicalPropertiesManager::get_electric_conductivity(), PhysicalPropertiesManager::get_electric_permittivity_imag(), PhysicalPropertiesManager::get_electric_permittivity_real(), PhysicalPropertiesManager::get_magnetic_permeability_imag(), PhysicalPropertiesManager::get_magnetic_permeability_real(), PhysicalPropertiesManager::get_material_interaction_id(), and PhysicalPropertiesManager::is_effective_medium().