|
Nektar++
|
#include <AdvectionDealiasOp.hpp>
Public Member Functions | |
| void | SetScale (const TData &scale) |
| void | SetAppend (const bool &append) |
| void | SetAdvVel (LibUtilities::Field< TData, FieldState::Phys > &advVel) |
Public Member Functions inherited from Nektar::MultiRegions::ElmtOp< FieldState::Phys, FieldState::Phys, TData > | |
| void | Apply (LibUtilities::Field< TData, TFieldIn > &in, LibUtilities::Field< TData, TFieldOut > &out) |
Apply the operator to in, writing the result to out. | |
| void | operator() (LibUtilities::Field< TData, TFieldIn > &in, LibUtilities::Field< TData, TFieldOut > &out) |
| Call operator; equivalent to Apply(). | |
Public Member Functions inherited from Nektar::MultiRegions::Operator< TData > | |
| virtual | ~Operator ()=default |
| Operator (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > components) | |
| Construct the interface part of a concrete operator; called by the factory-registered creator functions. | |
Static Public Member Functions | |
| static std::shared_ptr< AdvectionDealiasOp< TData > > | Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="") |
Static Public Member Functions inherited from Nektar::MultiRegions::ElmtOp< FieldState::Phys, FieldState::Phys, TData > | |
| static std::shared_ptr< TOperator< TData > > | Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="", const std::string &implStr="") |
| Build a complete element operator: the whole-field interface object plus one block operator per element block. | |
| static std::string | GetOpImpl (const std::string &opName, const std::string &opExecSpace, LibUtilities::SessionReaderSharedPtr session, const StdRegions::StdExpansionSharedPtr &exp=nullptr, const std::string &policyName="") |
| Return the implementation for an operator. | |
Static Public Member Functions inherited from Nektar::MultiRegions::Operator< TData > | |
| template<template< typename > typename TOperator> | |
| static std::shared_ptr< TOperator< TData > > | Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > components, const std::string &execStr) |
| Create a concrete operator instance through the operator factory. | |
| static std::string | GetOpExecSpace (std::shared_ptr< LibUtilities::SessionReader > session, const bool warn=true) |
| Return the execution space name ("opExecSpace") for an operator. | |
| static const DefaultOpImplRule * | GetDefaultOpImplRule (const StdRegions::StdExpansionSharedPtr &exp, const std::string &execSpace) |
| Return the row of the default implementation table (DefaultOpImplTable.hpp) that a block of elements takes, or null if none does. | |
| static std::string | GetDefaultOpImpl (const StdRegions::StdExpansionSharedPtr &exp, const std::string &execSpace) |
| Return the implementation a block of elements takes when neither the command line nor the session names one for its operator. | |
| static std::vector< unsigned int > | GetDefaultInterleaveWidths (const MultiRegions::ExpListSharedPtr &expansionList) |
Return the default interleave widths, one per block of expansionList, that persistent Fields (e.g. solution storage, time-integration and linear-solver workspace) built on it should be constructed with. | |
| static bool | IsDiscontinuousProjection (std::shared_ptr< LibUtilities::SessionReader > session) |
| Return true if the session uses a Discontinuous (DG) projection. | |
Static Public Attributes | |
| static const std::string | name = "AdvectionDealias" |
Protected Member Functions | |
| AdvectionDealiasOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components) | |
| ~AdvectionDealiasOp () override=default | |
| void | v_Apply (LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out) override |
| virtual void | v_ApplyFFT (LibUtilities::Field< TData, FieldState::Phys > &in, LibUtilities::Field< TData, FieldState::Phys > &out)=0 |
| The advection along the homogeneous direction. The 3/2 rule is applied in the plane only, so this is w du/dz taken to the fine grid, multiplied there and projected back on top of the plane part the block operators have already written. | |
| virtual void | v_SetAdvVelFFT (LibUtilities::Field< TData, FieldState::Phys > &advVel)=0 |
| Hand the z pass the velocity and the scale, which the block operators take for their own part. | |
| virtual void | v_SetScaleFFT (const TData &scale)=0 |
Protected Member Functions inherited from Nektar::MultiRegions::ElmtOp< FieldState::Phys, FieldState::Phys, TData > | |
| ElmtOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components) | |
| Construct the interface part of a concrete operator; called by the factory-registered creator functions. | |
| ~ElmtOp () override=default | |
| virtual void | v_Apply (LibUtilities::Field< TData, TFieldIn > &in, LibUtilities::Field< TData, TFieldOut > &out)=0 |
| Implementation hook for Apply(). | |
Protected Attributes | |
| bool | m_isSetAdvVel = false |
| std::vector< std::shared_ptr< AdvectionDealiasBlockOp< TData > > > | m_blockOp |
Protected Attributes inherited from Nektar::MultiRegions::Operator< TData > | |
| MultiRegions::ExpListSharedPtr | m_expansionList |
| Expansion list the operator acts on. | |
| std::vector< std::string > | m_components |
| Names of the field components the operator was built for. | |
| LibUtilities::NekDataWarehouseSharedPtr | m_dataWarehouse |
| Data warehouse shared with the other operators on the expansion list, used to build and cache shared tables (basis matrices, mode indices, geometric factors) once. | |
Friends | |
| class | ElmtOp< FieldState::Phys, FieldState::Phys, TData > |
Definition at line 47 of file AdvectionDealiasOp.hpp.
|
inlineprotected |
Definition at line 110 of file AdvectionDealiasOp.hpp.
|
overrideprotecteddefault |
|
inlinestatic |
Definition at line 53 of file AdvectionDealiasOp.hpp.
Referenced by TestAdvectionDealias< TData >::RunTestCase().
|
inline |
Definition at line 84 of file AdvectionDealiasOp.hpp.
References ASSERTL1, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::MultiRegions::AdvectionDealiasOp< TData >::m_blockOp, Nektar::MultiRegions::AdvectionDealiasOp< TData >::m_isSetAdvVel, and Nektar::MultiRegions::AdvectionDealiasOp< TData >::v_SetAdvVelFFT().
|
inline |
Definition at line 75 of file AdvectionDealiasOp.hpp.
References Nektar::MultiRegions::AdvectionDealiasOp< TData >::m_blockOp.
|
inline |
Definition at line 65 of file AdvectionDealiasOp.hpp.
References Nektar::MultiRegions::AdvectionDealiasOp< TData >::m_blockOp, and Nektar::MultiRegions::AdvectionDealiasOp< TData >::v_SetScaleFFT().
|
inlineoverrideprotected |
Definition at line 119 of file AdvectionDealiasOp.hpp.
References ASSERTL1, Nektar::MultiRegions::AdvectionDealiasOp< TData >::m_isSetAdvVel, and Nektar::MultiRegions::AdvectionDealiasOp< TData >::v_ApplyFFT().
|
protectedpure virtual |
The advection along the homogeneous direction. The 3/2 rule is applied in the plane only, so this is w du/dz taken to the fine grid, multiplied there and projected back on top of the plane part the block operators have already written.
Implemented in Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >.
Referenced by Nektar::MultiRegions::AdvectionDealiasOp< TData >::v_Apply().
|
protectedpure virtual |
Hand the z pass the velocity and the scale, which the block operators take for their own part.
Implemented in Nektar::MultiRegions::detail::AdvectionDealiasOpImpl< ExecSpace, TData >.
Referenced by Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel().
|
protectedpure virtual |
|
friend |
Definition at line 1 of file AdvectionDealiasOp.hpp.
|
protected |
Definition at line 108 of file AdvectionDealiasOp.hpp.
Referenced by Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel(), Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAppend(), and Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetScale().
|
protected |
Definition at line 107 of file AdvectionDealiasOp.hpp.
Referenced by Nektar::MultiRegions::AdvectionDealiasOp< TData >::SetAdvVel(), and Nektar::MultiRegions::AdvectionDealiasOp< TData >::v_Apply().
|
inlinestatic |
Definition at line 63 of file AdvectionDealiasOp.hpp.