Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
TimeHarmonicMaxwellAssemblerRobinBC< dim > Class Template Reference

#include <time_harmonic_maxwell_assemblers.h>

Inheritance diagram for TimeHarmonicMaxwellAssemblerRobinBC< dim >:
[legend]

Public Member Functions

 TimeHarmonicMaxwellAssemblerRobinBC (const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters, const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > &boundary_conditions, const std::vector< double > &waveguide_ports_electric_amplitudes)
void assemble_matrix (const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData &copy_data) override
void assemble_rhs (const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData &copy_data) override
Public Member Functions inherited from PhysicsFaceAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData >
virtual ~PhysicsFaceAssemblerBase ()=default

Private Member Functions

std::pair< Tensor< 1, dim, std::complex< double > >, std::complex< double > > compute_robin_boundary_data (const TimeHarmonicMaxwellScratchData< dim > &scratch_data, const unsigned int q, const BoundaryConditions::TimeHarmonicMaxwellBoundaryType bc_type, const unsigned int waveguide_port_index) const
std::pair< Tensor< 1, dim, std::complex< double > >, std::complex< double > > compute_waveguide_port_excitation (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) const

Private Attributes

const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters
const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > & boundary_conditions
std::vector< double > waveguide_ports_relative_amplitudes

Detailed Description

template<int dim>
class TimeHarmonicMaxwellAssemblerRobinBC< dim >

Class that assembles the Robin boundary conditions of the time-harmonic Maxwell equations (silver_muller, impedance_boundary and waveguide_port). On these faces, the magnetic trace is expressed from the electric trace with the surface admittance \(Y\) and the excitation \(\mathbf{g}\), which gives the terms \(-\langle Y \hat{\mathbf{E}}, \mathbf{F} \rangle\) in \(\hat{B}\) and \(-\langle \mathbf{g}, \mathbf{F} \rangle\) in \(l\), where only the tangential component of \(\mathbf{g}\) is used since the left-hand side of the Robin boundary condition is tangential. Since the energy norm that is minimized is also modified on these faces, it also assembles the boundary terms of the Gram matrix \(G\):

\[\left(\mathbf{n}\times\mathbf{I}+Y^*\mathbf{n}\times(\mathbf{F}\times\mathbf{n}), \mathbf{n}\times\tilde{\mathbf{I}}+Y^*\mathbf{n}\times(\tilde{\mathbf{F}}\times\mathbf{n})\right)_{\Gamma_R},\]

where \(Y^*\) is the complex conjugate of \(Y\) and the inner product is conjugated in its first argument. Again, this term only involves the tangential traces of the test functions.

Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 278 of file time_harmonic_maxwell_assemblers.h.

Constructor & Destructor Documentation

◆ TimeHarmonicMaxwellAssemblerRobinBC()

template<int dim>
TimeHarmonicMaxwellAssemblerRobinBC< dim >::TimeHarmonicMaxwellAssemblerRobinBC ( const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters,
const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > & boundary_conditions,
const std::vector< double > & waveguide_ports_electric_amplitudes )

Constructor.

Parameters
[in]time_harmonic_maxwell_parametersParameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions.
[in]boundary_conditionsBoundary conditions of the time-harmonic Maxwell physics.
[in]waveguide_ports_electric_amplitudesElectric field amplitudes of all the waveguide ports. They are normalized by their maximum to get the relative amplitudes of the ports during initialization.

Definition at line 634 of file time_harmonic_maxwell_assemblers.cc.

References boundary_conditions, time_harmonic_maxwell_parameters, and waveguide_ports_relative_amplitudes.

Member Function Documentation

◆ assemble_matrix()

◆ assemble_rhs()

◆ compute_robin_boundary_data()

template<int dim>
std::pair< Tensor< 1, dim, std::complex< double > >, std::complex< double > > TimeHarmonicMaxwellAssemblerRobinBC< dim >::compute_robin_boundary_data ( const TimeHarmonicMaxwellScratchData< dim > & scratch_data,
const unsigned int q,
const BoundaryConditions::TimeHarmonicMaxwellBoundaryType bc_type,
const unsigned int waveguide_port_index ) const
private

Compute the excitation and the surface admittance of the Robin boundary condition at a quadrature point of the current face.

Parameters
[in]scratch_dataScratch data reinitialized on the current face.
[in]qIndex of the face quadrature point.
[in]bc_typeType of the Robin boundary condition of the face.
[in]waveguide_port_indexIndex of the waveguide port condition of the face. Only used if bc_type is waveguide_port.
Returns
A pair containing the excitation and the surface admittance.

Definition at line 732 of file time_harmonic_maxwell_assemblers.cc.

References boundary_conditions, compute_waveguide_port_excitation(), TimeHarmonicMaxwellScratchData< dim >::face_boundary_id, TimeHarmonicMaxwellScratchData< dim >::face_effective_electric_permittivities, TimeHarmonicMaxwellScratchData< dim >::face_effective_magnetic_permeabilities, TimeHarmonicMaxwellScratchData< dim >::face_normals, TimeHarmonicMaxwellScratchData< dim >::face_quadrature_points, BoundaryConditions::impedance_boundary, BoundaryConditions::silver_muller, and BoundaryConditions::waveguide_port.

◆ compute_waveguide_port_excitation()

template<int dim>
std::pair< Tensor< 1, dim, std::complex< double > >, std::complex< double > > TimeHarmonicMaxwellAssemblerRobinBC< dim >::compute_waveguide_port_excitation ( 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 ) const
private

Compute the excitation and the surface admittance of the Robin boundary condition of a rectangular waveguide port from the input parameters. The excitation used is the normalized one across all the waveguide ports. This function is only implemented for 3D problems.

Parameters
[in]pPosition where the excitation is 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
A pair containing the excitation of the Robin boundary condition and the surface admittance at the point p. The excitation is scaled by the ratio of the port amplitude to the maximum amplitude of all the ports.

Definition at line 659 of file time_harmonic_maxwell_assemblers.cc.

References compute_waveguide_port_incident_fields(), tangential_component(), Parameters::TE, time_harmonic_maxwell_parameters, and waveguide_ports_relative_amplitudes.

Member Data Documentation

◆ boundary_conditions

template<int dim>
const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions<dim>& TimeHarmonicMaxwellAssemblerRobinBC< dim >::boundary_conditions
private

Boundary conditions of the time-harmonic Maxwell physics.

Definition at line 390 of file time_harmonic_maxwell_assemblers.h.

◆ time_harmonic_maxwell_parameters

template<int dim>
const Parameters::TimeHarmonicMaxwell<dim>& TimeHarmonicMaxwellAssemblerRobinBC< dim >::time_harmonic_maxwell_parameters
private

Parameters of the time-harmonic Maxwell physics.

Definition at line 384 of file time_harmonic_maxwell_assemblers.h.

◆ waveguide_ports_relative_amplitudes

template<int dim>
std::vector<double> TimeHarmonicMaxwellAssemblerRobinBC< dim >::waveguide_ports_relative_amplitudes
private

Relative amplitudes of all the waveguide ports, that is the electric field amplitude of each port divided by the maximum amplitude of all the ports.

Definition at line 396 of file time_harmonic_maxwell_assemblers.h.


The documentation for this class was generated from the following files: