GRINS-0.8.0
|
Base class for material properties based on ParsedFunction. More...
#include <parsed_property_base.h>
Public Member Functions | |
ParsedPropertyBase () | |
virtual | ~ParsedPropertyBase () |
libMesh::Real | operator() (AssemblyContext &context, unsigned int qp) const |
libMesh::Real | operator() (const libMesh::Point &p, const libMesh::Real time) |
virtual void | init (libMesh::FEMSystem *) |
Protected Member Functions | |
bool | check_func_nonzero (const std::string &function) const |
Returns true if function string is nonzero. More... | |
Protected Attributes | |
libMesh::ParsedFunction< libMesh::Number > | _func |
Base class for material properties based on ParsedFunction.
This class contains the basic interface and functionality. Subclasses should only need to handle the parsing of the function-string and create the ParsedFunction in the local _func variable.
Definition at line 47 of file parsed_property_base.h.
|
inline |
Definition at line 51 of file parsed_property_base.h.
|
inlinevirtual |
Definition at line 52 of file parsed_property_base.h.
|
protected |
Returns true if function string is nonzero.
The ParsedFunction used is built through a string argument. This function checks if the string is "0". This is useful for cases where the function must not be zero.
Definition at line 30 of file parsed_property_base.C.
Referenced by GRINS::ParsedConductivity::ParsedConductivity(), and GRINS::ParsedViscosity::ParsedViscosity().
|
inlinevirtual |
Definition at line 58 of file parsed_property_base.h.
|
inline |
Definition at line 75 of file parsed_property_base.h.
References _func.
|
inline |
Definition at line 92 of file parsed_property_base.h.
References _func.
|
protected |
Definition at line 69 of file parsed_property_base.h.
Referenced by operator()(), GRINS::ParsedConductivity::ParsedConductivity(), and GRINS::ParsedViscosity::ParsedViscosity().