Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
time_harmonic_maxwell_assemblers.h File Reference
#include <core/parameters_multiphysics.h>
#include <core/time_harmonic_maxwell_boundary_conditions.h>
#include <solvers/copy_data.h>
#include <solvers/physics_assemblers.h>
#include <solvers/time_harmonic_maxwell_scratch_data.h>
#include <deal.II/base/point.h>
#include <deal.II/base/tensor.h>
#include <deal.II/base/types.h>
#include <complex>
#include <utility>
#include <vector>
Include dependency graph for time_harmonic_maxwell_assemblers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TimeHarmonicMaxwellAssemblerCore< dim >
class  TimeHarmonicMaxwellAssemblerSkeleton< dim >
class  TimeHarmonicMaxwellAssemblerRobinBC< dim >

Typedefs

template<int dim>
using TimeHarmonicMaxwellAssemblerBase
template<int dim>
using TimeHarmonicMaxwellFaceAssemblerBase

Functions

bool is_robin_boundary_type (const BoundaryConditions::TimeHarmonicMaxwellBoundaryType type)
template<int dim>
std::pair< Tensor< 1, dim, std::complex< double > >, Tensor< 1, dim, std::complex< double > > > compute_waveguide_port_incident_fields (const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters, const Point< dim > &p, const Tensor< 1, dim > &normal, const std::complex< double > &effective_electric_permittivity, const std::complex< double > &effective_magnetic_permeability, const unsigned int waveguide_port_index)
template<int dim>
unsigned int get_waveguide_port_index (const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters, const types::boundary_id boundary_id)

Typedef Documentation

◆ TimeHarmonicMaxwellAssemblerBase

template<int dim>
using TimeHarmonicMaxwellAssemblerBase
Initial value:
Class responsible for storing the local system of an ultraweak Discontinuous Petrov-Galerkin (DPG) di...
Definition copy_data.h:232
Base class for assembler objects of physics and subequations.

A pure virtual class that serves as an interface for all the cell assemblers of the time-harmonic Maxwell equations.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 31 of file time_harmonic_maxwell_assemblers.h.

◆ TimeHarmonicMaxwellFaceAssemblerBase

template<int dim>
using TimeHarmonicMaxwellFaceAssemblerBase
Initial value:
Base class for assembler objects of physics and subequations that require a face assembly....

A pure virtual class that serves as an interface for all the face assemblers of the time-harmonic Maxwell equations.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 43 of file time_harmonic_maxwell_assemblers.h.

Function Documentation

◆ compute_waveguide_port_incident_fields()

template<int dim>
std::pair< Tensor< 1, dim, std::complex< double > >, Tensor< 1, dim, std::complex< double > > > compute_waveguide_port_incident_fields ( const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters,
const Point< dim > & p,
const Tensor< 1, dim > & normal,
const std::complex< double > & effective_electric_permittivity,
const std::complex< double > & effective_magnetic_permeability,
const unsigned int waveguide_port_index )

Compute the incident electromagnetic fields of a rectangular waveguide port from the input parameters. It is only implemented for 3D problems.

Template Parameters
dimSpatial dimension.
Parameters
[in]time_harmonic_maxwell_parametersParameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions.
[in]pPosition where the incident fields are computed.
[in]normalUnit normal vector of the waveguide port face.
[in]effective_electric_permittivityEffective electric permittivity at the point p.
[in]effective_magnetic_permeabilityEffective magnetic permeability at the point p.
[in]waveguide_port_indexIndex of the waveguide port condition within the waveguide port parameters.
Returns
This function returns a std::pair containing the electric field Tensor<1, dim, std::complex<double>> and the magnetic field Tensor<1, dim, std::complex<double>> computed at the given position.

Definition at line 20 of file time_harmonic_maxwell_assemblers.cc.

References Parameters::TimeHarmonicMaxwell< dim >::electromagnetic_frequency, Parameters::TimeHarmonicMaxwell< dim >::mode_order_m, Parameters::TimeHarmonicMaxwell< dim >::mode_order_n, Parameters::TE, Parameters::TM, Parameters::TimeHarmonicMaxwell< dim >::waveguide_corners, and Parameters::TimeHarmonicMaxwell< dim >::waveguide_mode.

◆ get_waveguide_port_index()

template<int dim>
unsigned int get_waveguide_port_index ( const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters,
const types::boundary_id boundary_id )

Get the index of the waveguide port condition applied on a boundary, that is the index of the waveguide inlet whose port boundary id is this boundary id.

Template Parameters
dimSpatial dimension.
Parameters
[in]time_harmonic_maxwell_parametersParameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions.
[in]boundary_idBoundary id of a boundary with a waveguide port condition.
Returns
Index of the waveguide port condition.

Definition at line 215 of file time_harmonic_maxwell_assemblers.cc.

References Parameters::TimeHarmonicMaxwell< dim >::waveguide_boundary_ids.

◆ is_robin_boundary_type()

bool is_robin_boundary_type ( const BoundaryConditions::TimeHarmonicMaxwellBoundaryType type)
inline

Check if a boundary condition type of the time-harmonic Maxwell equations is a Robin boundary condition, which is applied weakly through the assembly.

Parameters
[in]typeBoundary condition type.
Returns
True for the silver_muller, impedance_boundary and waveguide_port boundary conditions.

Definition at line 57 of file time_harmonic_maxwell_assemblers.h.

References BoundaryConditions::silver_muller, and BoundaryConditions::waveguide_port.