![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <time_harmonic_maxwell_assemblers.h>
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 ©_data) override |
| void | assemble_rhs (const TimeHarmonicMaxwellScratchData< dim > &scratch_data, DPGCopyData ©_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 |
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.
| dim | An integer that denotes the number of spatial dimensions |
Definition at line 278 of file time_harmonic_maxwell_assemblers.h.
| 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.
| [in] | time_harmonic_maxwell_parameters | Parameters of the time-harmonic Maxwell physics, which contain the waveguide port definitions. |
| [in] | boundary_conditions | Boundary conditions of the time-harmonic Maxwell physics. |
| [in] | waveguide_ports_electric_amplitudes | Electric 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.
|
overridevirtual |
Assemble the Robin boundary terms of the Gram matrix and of the skeleton bilinear form.
| [in] | scratch_data | (see base class) |
| [in,out] | copy_data | (see base class) |
Implements PhysicsFaceAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData >.
Definition at line 802 of file time_harmonic_maxwell_assemblers.cc.
References DPGCopyData::B_hat_matrix, boundary_conditions, compute_robin_boundary_data(), TimeHarmonicMaxwellScratchData< dim >::face_at_boundary, TimeHarmonicMaxwellScratchData< dim >::face_boundary_id, TimeHarmonicMaxwellScratchData< dim >::face_JxW, TimeHarmonicMaxwellScratchData< dim >::face_no, DPGCopyData::G_matrix, get_waveguide_port_index(), is_robin_boundary_type(), TimeHarmonicMaxwellScratchData< dim >::n_cross_phi_test_face, TimeHarmonicMaxwellScratchData< dim >::n_face_q_points, TimeHarmonicMaxwellScratchData< dim >::phi_test_face, TimeHarmonicMaxwellScratchData< dim >::tangential_phi_trial_skeleton, TimeHarmonicMaxwellScratchData< dim >::test_local_dof_index_map, TimeHarmonicMaxwellScratchData< dim >::test_tangential_base_functions, time_harmonic_maxwell_parameters, TimeHarmonicMaxwellScratchData< dim >::trial_skeleton_local_dof_index_map, and BoundaryConditions::waveguide_port.
|
overridevirtual |
Assemble the excitation of the Robin boundary conditions in the load vector.
| [in] | scratch_data | (see base class) |
| [in,out] | copy_data | (see base class) |
Implements PhysicsFaceAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData >.
Definition at line 1008 of file time_harmonic_maxwell_assemblers.cc.
References boundary_conditions, compute_robin_boundary_data(), TimeHarmonicMaxwellScratchData< dim >::face_at_boundary, TimeHarmonicMaxwellScratchData< dim >::face_boundary_id, TimeHarmonicMaxwellScratchData< dim >::face_JxW, TimeHarmonicMaxwellScratchData< dim >::face_no, TimeHarmonicMaxwellScratchData< dim >::face_normals, get_waveguide_port_index(), is_robin_boundary_type(), DPGCopyData::l_vector, TimeHarmonicMaxwellScratchData< dim >::n_face_q_points, TimeHarmonicMaxwellScratchData< dim >::phi_test_face, tangential_component(), TimeHarmonicMaxwellScratchData< dim >::test_local_dof_index_map, TimeHarmonicMaxwellScratchData< dim >::test_tangential_base_functions, time_harmonic_maxwell_parameters, and BoundaryConditions::waveguide_port.
|
private |
Compute the excitation and the surface admittance of the Robin boundary condition at a quadrature point of the current face.
| [in] | scratch_data | Scratch data reinitialized on the current face. |
| [in] | q | Index of the face quadrature point. |
| [in] | bc_type | Type of the Robin boundary condition of the face. |
| [in] | waveguide_port_index | Index of the waveguide port condition of the face. Only used if bc_type is waveguide_port. |
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.
|
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.
| [in] | p | Position where the excitation is 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. |
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.
|
private |
Boundary conditions of the time-harmonic Maxwell physics.
Definition at line 390 of file time_harmonic_maxwell_assemblers.h.
|
private |
Parameters of the time-harmonic Maxwell physics.
Definition at line 384 of file time_harmonic_maxwell_assemblers.h.
|
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.