4#ifndef lethe_time_harmonic_maxwell_assemblers_h
5#define lethe_time_harmonic_maxwell_assemblers_h
14#include <deal.II/base/point.h>
15#include <deal.II/base/tensor.h>
16#include <deal.II/base/types.h>
62 (type == BoundaryConditions::TimeHarmonicMaxwellBoundaryType::
63 impedance_boundary) ||
96std::pair<Tensor<1, dim, std::complex<double>>,
97 Tensor<1, dim, std::complex<double>>>
101 const Tensor<1, dim> &normal,
102 const std::complex<double> &effective_electric_permittivity,
103 const std::complex<double> &effective_magnetic_permeability,
104 const unsigned int waveguide_port_index);
125 const types::boundary_id boundary_id);
163 &time_harmonic_maxwell_parameters);
301 const std::vector<double> &waveguide_ports_electric_amplitudes);
343 std::pair<Tensor<1, dim, std::complex<double>>, std::complex<double>>
346 const unsigned int q,
348 const unsigned int waveguide_port_index)
const;
373 std::pair<Tensor<1, dim, std::complex<double>>, std::complex<double>>
376 const Tensor<1, dim> &normal,
377 const std::complex<double> &effective_electric_permittivity,
378 const std::complex<double> &effective_magnetic_permeability,
379 const unsigned int waveguide_port_index)
const;
This class manages the boundary conditions for Time Harmonic Maxwell solver. It introduces the bounda...
Class responsible for storing the local system of an ultraweak Discontinuous Petrov-Galerkin (DPG) di...
Base class for assembler objects of physics and subequations.
Base class for assembler objects of physics and subequations that require a face assembly....
void assemble_matrix(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
Assemble the Gram matrix and the interior bilinear form.
void assemble_rhs(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
Assemble the interior load vector, which is zero since no volume source term is considered at the mom...
TimeHarmonicMaxwellAssemblerCore(const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters)
Constructor.
void assemble_rhs(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
Assemble the excitation of the Robin boundary conditions in the load vector.
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
Compute the excitation and the surface admittance of the Robin boundary condition of a rectangular wa...
std::vector< double > waveguide_ports_relative_amplitudes
TimeHarmonicMaxwellAssemblerRobinBC(const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters, const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > &boundary_conditions, const std::vector< double > &waveguide_ports_electric_amplitudes)
Constructor.
void assemble_matrix(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
Assemble the Robin boundary terms of the Gram matrix and of the skeleton bilinear form.
const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters
const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > & boundary_conditions
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
Compute the excitation and the surface admittance of the Robin boundary condition at a quadrature poi...
void assemble_matrix(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
Assemble the skeleton terms of the bilinear form.
void assemble_rhs(const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_data) override
There is no skeleton term in the load vector, since the boundary data is imposed through the constrai...
TimeHarmonicMaxwellAssemblerSkeleton(const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > &boundary_conditions)
Constructor.
const BoundaryConditions::TimeHarmonicMaxwellBoundaryConditions< dim > & boundary_conditions
Class that stores the information required by the assembly of the Discontinuous Petrov-Galerkin (DPG)...
TimeHarmonicMaxwellBoundaryType
Boundary condition types of the time-harmonic Maxwell equations.
TimeHarmonicMaxwell - Defines the parameters for time-harmonic Maxwell simulations.
bool is_robin_boundary_type(const BoundaryConditions::TimeHarmonicMaxwellBoundaryType type)
Check if a boundary condition type of the time-harmonic Maxwell equations is a Robin boundary conditi...
PhysicsAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData > TimeHarmonicMaxwellAssemblerBase
A pure virtual class that serves as an interface for all the cell assemblers of the time-harmonic Max...
PhysicsFaceAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData > TimeHarmonicMaxwellFaceAssemblerBase
A pure virtual class that serves as an interface for all the face assemblers of the time-harmonic Max...
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...
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 wavegui...