Nektar++
|
#include <FilterThresholdMax.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | FilterThresholdMax (const LibUtilities::SessionReaderSharedPtr &pSession, const ParamMap &pParams) |
virtual SOLVER_UTILS_EXPORT | ~FilterThresholdMax () |
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 std::map< std::string, std::string > &pParams) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Name of the class. More... | |
Protected Member Functions | |
virtual void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
Initialises the filter. More... | |
virtual void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
For each point in domain test if solution is above threshold. More... | |
virtual void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) |
Finalise the filter and write out data. More... | |
virtual bool | v_IsTimeDependent () |
Indicate that this filter is time dependent. More... | |
Private Attributes | |
Array< OneD, NekDouble > | m_threshold |
Storage for recording when each point in domain rises above threshold. More... | |
NekDouble | m_startTime |
Time at which to start recording. More... | |
NekDouble | m_thresholdValue |
Value of threshold. More... | |
int | m_thresholdVar |
Variable on which to detect threshold. More... | |
NekDouble | m_initialValue |
Initial value of storage. More... | |
std::string | m_outputFile |
File into which to write output data. More... | |
LibUtilities::FieldIOSharedPtr | m_fld |
FieldIO object for writing data. More... | |
Friends | |
class | MemoryManager< FilterThresholdMax > |
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 46 of file FilterThresholdMax.h.
Nektar::SolverUtils::FilterThresholdMax::FilterThresholdMax | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const ParamMap & | pParams | ||
) |
Definition at line 49 of file FilterThresholdMax.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::LibUtilities::Equation::Evaluate(), Nektar::StdRegions::find(), m_fld, m_initialValue, m_outputFile, Nektar::SolverUtils::Filter::m_session, m_startTime, m_thresholdValue, and m_thresholdVar.
|
virtual |
Definition at line 105 of file FilterThresholdMax.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 52 of file FilterThresholdMax.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
protectedvirtual |
Finalise the filter and write out data.
Implements Nektar::SolverUtils::Filter.
Definition at line 140 of file FilterThresholdMax.cpp.
References m_fld, m_outputFile, m_threshold, and m_thresholdVar.
|
protectedvirtual |
Initialises the filter.
Implements Nektar::SolverUtils::Filter.
Definition at line 110 of file FilterThresholdMax.cpp.
References m_initialValue, m_threshold, and m_thresholdVar.
|
protectedvirtual |
Indicate that this filter is time dependent.
Implements Nektar::SolverUtils::Filter.
Definition at line 163 of file FilterThresholdMax.cpp.
|
protectedvirtual |
For each point in domain test if solution is above threshold.
Implements Nektar::SolverUtils::Filter.
Definition at line 118 of file FilterThresholdMax.cpp.
References m_startTime, m_threshold, m_thresholdValue, and m_thresholdVar.
|
friend |
Definition at line 49 of file FilterThresholdMax.h.
|
static |
Name of the class.
Definition at line 61 of file FilterThresholdMax.h.
|
private |
FieldIO object for writing data.
Definition at line 98 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Finalise().
|
private |
Initial value of storage.
Definition at line 94 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Initialise().
|
private |
File into which to write output data.
Definition at line 96 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Finalise().
|
private |
Time at which to start recording.
Definition at line 88 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Update().
Storage for recording when each point in domain rises above threshold.
Definition at line 86 of file FilterThresholdMax.h.
Referenced by v_Finalise(), v_Initialise(), and v_Update().
|
private |
Value of threshold.
Definition at line 90 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Update().
|
private |
Variable on which to detect threshold.
Definition at line 92 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), v_Finalise(), v_Initialise(), and v_Update().