Nektar++
|
#include <FilterThresholdMax.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | FilterThresholdMax (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const ParamMap &pParams) |
SOLVER_UTILS_EXPORT | ~FilterThresholdMax () override |
Public Member Functions inherited from Nektar::SolverUtils::Filter | |
SOLVER_UTILS_EXPORT | Filter (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation) |
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::weak_ptr< EquationSystem > &pEquation, 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 | |
void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
Initialises the filter. More... | |
void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
For each point in domain test if solution is above threshold. More... | |
void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
Finalise the filter and write out data. More... | |
bool | v_IsTimeDependent () override |
Indicate that this filter is time dependent. More... | |
virtual void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)=0 |
virtual void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)=0 |
virtual void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time)=0 |
virtual bool | v_IsTimeDependent ()=0 |
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 |
const std::weak_ptr< EquationSystem > | m_equ |
Definition at line 43 of file FilterThresholdMax.h.
Nektar::SolverUtils::FilterThresholdMax::FilterThresholdMax | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const std::weak_ptr< EquationSystem > & | pEquation, | ||
const ParamMap & | pParams | ||
) |
Definition at line 46 of file FilterThresholdMax.cpp.
References ASSERTL0, Nektar::LibUtilities::FieldIO::CreateDefault(), 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.
|
override |
Definition at line 97 of file FilterThresholdMax.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 49 of file FilterThresholdMax.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), and CellMLToNektar.cellml_metadata::p.
|
overrideprotectedvirtual |
Finalise the filter and write out data.
Implements Nektar::SolverUtils::Filter.
Definition at line 132 of file FilterThresholdMax.cpp.
References m_fld, m_outputFile, m_threshold, and m_thresholdVar.
|
overrideprotectedvirtual |
Initialises the filter.
Implements Nektar::SolverUtils::Filter.
Definition at line 101 of file FilterThresholdMax.cpp.
References m_initialValue, m_threshold, and m_thresholdVar.
|
overrideprotectedvirtual |
Indicate that this filter is time dependent.
Implements Nektar::SolverUtils::Filter.
Definition at line 155 of file FilterThresholdMax.cpp.
|
overrideprotectedvirtual |
For each point in domain test if solution is above threshold.
Implements Nektar::SolverUtils::Filter.
Definition at line 109 of file FilterThresholdMax.cpp.
References m_startTime, m_threshold, m_thresholdValue, and m_thresholdVar.
|
friend |
Definition at line 1 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 99 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Finalise().
|
private |
Initial value of storage.
Definition at line 95 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Initialise().
|
private |
File into which to write output data.
Definition at line 97 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Finalise().
|
private |
Time at which to start recording.
Definition at line 89 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Update().
Storage for recording when each point in domain rises above threshold.
Definition at line 87 of file FilterThresholdMax.h.
Referenced by v_Finalise(), v_Initialise(), and v_Update().
|
private |
Value of threshold.
Definition at line 91 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), and v_Update().
|
private |
Variable on which to detect threshold.
Definition at line 93 of file FilterThresholdMax.h.
Referenced by FilterThresholdMax(), v_Finalise(), v_Initialise(), and v_Update().