#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>
Go to the source code of this file.
|
| 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) |
◆ TimeHarmonicMaxwellAssemblerBase
Initial value:
Class responsible for storing the local system of an ultraweak Discontinuous Petrov-Galerkin (DPG) di...
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
-
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 31 of file time_harmonic_maxwell_assemblers.h.
◆ 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
-
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 43 of file time_harmonic_maxwell_assemblers.h.
◆ 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
-
- Parameters
-
| [in] | time_harmonic_maxwell_parameters | Parameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions. |
| [in] | p | Position where the incident fields are computed. |
| [in] | normal | Unit normal vector of the waveguide port face. |
| [in] | effective_electric_permittivity | Effective electric permittivity at the point p. |
| [in] | effective_magnetic_permeability | Effective magnetic permeability at the point p. |
| [in] | waveguide_port_index | Index 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
-
- Parameters
-
| [in] | time_harmonic_maxwell_parameters | Parameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions. |
| [in] | boundary_id | Boundary 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()