Nektar++
|
#include <FilterModalEnergy.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | FilterModalEnergy (const LibUtilities::SessionReaderSharedPtr &pSession, const ParamMap &pParams) |
virtual SOLVER_UTILS_EXPORT | ~FilterModalEnergy () |
Public Member Functions inherited from Nektar::SolverUtils::Filter | |
SOLVER_UTILS_EXPORT | Filter (const LibUtilities::SessionReaderSharedPtr &pSession) |
virtual SOLVER_UTILS_EXPORT | ~Filter () |
SOLVER_UTILS_EXPORT void | Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT void | Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT void | Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
SOLVER_UTILS_EXPORT bool | IsTimeDependent () |
Static Public Member Functions | |
static FilterSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession, const ParamMap &pParams) |
Static Public Attributes | |
static std::string | className |
Protected Member Functions | |
virtual void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
virtual void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
virtual void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
virtual bool | v_IsTimeDependent () |
NekDouble | L2Error (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, unsigned int field, const NekDouble &time) |
void | SetUpBaseFields (SpatialDomains::MeshGraphSharedPtr &mesh) |
void | ImportFldBase (std::string pInfile, SpatialDomains::MeshGraphSharedPtr pGraph) |
Private Attributes | |
enum MultiRegions::ProjectionType | m_projectionType |
Array< OneD, MultiRegions::ExpListSharedPtr > | m_base |
LibUtilities::FieldIOSharedPtr | m_fld |
vector< unsigned int > | m_boundaryRegionsIdList |
vector< bool > | m_boundaryRegionIsInList |
unsigned int | m_index |
unsigned int | m_outputFrequency |
unsigned int | m_outputPlane |
bool | m_isHomogeneous1D |
bool | m_isHomogeneous2D |
bool | m_PertEnergy |
int | m_npointsZ |
int | m_nproc |
std::string | m_outputFile |
std::string | m_EqTypeStr |
std::ofstream | m_outputStream |
LibUtilities::BasisSharedPtr | m_homogeneousBasis |
std::string | m_BoundaryString |
int | m_nplanes |
int | m_NumQuadPointsError |
bool | m_SingleMode |
bool | m_HalfMode |
bool | m_MultipleModes |
bool | m_useFFT |
NekDouble | m_LhomZ |
bool | m_homogen_dealiasing |
Friends | |
class | MemoryManager< FilterModalEnergy > |
Additional Inherited Members | |
Public Types inherited from Nektar::SolverUtils::Filter | |
typedef std::map< std::string, std::string > | ParamMap |
Protected Attributes inherited from Nektar::SolverUtils::Filter | |
LibUtilities::SessionReaderSharedPtr | m_session |
Definition at line 57 of file FilterModalEnergy.h.
Nektar::SolverUtils::FilterModalEnergy::FilterModalEnergy | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const ParamMap & | pParams | ||
) |
Constructor.
Definition at line 51 of file FilterModalEnergy.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::Equation::Evaluate(), m_EqTypeStr, m_fld, m_isHomogeneous1D, m_isHomogeneous2D, m_LhomZ, m_NumQuadPointsError, m_outputFile, m_outputFrequency, m_outputPlane, m_PertEnergy, and Nektar::SolverUtils::Filter::m_session.
|
virtual |
|
inlinestatic |
Definition at line 63 of file FilterModalEnergy.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protected |
Import the base flow fld file.
Definition at line 624 of file FilterModalEnergy.cpp.
References ASSERTL0, m_base, m_fld, and Nektar::SolverUtils::Filter::m_session.
Referenced by v_Update().
|
protected |
Calculate the L2 norm of a given field for calculating the modal energy.
Definition at line 348 of file FilterModalEnergy.cpp.
References m_NumQuadPointsError.
Referenced by v_Update().
|
protected |
Setup the base fields in case of stability analyses.
Definition at line 372 of file FilterModalEnergy.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::MultiRegions::eDiscontinuous, Nektar::LibUtilities::eFourier, Nektar::LibUtilities::eFourierEvenlySpaced, Nektar::LibUtilities::eFourierHalfModeRe, Nektar::LibUtilities::eFourierSingleModeSpaced, Nektar::MultiRegions::eGalerkin, Nektar::MultiRegions::eMixed_CG_Discontinuous, m_base, m_HalfMode, m_homogen_dealiasing, m_isHomogeneous1D, m_LhomZ, m_MultipleModes, m_npointsZ, m_projectionType, Nektar::SolverUtils::Filter::m_session, m_SingleMode, and m_useFFT.
Referenced by v_Update().
|
protectedvirtual |
Close the output stream.
Implements Nektar::SolverUtils::Filter.
Definition at line 334 of file FilterModalEnergy.cpp.
References m_outputStream.
|
protectedvirtual |
Initialize the parallel communication and the output stream.
Implements Nektar::SolverUtils::Filter.
Definition at line 128 of file FilterModalEnergy.cpp.
References m_index, m_isHomogeneous1D, m_outputFile, m_outputStream, and v_Update().
|
protectedvirtual |
Flag for time-dependent flows.
Implements Nektar::SolverUtils::Filter.
Definition at line 661 of file FilterModalEnergy.cpp.
|
protectedvirtual |
Update the modal energy every m_outputFrequency.
Implements Nektar::SolverUtils::Filter.
Definition at line 160 of file FilterModalEnergy.cpp.
References ASSERTL0, ImportFldBase(), L2Error(), m_base, m_EqTypeStr, m_index, m_isHomogeneous1D, m_isHomogeneous2D, m_npointsZ, m_outputFrequency, m_outputStream, m_PertEnergy, Nektar::SolverUtils::Filter::m_session, Nektar::SpatialDomains::MeshGraph::Read(), SetUpBaseFields(), Vmath::Vadd(), and Vmath::Vsub().
Referenced by v_Initialise().
|
friend |
Definition at line 60 of file FilterModalEnergy.h.
|
static |
Definition at line 74 of file FilterModalEnergy.h.
|
private |
Definition at line 104 of file FilterModalEnergy.h.
Referenced by ImportFldBase(), SetUpBaseFields(), and v_Update().
|
private |
Definition at line 111 of file FilterModalEnergy.h.
|
private |
Definition at line 108 of file FilterModalEnergy.h.
|
private |
Definition at line 126 of file FilterModalEnergy.h.
|
private |
Definition at line 123 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and v_Update().
|
private |
Definition at line 105 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and ImportFldBase().
|
private |
Definition at line 130 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().
|
private |
Definition at line 134 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().
|
private |
Definition at line 125 of file FilterModalEnergy.h.
|
private |
Definition at line 112 of file FilterModalEnergy.h.
Referenced by v_Initialise(), and v_Update().
|
private |
Definition at line 117 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), SetUpBaseFields(), v_Initialise(), and v_Update().
|
private |
Definition at line 118 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and v_Update().
|
private |
Definition at line 133 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and SetUpBaseFields().
|
private |
Definition at line 131 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().
|
private |
Definition at line 127 of file FilterModalEnergy.h.
|
private |
Definition at line 120 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields(), and v_Update().
|
private |
Definition at line 121 of file FilterModalEnergy.h.
|
private |
Definition at line 128 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and L2Error().
|
private |
Definition at line 122 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and v_Initialise().
|
private |
Definition at line 113 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and v_Update().
|
private |
Definition at line 116 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy().
|
private |
Definition at line 124 of file FilterModalEnergy.h.
Referenced by v_Finalise(), v_Initialise(), and v_Update().
|
private |
Definition at line 119 of file FilterModalEnergy.h.
Referenced by FilterModalEnergy(), and v_Update().
|
private |
Definition at line 103 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().
|
private |
Definition at line 129 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().
|
private |
Definition at line 132 of file FilterModalEnergy.h.
Referenced by SetUpBaseFields().