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

#include <time_harmonic_maxwell_assemblers.h>

Inheritance diagram for TimeHarmonicMaxwellAssemblerCore< dim >:
[legend]

Public Member Functions

 TimeHarmonicMaxwellAssemblerCore (const Parameters::TimeHarmonicMaxwell< dim > &time_harmonic_maxwell_parameters)
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 PhysicsAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData >
virtual ~PhysicsAssemblerBase ()=default

Detailed Description

template<int dim>
class TimeHarmonicMaxwellAssemblerCore< dim >

Class that assembles the cell terms of the ultraweak DPG formulation of the time-harmonic Maxwell equations. With the test functions \(\mathbf{F}\) (electric) and \(\mathbf{I}\) (magnetic), it assembles:

  • the graph norm of the test space in the Gram matrix \(G\): \((\mathbf{F}, \mathbf{F}) + (\nabla \times \mathbf{F}, \nabla \times \mathbf{F}) + (i\omega\varepsilon \mathbf{F}, i\omega\varepsilon \mathbf{F})\) and the equivalent terms coupling \(\mathbf{F}\) and \(\mathbf{I}\) and for \(\mathbf{I}\) alone;
  • the interior bilinear form in the matrix \(B\): \((i\omega\varepsilon \mathbf{E}, \mathbf{F}) + (\mathbf{H}, \nabla \times \mathbf{F}) + (\mathbf{E}, \nabla \times \mathbf{I}) - (i\omega\mu \mathbf{H}, \mathbf{I})\);
  • the interior load vector \(l\), which is zero since no volume source term is considered at the moment.
Template Parameters
dimAn integer that denotes the number of spatial dimensions

Definition at line 151 of file time_harmonic_maxwell_assemblers.h.

Constructor & Destructor Documentation

◆ TimeHarmonicMaxwellAssemblerCore()

template<int dim>
TimeHarmonicMaxwellAssemblerCore< dim >::TimeHarmonicMaxwellAssemblerCore ( const Parameters::TimeHarmonicMaxwell< dim > & time_harmonic_maxwell_parameters)

Constructor.

Parameters
[in]time_harmonic_maxwell_parametersParameters of the time-harmonic Maxwell physics. They are not used for now, but they will be needed by the volume source terms.

Definition at line 305 of file time_harmonic_maxwell_assemblers.cc.

Member Function Documentation

◆ assemble_matrix()

◆ assemble_rhs()

template<int dim>
void TimeHarmonicMaxwellAssemblerCore< dim >::assemble_rhs ( const TimeHarmonicMaxwellScratchData< dim > & scratch_data,
DPGCopyData & copy_data )
overridevirtual

Assemble the interior load vector, which is zero since no volume source term is considered at the moment.

Parameters
[in]scratch_data(see base class)
[in,out]copy_data(see base class)

Implements PhysicsAssemblerBase< TimeHarmonicMaxwellScratchData< dim >, DPGCopyData >.

Definition at line 515 of file time_harmonic_maxwell_assemblers.cc.

References DPGCopyData::l_vector, TimeHarmonicMaxwellScratchData< dim >::n_base_functions_test, TimeHarmonicMaxwellScratchData< dim >::n_q_points, and TimeHarmonicMaxwellScratchData< dim >::test_local_dof_index_map.


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