PLaSK library
|
Reflection transformation solver in Cartesian 2D geometry. More...
#include <solvers/optical/modal/fourier/solver2d.hpp>
Classes | |
struct | Mode |
Mode parameters. More... | |
Public Types | |
enum | What { WHAT_WAVELENGTH , WHAT_K0 , WHAT_NEFF , WHAT_KTRAN , WHAT_BETA } |
Indication of parameter to search. More... | |
enum | FourierType { FOURIER_DISCRETE , FOURIER_ANALYTIC } |
Possible ways of computation of Fourier coefficients. More... | |
typedef ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > > | BaseType |
Public Types inherited from plask::SolverWithMesh< Geometry2DCartesian, MeshAxis > | |
typedef MeshAxis | MeshType |
Type of the mesh for this solver. | |
Public Types inherited from plask::SolverOver< SpaceT > | |
typedef SpaceT | SpaceType |
of the space for this solver | |
Public Types inherited from plask::optical::modal::ModalBase | |
enum | Emission { EMISSION_UNSPECIFIED = 0 , EMISSION_TOP , EMISSION_BOTTOM , EMISSION_FRONT , EMISSION_BACK } |
Directions of the possible emission. More... | |
Public Member Functions | |
std::string | getClassName () const override |
Get name of solver. | |
void | clearModes () override |
Clear computed modes. | |
bool | setExpansionDefaults (bool with_k0=true) override |
Set expansion parameters from default values. | |
FourierSolver2D (const std::string &name="") | |
void | loadConfiguration (XMLReader &reader, Manager &manager) override |
Load configuration from given source . | |
void | setSimpleMesh () |
Set the simple mesh based on the geometry bounding boxes. | |
size_t | findMode (FourierSolver2D::What what, dcomplex start) |
Find the mode around the specified effective index. | |
size_t | getSize () const |
Get order of the orthogonal base. | |
void | setSize (size_t n) |
Set order of the orthogonal base. | |
int | getDCT () const |
Get type of the DCT. | |
void | setDCT (int n) |
Set type of the DCT. | |
bool | dct2 () const |
True if DCT == 2. | |
FourierType | getFourierType () const |
Get type of the DCT. | |
void | setFourierType (FourierType ft) |
Set type of the DCT. | |
dcomplex | getKtran () const |
Get transverse wavevector. | |
void | setKtran (dcomplex k) |
Set transverse wavevector. | |
void | setBeta (dcomplex k) |
Set longitudinal wavevector. | |
dcomplex | getBeta () const |
Get longitudinal wavevector. | |
Expansion::Component | getSymmetry () const |
Return current mode symmetry. | |
void | setSymmetry (Expansion::Component sym) |
Set new mode symmetry. | |
Expansion::Component | getPolarization () const |
Return current mode polarization. | |
void | setPolarization (Expansion::Component pol) |
Set new mode polarization. | |
bool | symmetric () const |
Get info if the expansion is symmetric. | |
bool | separated () const |
Get info if the expansion is separated. | |
Expansion & | getExpansion () override |
Get solver expansion. | |
cvector | incidentVector (Transfer::IncidentDirection side, Expansion::Component polarization, dcomplex lam=NAN) |
Get incident field vector for given polarization. | |
cvector | incidentGaussian (Transfer::IncidentDirection side, Expansion::Component polarization, double sigma, double center=0., dcomplex lam=NAN) |
Compute incident vector with Gaussian profile. | |
LazyData< Vec< 3, dcomplex > > | getScatteredFieldE (const cvector &incident, Transfer::IncidentDirection side, shared_ptr< const MeshD< 2 > > dst_mesh, InterpolationMethod method, PropagationDirection part=PROPAGATION_TOTAL) |
Get electric field at the given mesh for reflected light. | |
LazyData< Vec< 3, dcomplex > > | getScatteredFieldH (const cvector &incident, Transfer::IncidentDirection side, shared_ptr< const MeshD< 2 > > dst_mesh, InterpolationMethod method, PropagationDirection part=PROPAGATION_TOTAL) |
Get magnetic field at the given mesh for reflected light. | |
LazyData< double > | getScatteredFieldMagnitude (const cvector &incident, Transfer::IncidentDirection side, shared_ptr< const MeshD< 2 > > dst_mesh, InterpolationMethod method) |
Get light intensity for reflected light. | |
cvector | getFieldVectorE (size_t num, double z) |
Compute electric field coefficients for given z. | |
cvector | getFieldVectorH (size_t num, double z) |
Compute magnetic field coefficients for given z. | |
double | getIntegralEE (size_t num, double z1, double z2) |
Get ½ E·conj(E) integral between z1 and z2. | |
double | getIntegralHH (size_t num, double z1, double z2) |
Get ½ H·conj(H) integral between z1 and z2. | |
cvector | getScatteredFieldVectorE (const cvector &incident, Transfer::IncidentDirection side, double z) |
Compute electric field coefficients for given z for reflected light. | |
cvector | getScatteredFieldVectorH (const cvector &incident, Transfer::IncidentDirection side, double z) |
Compute magnetic field coefficients for given z for reflected light. | |
double | getScatteredIntegralEE (const cvector &incident, Transfer::IncidentDirection side, double z1, double z2) |
Get ½ E·conj(E) integral between z1 and z2 for reflected light. | |
double | getScatteredIntegralHH (const cvector &incident, Transfer::IncidentDirection side, double z1, double z2) |
Get ½ H·conj(H) integral between z1 and z2. | |
size_t | setMode () |
Check if the current parameters correspond to some mode and insert it. | |
Public Member Functions inherited from plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > > | |
ModalSolver (const std::string &name="") | |
~ModalSolver () | |
double | getSmooth () const |
Get current smooth. | |
void | setSmooth (double value) |
Set current smooth. | |
Transfer::Method | getTransferMethod () const |
Get currently selected transfer method. | |
void | setTransferMethod (Transfer::Method method) |
Set new transfer method. | |
bool | getGroupLayers () const |
Getter for group_layers. | |
void | setGroupLayers (bool value) |
Setter for group_layers. | |
double | getMaxTempDiff () const |
Getter for max_temp_diff. | |
void | setMaxTempDiff (double value) |
Setter for max_temp_diff. | |
double | getTempDist () const |
Getter for temp_dist. | |
void | setTempDist (double value) |
Setter for temp_dist. | |
double | getTempLayer () const |
Getter for temp_dist. | |
void | setTempLayer (double value) |
Setter for temp_dist. | |
std::string | getId () const override |
Get solver id. | |
bool | initCalculation () override |
Init calculations. | |
size_t | getInterface () |
Get the position of the matching interface. | |
void | setInterfaceAt (double pos) |
Set the position of the matching interface. | |
void | setInterfaceOn (const shared_ptr< const GeometryObject > &object, const PathHints *path=nullptr) |
Set the position of the matching interface at the bottom of the provided geometry object. | |
void | setInterfaceOn (const shared_ptr< const GeometryObject > &object, const PathHints &path) |
Set the position of the matching interface at the bottom of the provided geometry object. | |
dcomplex | getDeterminant () |
Get discontinuity matrix determinant for the current parameters. | |
void | prepareExpansionIntegrals (Expansion *expansion, const shared_ptr< MeshD< BaseT::SpaceType::DIM > > &mesh, dcomplex lam, dcomplex glam) |
cvector | incidentVector (Transfer::IncidentDirection side, size_t idx, dcomplex lam=NAN) |
Get incident field vector for given mode. | |
cvector | incidentVector (Transfer::IncidentDirection side, const cvector &incident, dcomplex lam=NAN) |
Get incident field vector for given polarization. | |
Public Member Functions inherited from plask::SolverWithMesh< Geometry2DCartesian, MeshAxis > | |
SolverWithMesh (const std::string &name="") | |
~SolverWithMesh () | |
void | loadConfiguration (XMLReader &source, Manager &manager) override |
Load configuration from given source . | |
void | parseStandardConfiguration (XMLReader &source, Manager &manager, const std::string &expected_msg="solver configuration element") |
virtual void | onMeshChange (const typename MeshT::Event &PLASK_UNUSED(evt)) |
This method is called just after the mesh has been changed. | |
void | onGeometryChange (const Geometry::Event &PLASK_UNUSED(evt)) override |
This method is called when the geometry is changed. | |
MeshAxis & | meshRef () const |
Get current module mesh. | |
shared_ptr< MeshAxis > | getMesh () const |
Get current solver mesh. | |
void | setMesh (const shared_ptr< MeshAxis > &mesh) |
Set new mesh for the solver. | |
void | setMesh (shared_ptr< MeshGeneratorD< MeshT::DIM > > generator) |
Set new mesh got from generator. | |
Public Member Functions inherited from plask::SolverOver< SpaceT > | |
SolverOver (const std::string &name="") | |
~SolverOver () | |
void | parseStandardConfiguration (XMLReader &source, Manager &manager, const std::string &expected_msg="solver configuration element") |
shared_ptr< SpaceT > | getGeometry () const |
Get current solver geometry space. | |
void | setGeometry (const shared_ptr< SpaceT > &geometry) |
Set new geometry for the solver. | |
Public Member Functions inherited from plask::Solver | |
bool | initCalculation () |
This should be called on beginning of each calculation method to ensure that solver will be initialized. | |
Solver (const std::string &name="") | |
Construct uninitialized solver. | |
virtual | ~Solver () |
Virtual destructor (for subclassing). Do nothing. | |
void | parseStandardConfiguration (XMLReader &source, Manager &manager, const std::string &expected_msg="solver configuration element") |
Load standard configuration (geometry, mesh) tags from source . | |
bool | isInitialized () |
Check if solver is already initialized. | |
void | invalidate () |
This method should be and is called if something important was changed: calculation space, mesh, etc. | |
std::string | getId () const |
Get solver id. | |
std::string | getName () const |
virtual std::string | getClassDescription () const |
Get a description of this solver. | |
template<typename ArgT = double, typename ValT = double> | |
DataLog< ArgT, ValT > | dataLog (const std::string &chart_name, const std::string &axis_arg_name, const std::string &axis_val_name) |
template<typename ArgT = double, typename ValT = double> | |
DataLog< ArgT, ValT > | dataLog (const std::string &axis_arg_name, const std::string &axis_val_name) |
template<typename ... Args> | |
void | writelog (LogLevel level, std::string msg, Args &&... params) const |
Log a message for this solver. | |
Public Member Functions inherited from plask::optical::modal::ModalBase | |
void | initTransfer (Expansion &expansion, bool reflection) |
Initialize transfer class. | |
ModalBase () | |
virtual | ~ModalBase () |
double | getLam0 () const |
Get lam0. | |
void | setLam0 (double lam) |
Set lam0. | |
void | clearLam0 () |
Clear lam0. | |
dcomplex | getK0 () const |
Get current k0. | |
void | setK0 (dcomplex k) |
Set current k0. | |
dcomplex | getLam () const |
Get current wavelength. | |
void | setLam (dcomplex lambda) |
Set current wavelength. | |
void | clearFields () |
Reset determined fields. | |
size_t | getLayerFor (double &h) const |
Get layer number for vertical coordinate. | |
const std::vector< std::size_t > & | getStack () const |
Get stack. | |
void | ensureInterface () |
Throw exception if the interface position is unsuitable for eigenmode computations. | |
dvector | getIncidentFluxes (const cvector &incident, Transfer::IncidentDirection side) |
Get amplitudes of incident diffraction orders. | |
dvector | getReflectedFluxes (const cvector &incident, Transfer::IncidentDirection side) |
Get amplitudes of reflected diffraction orders. | |
dvector | getTransmittedFluxes (const cvector &incident, Transfer::IncidentDirection side) |
Get amplitudes of transmitted diffraction orders. | |
cvector | getReflectedCoefficients (const cvector &incident, Transfer::IncidentDirection side) |
Get coefficients of reflected diffraction orders. | |
cvector | getTransmittedCoefficients (const cvector &incident, Transfer::IncidentDirection side) |
Get coefficients of transmitted diffraction orders. | |
double | getReflection (const cvector &incident, Transfer::IncidentDirection side) |
Get reflection coefficient. | |
double | getTransmission (const cvector &incident, Transfer::IncidentDirection side) |
Get reflection coefficient. | |
void | getMatrices (size_t layer, cmatrix &RE, cmatrix &RH) |
Public Attributes | |
ExpansionPW2D | expansion |
Class responsible for computing expansion coefficients. | |
std::vector< Mode > | modes |
Computed modes. | |
size_t | refine |
Mesh multiplier for finer computation of the refractive indices. | |
PML | pml |
Lateral PMLs. | |
plask::optional< std::pair< double, double > > | mirrors |
Mirror reflectivities. | |
ProviderFor< ModeEffectiveIndex >::Delegate | outNeff |
Provider for computed effective index. | |
Public Attributes inherited from plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > > | |
ReceiverFor< Temperature, typename BaseT::SpaceType > | inTemperature |
Receiver for the temperature. | |
ReceiverFor< Gain, typename BaseT::SpaceType > | inGain |
Receiver for the gain. | |
ReceiverFor< Epsilon, typename BaseT::SpaceType > | inEpsilon |
Receiver for the dynamic epsilon. | |
ReceiverFor< CarriersConcentration, typename BaseT::SpaceType > | inCarriersConcentration |
Receiver for carriers concentration. | |
ProviderFor< Epsilon, typenameBaseT::SpaceType >::Delegate | outEpsilon |
Provider of the permittivity tensor. | |
ProviderFor< RefractiveIndex, typenameBaseT::SpaceType >::Delegate | outRefractiveIndex |
Provider of the refractive index. | |
ProviderFor< ModeWavelength >::Delegate | outWavelength |
Provider for computed resonant wavelength. | |
ProviderFor< ModeLightMagnitude, typenameBaseT::SpaceType >::Delegate | outLightMagnitude |
Provider of the optical field intensity. | |
ProviderFor< ModeLightE, typenameBaseT::SpaceType >::Delegate | outLightE |
Provider of the optical electric field. | |
ProviderFor< ModeLightH, typenameBaseT::SpaceType >::Delegate | outLightH |
Provider of the optical magnetic field. | |
ProviderFor< ModeLightE, typenameBaseT::SpaceType >::Delegate | outUpwardsLightE |
Provider of the optical electric field propagating upwards. | |
ProviderFor< ModeLightH, typenameBaseT::SpaceType >::Delegate | outUpwardsLightH |
Provider of the optical magnetic field propagating upwards. | |
ProviderFor< ModeLightE, typenameBaseT::SpaceType >::Delegate | outDownwardsLightE |
Provider of the optical electric field propagating downwards. | |
ProviderFor< ModeLightH, typenameBaseT::SpaceType >::Delegate | outDownwardsLightH |
Provider of the optical magnetic field propagating downwards. | |
Public Attributes inherited from plask::optical::modal::ModalBase | |
Emission | emission |
Direction of the light emission for fields normalization. | |
Transfer::Determinant | determinant_type |
Method of computing determinant in zero search. | |
std::unique_ptr< Transfer > | transfer |
Transfer method object (AdmittanceTransfer or ReflectionTransfer) | |
shared_ptr< OrderedAxis > | vbounds |
Layer boundaries. | |
shared_ptr< OrderedAxis > | verts |
Centers of layers. | |
size_t | lcount |
Number of distinct layers. | |
std::vector< bool > | lgained |
Information if the layer has gain. | |
std::vector< bool > | lcomputed |
Information if the layer has data from inEpsilon. | |
std::vector< std::size_t > | stack |
Organization of layers in the stack. | |
std::ptrdiff_t | interface |
Index of the matching interface. | |
double | interface_position |
Approximate position of the matching interface. | |
double | lam0 |
Reference wavelength used for getting material parameters (nm) | |
dcomplex | k0 |
Normalized frequency (1/µm) | |
PML | vpml |
Parameters for vertical PMLs (if used) | |
RootDigger::Params | root |
Parameters for main rootdigger. | |
bool | recompute_integrals |
Force re-computation of material coefficients/integrals. | |
bool | recompute_gain_integrals |
Force re-computation of material coefficients/integrals in layers with gain. | |
bool | always_recompute_gain |
Always compute material coefficients/integrals for gained layers for current wavelength. | |
Protected Member Functions | |
void | onInitialize () override |
Initialize the solver. | |
void | onInvalidate () override |
This method is called by invalidate() to reset stored values. | |
void | computeIntegrals () override |
Recompute integrals used in RE and RH matrices. | |
size_t | insertMode () |
Insert mode to the list or return the index of the exiting one. | |
size_t | nummodes () const override |
Return number of determined modes. | |
double | applyMode (size_t n) override |
Apply mode number n. | |
dcomplex | getEffectiveIndex (size_t n) |
Return mode effective index. | |
double | getMirrorLosses (double n) |
Compute mirror losses for specified effective mode. | |
void | applyMode (const Mode &mode) |
double | getWavelength (size_t n) override |
Return mode wavelength. | |
Protected Member Functions inherited from plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > > | |
void | onInitialize () override |
void | onGeometryChange (const Geometry::Event &evt) override |
void | parseCommonModalConfiguration (XMLReader &reader, Manager &manager) |
Parse common configuration from XML file. | |
void | setupLayers () |
Compute layer boundaries and detect layer sets. | |
size_t | initIncidence (Transfer::IncidentDirection side, dcomplex lam=NAN) |
void | scaleIncidentVector (cvector &incident, size_t layer) |
Scale the incident field vector with scale specific to the solver. | |
void | scaleIncidentVector (cvector &incident, size_t layer) |
void | scaleIncidentVector (cvector &incident, size_t layer) |
void | scaleIncidentVector (cvector &incident, size_t layer) |
DataVector< const Tensor3< dcomplex > > | getEpsilonProfile (const shared_ptr< const MeshD< BaseT::SpaceType::DIM > > &dst_mesh, dcomplex lam, InterpolationMethod interp=INTERPOLATION_DEFAULT) |
Get permittivity tensor after expansion. | |
LazyData< dcomplex > | getRefractiveIndex (RefractiveIndex::EnumType component, const shared_ptr< const MeshD< BaseT::SpaceType::DIM > > &dst_mesh, dcomplex lam, InterpolationMethod interp=INTERPOLATION_DEFAULT) |
Get refractive index after expansion. | |
LazyData< Vec< 3, dcomplex > > | getLightE (size_t num, shared_ptr< const MeshD< BaseT::SpaceType::DIM > > dst_mesh, InterpolationMethod method) |
Compute electric field. | |
LazyData< Vec< 3, dcomplex > > | getLightH (size_t num, shared_ptr< const MeshD< BaseT::SpaceType::DIM > > dst_mesh, InterpolationMethod method) |
Compute magnetic field. | |
LazyData< double > | getLightMagnitude (size_t num, shared_ptr< const MeshD< BaseT::SpaceType::DIM > > dst_mesh, InterpolationMethod method) |
Compute normalized electric field intensity 1/2 E conj(E) / P. | |
Protected Member Functions inherited from plask::SolverOver< SpaceT > | |
template<typename Boundary , typename ConditionT > | |
void | readBoundaryConditions (Manager &manager, XMLReader &reader, BoundaryConditions< Boundary, ConditionT > &dest) |
Read boundary conditions using information about the geometry of this solver. | |
Protected Member Functions inherited from plask::optical::modal::ModalBase | |
std::unique_ptr< RootDigger > | getRootDigger (const RootDigger::function_type &func, const char *name) |
Create and return rootdigger of a desired type. | |
void | readRootDiggerConfig (XMLReader &reader) |
Read root digger configuration. | |
void | scaleIncidentVector (cvector &incident, size_t layer, double size_factor) |
Scale the incident field vector. | |
Protected Attributes | |
dcomplex | beta |
Longitudinal wavevector (1/µm) | |
dcomplex | ktran |
Transverse wavevector (1/µm) | |
Expansion::Component | symmetry |
Indicates symmetry if symmetric | |
Expansion::Component | polarization |
Indicates polarization if separated | |
size_t | size |
Maximum order of the orthogonal base. | |
int | dct |
Type of discrete cosine transform. Can be only 1 or two. | |
FourierType | ftt |
Way of computation of Fourier coefficients. | |
Protected Attributes inherited from plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > > | |
double | smooth |
Smoothing coefficient. | |
Protected Attributes inherited from plask::SolverWithMesh< Geometry2DCartesian, MeshAxis > | |
shared_ptr< MeshAxis > | mesh |
Mesh over which the calculations are performed. | |
boost::signals2::connection | mesh_signal_connection |
Connection of mesh to onMeshChange method, see http://www.boost.org/doc/libs/1_55_0/doc/html/signals2/tutorial.html#idp204830936. | |
Protected Attributes inherited from plask::SolverOver< SpaceT > | |
shared_ptr< SpaceT > | geometry |
Space in which the calculations are performed. | |
Protected Attributes inherited from plask::Solver | |
bool | initialized |
true only if solver is initialized | |
Protected Attributes inherited from plask::optical::modal::ModalBase | |
Transfer::Method | transfer_method |
Selected transfer method. | |
bool | group_layers |
Can layers be automatically grouped. | |
double | max_temp_diff |
Maximum temperature difference for grouped layers (NAN means ignore temperature) | |
double | temp_dist |
Approximate lateral distance between points for temperature investigation. | |
double | temp_layer |
Minimum layer thickness for the purpose of temperature-based layers division. | |
Friends | |
struct | ExpansionPW2D |
Reflection transformation solver in Cartesian 2D geometry.
Definition at line 27 of file solver2d.hpp.
typedef ModalSolver<SolverWithMesh<Geometry2DCartesian,MeshAxis> > plask::optical::modal::FourierSolver2D::BaseType |
Definition at line 29 of file solver2d.hpp.
Possible ways of computation of Fourier coefficients.
Enumerator | |
---|---|
FOURIER_DISCRETE | |
FOURIER_ANALYTIC |
Definition at line 95 of file solver2d.hpp.
Indication of parameter to search.
Definition at line 36 of file solver2d.hpp.
plask::optical::modal::FourierSolver2D::FourierSolver2D | ( | const std::string & | name = "" | ) |
Definition at line 20 of file solver2d.cpp.
Definition at line 537 of file solver2d.hpp.
|
inlineoverrideprotectedvirtual |
Apply mode number n.
Implements plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > >.
Definition at line 505 of file solver2d.hpp.
|
inlineoverridevirtual |
Clear computed modes.
Implements plask::optical::modal::ModalBase.
Definition at line 133 of file solver2d.hpp.
|
inlineoverrideprotectedvirtual |
Recompute integrals used in RE and RH matrices.
Implements plask::optical::modal::ModalBase.
Definition at line 115 of file solver2d.hpp.
|
inline |
True if DCT == 2.
Definition at line 203 of file solver2d.hpp.
size_t plask::optical::modal::FourierSolver2D::findMode | ( | FourierSolver2D::What | what, |
dcomplex | start | ||
) |
Find the mode around the specified effective index.
This method remembers the determined mode, for retrieval of the field profiles.
what | what to search for |
start | initial value of what to search the mode around |
Definition at line 159 of file solver2d.cpp.
|
inline |
Get longitudinal wavevector.
Definition at line 242 of file solver2d.hpp.
|
inlineoverridevirtual |
Get name of solver.
Implements plask::Solver.
Definition at line 33 of file solver2d.hpp.
|
inline |
Get type of the DCT.
Definition at line 192 of file solver2d.hpp.
|
inlineprotected |
|
inlineoverridevirtual |
Get solver expansion.
Implements plask::optical::modal::ModalBase.
Definition at line 282 of file solver2d.hpp.
Compute electric field coefficients for given z.
num | mode number |
z | position within the layer |
Definition at line 382 of file solver2d.hpp.
Compute magnetic field coefficients for given z.
num | mode number |
z | position within the layer |
Definition at line 393 of file solver2d.hpp.
|
inline |
Get type of the DCT.
Definition at line 207 of file solver2d.hpp.
|
inline |
Get ½ E·conj(E) integral between z1 and z2.
num | mode number |
z1 | lower integration bound |
z2 | upper integration bound |
Definition at line 405 of file solver2d.hpp.
|
inline |
Get ½ H·conj(H) integral between z1 and z2.
num | mode number |
z1 | lower integration bound |
z2 | upper integration bound |
Definition at line 417 of file solver2d.hpp.
|
inline |
Get transverse wavevector.
Definition at line 217 of file solver2d.hpp.
Compute mirror losses for specified effective mode.
Definition at line 521 of file solver2d.hpp.
|
inline |
Return current mode polarization.
Definition at line 262 of file solver2d.hpp.
|
inline |
Get electric field at the given mesh for reflected light.
incident | incident field vector |
side | incidence direction |
dst_mesh | target mesh |
method | interpolation method |
part | part of the field (forward-, backward-propagating, or total) that is wanted |
Definition at line 323 of file solver2d.hpp.
|
inline |
Get magnetic field at the given mesh for reflected light.
incident | incident field vector |
side | incidence direction |
dst_mesh | target mesh |
method | interpolation method |
part | part of the field (forward-, backward-propagating, or total) that is wanted |
Definition at line 344 of file solver2d.hpp.
|
inline |
Get light intensity for reflected light.
incident | incident field vector |
side | incidence direction |
dst_mesh | destination mesh |
method | interpolation method |
Definition at line 364 of file solver2d.hpp.
|
inline |
Compute electric field coefficients for given z for reflected light.
incident | incident field vector |
side | incidence side |
z | position within the layer |
Definition at line 429 of file solver2d.hpp.
|
inline |
Compute magnetic field coefficients for given z for reflected light.
incident | incident field vector |
side | incidence side |
z | position within the layer |
Definition at line 442 of file solver2d.hpp.
|
inline |
Get ½ E·conj(E) integral between z1 and z2 for reflected light.
incident | incident field vector |
side | incidence side |
z1 | lower integration bound |
z2 | upper integration bound |
Definition at line 456 of file solver2d.hpp.
|
inline |
Get ½ H·conj(H) integral between z1 and z2.
incident | incident field vector |
side | incidence side |
z1 | lower integration bound |
z2 | upper integration bound |
Definition at line 470 of file solver2d.hpp.
|
inline |
Get order of the orthogonal base.
Definition at line 184 of file solver2d.hpp.
|
inline |
Return current mode symmetry.
Definition at line 245 of file solver2d.hpp.
|
overrideprotectedvirtual |
Return mode wavelength.
n | mode number |
Implements plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > >.
Definition at line 223 of file solver2d.cpp.
cvector plask::optical::modal::FourierSolver2D::incidentGaussian | ( | Transfer::IncidentDirection | side, |
Expansion::Component | polarization, | ||
double | sigma, | ||
double | center = 0. , |
||
dcomplex | lam = NAN |
||
) |
Compute incident vector with Gaussian profile.
side | incidence side |
polarization | polarization of the perpendicularly incident light |
sigma | standard deviation |
center | position of the beam center |
lam | wavelength |
Definition at line 258 of file solver2d.cpp.
cvector plask::optical::modal::FourierSolver2D::incidentVector | ( | Transfer::IncidentDirection | side, |
Expansion::Component | polarization, | ||
dcomplex | lam = NAN |
||
) |
Get incident field vector for given polarization.
side | incidence side |
polarization | polarization of the perpendicularly incident light |
lam | wavelength |
Definition at line 242 of file solver2d.cpp.
|
inlineprotected |
Insert mode to the list or return the index of the exiting one.
Definition at line 486 of file solver2d.hpp.
|
overridevirtual |
Load configuration from given source
.
XML reader (source
) point to opening of this
solver tag and after return from this method should point to this solver closing tag.
source | source of configuration |
manager | manager from which information about geometry, meshes, materials, and so on can be get if needed |
Reimplemented from plask::Solver.
Definition at line 34 of file solver2d.cpp.
|
inlineoverrideprotectedvirtual |
Return number of determined modes.
Implements plask::optical::modal::ModalSolver< SolverWithMesh< Geometry2DCartesian, MeshAxis > >.
Definition at line 503 of file solver2d.hpp.
|
overrideprotectedvirtual |
Initialize the solver.
Default implementation just does nothing, however it is a good idea to overwrite it in subclasses and put initialization code in it.
Reimplemented from plask::Solver.
Definition at line 136 of file solver2d.cpp.
|
overrideprotectedvirtual |
This method is called by invalidate() to reset stored values.
Default implementation does nothing.
Reimplemented from plask::Solver.
Definition at line 151 of file solver2d.cpp.
|
inline |
Get info if the expansion is separated.
Definition at line 280 of file solver2d.hpp.
|
inline |
Set longitudinal wavevector.
Definition at line 231 of file solver2d.hpp.
Set type of the DCT.
Definition at line 194 of file solver2d.hpp.
|
inlineoverridevirtual |
Set expansion parameters from default values.
with_k0 | Change k0 |
true
if anything was changed Implements plask::optical::modal::ModalBase.
Definition at line 137 of file solver2d.hpp.
|
inline |
Set type of the DCT.
Definition at line 209 of file solver2d.hpp.
|
inline |
Set transverse wavevector.
Definition at line 220 of file solver2d.hpp.
|
inline |
Check if the current parameters correspond to some mode and insert it.
Definition at line 477 of file solver2d.hpp.
|
inline |
Set new mode polarization.
Definition at line 265 of file solver2d.hpp.
|
inline |
Set the simple mesh based on the geometry bounding boxes.
Definition at line 169 of file solver2d.hpp.
|
inline |
Set order of the orthogonal base.
Definition at line 186 of file solver2d.hpp.
|
inline |
Set new mode symmetry.
Definition at line 248 of file solver2d.hpp.
|
inline |
Get info if the expansion is symmetric.
Definition at line 277 of file solver2d.hpp.
|
friend |
Definition at line 31 of file solver2d.hpp.
|
protected |
Longitudinal wavevector (1/µm)
Definition at line 102 of file solver2d.hpp.
|
protected |
Type of discrete cosine transform. Can be only 1 or two.
Definition at line 120 of file solver2d.hpp.
ExpansionPW2D plask::optical::modal::FourierSolver2D::expansion |
Class responsible for computing expansion coefficients.
Definition at line 128 of file solver2d.hpp.
|
protected |
Way of computation of Fourier coefficients.
Definition at line 123 of file solver2d.hpp.
|
protected |
Transverse wavevector (1/µm)
Definition at line 103 of file solver2d.hpp.
Mirror reflectivities.
Definition at line 157 of file solver2d.hpp.
std::vector<Mode> plask::optical::modal::FourierSolver2D::modes |
Computed modes.
Definition at line 131 of file solver2d.hpp.
ProviderFor<ModeEffectiveIndex>::Delegate plask::optical::modal::FourierSolver2D::outNeff |
Provider for computed effective index.
Definition at line 160 of file solver2d.hpp.
PML plask::optical::modal::FourierSolver2D::pml |
Lateral PMLs.
Definition at line 154 of file solver2d.hpp.
|
protected |
Indicates polarization if separated
Definition at line 106 of file solver2d.hpp.
size_t plask::optical::modal::FourierSolver2D::refine |
Mesh multiplier for finer computation of the refractive indices.
Definition at line 151 of file solver2d.hpp.
|
protected |
Maximum order of the orthogonal base.
Definition at line 109 of file solver2d.hpp.
|
protected |
Indicates symmetry if symmetric
Definition at line 105 of file solver2d.hpp.