Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
time_harmonic_maxwell_assemblers.cc File Reference
#include <core/tensors_and_points_dimension_manipulation.h>
#include <solvers/time_harmonic_maxwell.h>
#include <solvers/time_harmonic_maxwell_assemblers.h>
#include <deal.II/base/numbers.h>
#include <algorithm>
#include <cmath>
#include <iterator>
#include <string>
#include <tuple>
Include dependency graph for time_harmonic_maxwell_assemblers.cc:

Go to the source code of this file.

Functions

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)
template std::pair< Tensor< 1, 2, std::complex< double > >, Tensor< 1, 2, std::complex< double > > > compute_waveguide_port_incident_fields< 2 > (const Parameters::TimeHarmonicMaxwell< 2 > &time_harmonic_maxwell_parameters, const Point< 2 > &p, const Tensor< 1, 2 > &normal, const std::complex< double > &effective_electric_permittivity, const std::complex< double > &effective_magnetic_permeability, const unsigned int waveguide_port_index)
template std::pair< Tensor< 1, 3, std::complex< double > >, Tensor< 1, 3, std::complex< double > > > compute_waveguide_port_incident_fields< 3 > (const Parameters::TimeHarmonicMaxwell< 3 > &time_harmonic_maxwell_parameters, const Point< 3 > &p, const Tensor< 1, 3 > &normal, const std::complex< double > &effective_electric_permittivity, const std::complex< double > &effective_magnetic_permeability, const unsigned int waveguide_port_index)
template unsigned int get_waveguide_port_index< 2 > (const Parameters::TimeHarmonicMaxwell< 2 > &time_harmonic_maxwell_parameters, const types::boundary_id boundary_id)
template unsigned int get_waveguide_port_index< 3 > (const Parameters::TimeHarmonicMaxwell< 3 > &time_harmonic_maxwell_parameters, const types::boundary_id boundary_id)

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.

◆ compute_waveguide_port_incident_fields< 2 >()

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

◆ compute_waveguide_port_incident_fields< 3 >()

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

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

◆ get_waveguide_port_index< 2 >()

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

◆ get_waveguide_port_index< 3 >()

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