26 #ifndef GRINS_PARSED_VISCOSITY_H
27 #define GRINS_PARSED_VISCOSITY_H
34 #include "libmesh/libmesh_common.h"
35 #include "libmesh/fem_system.h"
36 #include "libmesh/quadrature.h"
37 #include "libmesh/auto_ptr.h"
38 #include "libmesh/function_base.h"
40 #include "libmesh/fem_system.h"
55 libMesh::Real
operator()(
const libMesh::Point& p,
const libMesh::Real time=0 );
57 void init(libMesh::FEMSystem* ){};
64 libMesh::AutoPtr<libMesh::FunctionBase<libMesh::Number> >
mu;
74 const std::vector<libMesh::Point>& x = context.get_element_fe(0)->get_xyz();
76 const libMesh::Point& x_qp = x[qp];
78 libMesh::Number _mu_value = (*mu)(x_qp,context.time);
91 #endif // GRINS_CONSTANT_VISCOSITY_H
libMesh::AutoPtr< libMesh::FunctionBase< libMesh::Number > > mu
void init(libMesh::FEMSystem *)
ParameterUser base class. Utility methods for subclasses.
libMesh::Real operator()(AssemblyContext &context, unsigned int qp) const