Nektar++
|
#include <FilterThresholdMin.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | FilterThresholdMin (const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const ParamMap &pParams) |
SOLVER_UTILS_EXPORT | ~FilterThresholdMin () 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 ParamMap &pParams) |
Creates an instance of this class. More... | |
Static Public Attributes | |
static std::string | className |
Name of the class. More... | |
Protected Member Functions | |
SOLVER_UTILS_EXPORT void | v_Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
Initialises the filter. More... | |
SOLVER_UTILS_EXPORT void | v_Update (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
For each point in domain test if solution is below threshold. More... | |
SOLVER_UTILS_EXPORT void | v_Finalise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override |
Finalise the filter and write out data. More... | |
SOLVER_UTILS_EXPORT 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 drops below 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< FilterThresholdMin > |
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 FilterThresholdMin.h.
Nektar::SolverUtils::FilterThresholdMin::FilterThresholdMin | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const std::weak_ptr< EquationSystem > & | pEquation, | ||
const ParamMap & | pParams | ||
) |
Definition at line 49 of file FilterThresholdMin.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 103 of file FilterThresholdMin.cpp.
|
inlinestatic |
Creates an instance of this class.
Definition at line 49 of file FilterThresholdMin.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 147 of file FilterThresholdMin.cpp.
References m_fld, m_outputFile, and m_threshold.
|
overrideprotectedvirtual |
Initialises the filter.
Implements Nektar::SolverUtils::Filter.
Definition at line 110 of file FilterThresholdMin.cpp.
References m_initialValue, m_threshold, and m_thresholdVar.
|
overrideprotectedvirtual |
Indicate that this filter is time dependent.
Implements Nektar::SolverUtils::Filter.
Definition at line 175 of file FilterThresholdMin.cpp.
|
overrideprotectedvirtual |
For each point in domain test if solution is below threshold.
Implements Nektar::SolverUtils::Filter.
Definition at line 121 of file FilterThresholdMin.cpp.
References m_startTime, m_threshold, m_thresholdValue, and m_thresholdVar.
|
friend |
Definition at line 1 of file FilterThresholdMin.h.
|
static |
Name of the class.
Definition at line 60 of file FilterThresholdMin.h.
|
private |
FieldIO object for writing data.
Definition at line 98 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), and v_Finalise().
|
private |
Initial value of storage.
Definition at line 94 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), and v_Initialise().
|
private |
File into which to write output data.
Definition at line 96 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), and v_Finalise().
|
private |
Time at which to start recording.
Definition at line 88 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), and v_Update().
Storage for recording when each point in domain drops below threshold.
Definition at line 86 of file FilterThresholdMin.h.
Referenced by v_Finalise(), v_Initialise(), and v_Update().
|
private |
Value of threshold.
Definition at line 90 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), and v_Update().
|
private |
Variable on which to detect threshold.
Definition at line 92 of file FilterThresholdMin.h.
Referenced by FilterThresholdMin(), v_Initialise(), and v_Update().