|
Nektar++
|
#include <ReynoldsStressOpImpl.hpp>
Public Member Functions | |
| ReynoldsStressOpImpl (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components) | |
Public Member Functions inherited from Nektar::ReynoldsStressOp< TData > | |
| void | Configure (const std::vector< unsigned int > &velocityComponents) |
velocityComponents are the indices of the velocity components in the velocity field, which may hold further components. | |
| void | SetScale (const TData scale) |
| Set the factor applied to the products before they are added. | |
| void | Apply (LibUtilities::Field< TData, FieldState::Phys > &velocity, LibUtilities::Field< TData, FieldState::Phys > &products) |
Add the scaled products of velocity to products, which leave at the interleave width of velocity. | |
| void | operator() (LibUtilities::Field< TData, FieldState::Phys > &velocity, LibUtilities::Field< TData, FieldState::Phys > &products) |
| As 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::unique_ptr< MultiRegions::Operator< TData > > | Instantiate (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components) |
Static Public Member Functions inherited from Nektar::ReynoldsStressOp< TData > | |
| static std::shared_ptr< ReynoldsStressOp< TData > > | Create (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components, const std::string &execStr="") |
| static std::vector< std::string > | ProductNames (const std::vector< std::string > &velocityNames) |
| Names of the product components, e.g. uu, uv, uw, vv, vw, ww, formed from the names of the selected velocity components. | |
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 std::string | className |
Static Public Attributes inherited from Nektar::ReynoldsStressOp< TData > | |
| static const std::string | name = "ReynoldsStress" |
Protected Member Functions | |
| void | v_Configure (const std::vector< unsigned int > &velocityComponents) override |
| void | v_Apply (LibUtilities::Field< TData, FieldState::Phys > &velocity, LibUtilities::Field< TData, FieldState::Phys > &products) override |
Protected Member Functions inherited from Nektar::ReynoldsStressOp< TData > | |
| ReynoldsStressOp (const MultiRegions::ExpListSharedPtr &expansionList, const std::vector< std::string > &components) | |
| ~ReynoldsStressOp () override=default | |
Protected Attributes | |
| std::array< unsigned int, 3 > | m_velocityComponents {} |
| unsigned int | m_dimension = 0 |
| unsigned int | m_nProducts = 0 |
| unsigned int | m_numPlanes = 1 |
| Number of local planes, or 1 without a homogeneous direction. | |
Protected Attributes inherited from Nektar::ReynoldsStressOp< TData > | |
| TData | m_scale = TData{1} |
| Factor applied to the products before they are added. | |
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. | |
Private Types | |
| using | MemSpace = typename ExecSpace::memory_space |
Definition at line 50 of file ReynoldsStressOpImpl.hpp.
|
private |
Definition at line 52 of file ReynoldsStressOpImpl.hpp.
|
inline |
Definition at line 55 of file ReynoldsStressOpImpl.hpp.
References ASSERTL0, Nektar::MultiRegions::e3DH1D, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_dimension, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_nProducts, and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_numPlanes.
|
inlinestatic |
Definition at line 78 of file ReynoldsStressOpImpl.hpp.
|
inlineoverrideprotectedvirtual |
Implements Nektar::ReynoldsStressOp< TData >.
Definition at line 103 of file ReynoldsStressOpImpl.hpp.
References ASSERTL1, Nektar::ErrorUtil::efatal, Nektar::LibUtilities::Field< TData, TState >::GetBlocks(), Nektar::LibUtilities::Field< TData, TState >::GetInterleaveWidth(), Nektar::LibUtilities::Field< TData, TState >::GetNumComponents(), Nektar::LibUtilities::Field< TData, TState >::GetNumHomoModes(), Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_dimension, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_nProducts, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_numPlanes, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_velocityComponents, NEKERROR, and Nektar::LibUtilities::Field< TData, TState >::ReshapeStorage().
|
inlineoverrideprotectedvirtual |
Implements Nektar::ReynoldsStressOp< TData >.
Definition at line 93 of file ReynoldsStressOpImpl.hpp.
References ASSERTL0, Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_dimension, and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::m_velocityComponents.
|
static |
Definition at line 76 of file ReynoldsStressOpImpl.hpp.
|
protected |
|
protected |
Definition at line 89 of file ReynoldsStressOpImpl.hpp.
Referenced by Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::ReynoldsStressOpImpl(), and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply().
|
protected |
Number of local planes, or 1 without a homogeneous direction.
Definition at line 91 of file ReynoldsStressOpImpl.hpp.
Referenced by Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::ReynoldsStressOpImpl(), and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply().
|
protected |
Definition at line 87 of file ReynoldsStressOpImpl.hpp.
Referenced by Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Apply(), and Nektar::detail::ReynoldsStressOpImpl< ExecSpace, TData >::v_Configure().