hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
hpfem::physics::ConicalSweep Class Reference

The affine operator of a conical scattering problem for sweeps. More...

#include <conical_sweep.hpp>

Public Member Functions

 ConicalSweep (const fespace::NedelecDofMap< 2 > &transverse, const fespace::DofMap< 2 > &longitudinal, const ConicalScatteringSetup &base)
 
ConicalSolution solve (const ConicalScatteringSetup &setup)
 
void factorize (const ConicalScatteringSetup &setup)
 
Matrix solve_loads (const Matrix &loads)
 
const ConicalScattering & point () const
 
const SweepTimings & timings () const noexcept
 
const solvers::LinearSolver & solver () const noexcept
 The solver after the first point (name, details).
 
Index num_groups () const noexcept
 
Index num_pml_cells () const noexcept
 
Index num_source_cells () const noexcept
 
bool cached () const noexcept
 

Detailed Description

The affine operator of a conical scattering problem for sweeps.

Constructor & Destructor Documentation

◆ ConicalSweep()

hpfem::physics::ConicalSweep::ConicalSweep ( const fespace::NedelecDofMap< 2 > &  transverse,
const fespace::DofMap< 2 > &  longitudinal,
const ConicalScatteringSetup &  base 
)

Prepares the sweep from the setup of its first point: the cell groups (by material at this point), the PML cells, the source cells (cells whose permittivity deviates from the background, or all cells with a current) and the solver. Every later point must keep the mesh, the orders, the PEC tags, the periodic pairs (their phases may change), the PML box geometry (its wavenumber may change), the cell-to-group assignment and the formulation; it may change omega, beta, the materials of the groups, the incident field (and its curl) and the Bloch phases.

Exceptions
InvalidArgumentas ConicalScattering.

Member Function Documentation

◆ cached()

bool hpfem::physics::ConicalSweep::cached ( ) const
inlinenoexcept

Whether the points run through the pattern cache (false until the first point, and after a point whose PML or constraint structure differed from the cached one).

◆ factorize()

void hpfem::physics::ConicalSweep::factorize ( const ConicalScatteringSetup &  setup)

Factorises the system of a point without assembling its load (the PML cells, the cached parts, the reduction and the refactorisation of solve), for loads given afterwards by solve_loads: the dipole responses of the array scanning, whose loads live on the few cells around the emitter (conical_sweep_dipole_power_matrix).

Exceptions
assolve.

◆ num_groups()

Index hpfem::physics::ConicalSweep::num_groups ( ) const
inlinenoexcept

◆ num_pml_cells()

Index hpfem::physics::ConicalSweep::num_pml_cells ( ) const
inlinenoexcept

◆ num_source_cells()

Index hpfem::physics::ConicalSweep::num_source_cells ( ) const
inlinenoexcept

◆ point()

const ConicalScattering & hpfem::physics::ConicalSweep::point ( ) const

The problem of the last point (its setup, DoF maps and constraints).

Exceptions
InvalidArgumentbefore the first point.

◆ solve()

ConicalSolution hpfem::physics::ConicalSweep::solve ( const ConicalScatteringSetup &  setup)

Solution at a point of the sweep.

Exceptions
InvalidArgumentif the setup's structure differs from the base (number of free DoFs, groups), Error if the factorisation fails.

◆ solve_loads()

Matrix hpfem::physics::ConicalSweep::solve_loads ( const Matrix &  loads)

Solutions of the last point (solve or factorize) for full-size loads over the block DoFs (E_x, E_y | v; one load per column): reduced with the test space, one multi-rhs solve, expanded with the trial space; entries of PEC DoFs are ignored, the solutions are zero there.

Exceptions
InvalidArgumentbefore the first point or for a row count other than the number of block DoFs.

◆ solver()

const solvers::LinearSolver & hpfem::physics::ConicalSweep::solver ( ) const
inlinenoexcept

The solver after the first point (name, details).

◆ timings()

const SweepTimings & hpfem::physics::ConicalSweep::timings ( ) const
inlinenoexcept

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