25 #ifndef GRINS_PARSED_PROPERTY_BASE_H
26 #define GRINS_PARSED_PROPERTY_BASE_H
33 #include "libmesh/libmesh_common.h"
34 #include "libmesh/fem_system.h"
35 #include "libmesh/parsed_function.h"
36 #include "libmesh/point.h"
56 libMesh::Real
operator()(
const libMesh::Point& p,
const libMesh::Real time );
58 virtual void init(libMesh::FEMSystem* ){};
79 const std::vector<libMesh::Point>& x = context.get_element_fe(0)->get_xyz();
81 const libMesh::Point& x_qp = x[qp];
86 libMesh::Number value = mutable_func(x_qp,context.time);
99 #endif // GRINS_PARSED_PROPERTY_BASE_H
libMesh::ParsedFunction< libMesh::Number > _func
virtual ~ParsedPropertyBase()
virtual void init(libMesh::FEMSystem *)
bool check_func_nonzero(const std::string &function) const
Returns true if function string is nonzero.
Base class for material properties based on ParsedFunction.
libMesh::Real operator()(AssemblyContext &context, unsigned int qp) const