WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::fvm::decay Class Reference

Adds a linear decay \(\partial_{t} q = a q\). More...

#include <decay.h>

Inheritance diagram for wxm::fvm::decay:
WmUnstructuredApp WmVariableParser

Detailed Description

Adds a linear decay \(\partial_{t} q = a q\).

Parameters
TypeUnstructuredApp
Kinddecay
areal decay rate. Should be non-positive for a stable decay.
qvariable to decay. Should have a single component.

Public Member Functions

 decay ()
 
void setup (const WxCryptSet &wxc)
 
std::string generateSourceCall (const WmUnstructuredEquationSet &eqSet, unsigned int callType) const
 
std::string generateSource (const WmUnstructuredEquationSet &eqSet) const
 
- Public Member Functions inherited from WmUnstructuredApp
 WmUnstructuredApp ()
 
virtual ~WmUnstructuredApp ()
 
virtual void setup (const WxCryptSet &wxc)
 
virtual std::string generateSourceCall (const WmUnstructuredEquationSet &eqSet, unsigned int callType) const =0
 
virtual std::string generateSource (const WmUnstructuredEquationSet &eqSet) const =0
 
virtual void consolidateVariables (variableList_t &varList, unsigned int callType)
 
- Public Member Functions inherited from WmVariableParser
 WmVariableParser ()
 
virtual ~WmVariableParser ()
 
void setParentSolver (const WmSolverBase *solver)
 
componentList_t parseVariablesFromCryptset (const WxCryptSet &wxe, const std::string &fieldName)
 

Additional Inherited Members

- Public Types inherited from WmUnstructuredApp
typedef std::map< std::string, std::string > replaceMap_t
 
- Public Types inherited from WmVariableParser
typedef std::map< std::string, std::string > constantsMap_t
 
typedef std::vector< component_tcomponentList_t
 
- Static Public Member Functions inherited from WmUnstructuredApp
static void replaceKeys (std::string &string, const replaceMap_t &map)
 
- Protected Member Functions inherited from WmUnstructuredApp
std::string fillAllocationAtIndex (const std::string &indentation, const WmKernelVariable *kVars[], int numKVars, int startIndex=0, const std::string &allocationName="pPVS->rA") const
 
template<typename T >
readVal (const WxCryptSet &wxc, const std::string &name) const
 
template<typename T >
std::vector< T > readVec (const WxCryptSet &wxc, const std::string &name) const
 
template<typename T >
readVal (const WxCryptSet &wxc, const std::string &name, const T &defaultValue) const
 
- Protected Member Functions inherited from WmVariableParser
variableTypeList_t decomposeVariableName (const WxAny &varName) const
 
bool hasVariable (const WxCryptSet &wxc, const std::string &varName) const
 
bool hasVariableVector (const WxCryptSet &wxc, const std::string &varName) const
 
componentList_t parseVariableNameIntoComponents (const std::string &fullVarName)
 
- Static Protected Member Functions inherited from WmUnstructuredApp
static void indent (std::string &indentation)
 
static void outdent (std::string &indentation)
 
template<typename T >
static std::string toStr (const T &val)
 
- Static Protected Member Functions inherited from WmVariableParser
static std::string itos (int value)
 
static std::string getAnyString (const WxAny &any)
 
static std::string getTypeString (const std::type_info &type)
 
static size_t getTypeSize (const std::type_info &typeinfo)
 
- Protected Attributes inherited from WmUnstructuredApp
variableList_t _fluxVariables
 
variableList_t _sourceVariables
 
variableList_t _externalVariables
 
variableList_t _privateVariables
 
- Protected Attributes inherited from WmVariableParser
const WmSolverBase_parentSolver
 
WxLogStream _debStrm
 

Constructor & Destructor Documentation

◆ decay()

wxm::fvm::decay::decay ( )
inline

Member Function Documentation

◆ generateSource()

std::string wxm::fvm::decay::generateSource ( const WmUnstructuredEquationSet eqSet) const
virtual

Implements WmUnstructuredApp.

◆ generateSourceCall()

std::string wxm::fvm::decay::generateSourceCall ( const WmUnstructuredEquationSet eqSet,
unsigned int  callType 
) const
virtual

Implements WmUnstructuredApp.

◆ setup()

void wxm::fvm::decay::setup ( const WxCryptSet wxc)
virtual

Reimplemented from WmUnstructuredApp.


The documentation for this class was generated from the following file: