GRINS-0.6.0
Public Member Functions | Protected Attributes | List of all members
GRINS::ZeroFluxBC Class Reference
Inheritance diagram for GRINS::ZeroFluxBC:
Inheritance graph
[legend]
Collaboration diagram for GRINS::ZeroFluxBC:
Collaboration graph
[legend]

Public Member Functions

 ZeroFluxBC ()
 
virtual ~ZeroFluxBC ()
 
virtual libMesh::Point value (const AssemblyContext &, const CachedValues &, const unsigned int)
 Returns the value of the implemented Neumann boundary condition. More...
 
virtual libMesh::Point derivative (const AssemblyContext &, const CachedValues &, const unsigned int)
 Returns the derivative with respect to the primary variable of the implemented Neumann boundary condition. More...
 
virtual libMesh::Point derivative (const AssemblyContext &, const CachedValues &, const unsigned int, const VariableIndex)
 If needed, returns the derivative with respect to other variables in the system. More...
 
virtual libMesh::Real normal_value (const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
 Returns the value of the implemented Neumann boundary condition. More...
 
virtual libMesh::Real normal_derivative (const AssemblyContext &context, const CachedValues &cache, const unsigned int qp)
 Returns the derivative with respect to the primary variable of the implemented Neumann boundary condition. More...
 
virtual libMesh::Real normal_derivative (const AssemblyContext &context, const CachedValues &cache, const unsigned int qp, const GRINS::VariableIndex jac_var)
 If needed, returns the derivative with respect to other variables in the system. More...
 
const std::vector< VariableIndex > & get_other_jac_vars ()
 

Protected Attributes

std::vector< VariableIndex_jac_vars
 

Detailed Description

Definition at line 57 of file test_thermally_driven_flow.C.

Constructor & Destructor Documentation

GRINS::ZeroFluxBC::ZeroFluxBC ( )
inline

Definition at line 61 of file test_thermally_driven_flow.C.

61 {};
virtual GRINS::ZeroFluxBC::~ZeroFluxBC ( )
inlinevirtual

Definition at line 62 of file test_thermally_driven_flow.C.

62 {};

Member Function Documentation

virtual libMesh::Point GRINS::ZeroFluxBC::derivative ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp 
)
inlinevirtual

Returns the derivative with respect to the primary variable of the implemented Neumann boundary condition.

This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp.

Reimplemented from GRINS::NeumannFuncObj.

Definition at line 67 of file test_thermally_driven_flow.C.

68  { return libMesh::Point(0.0,0.0,0.0); }
virtual libMesh::Point GRINS::ZeroFluxBC::derivative ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp,
const VariableIndex  jac_var 
)
inlinevirtual

If needed, returns the derivative with respect to other variables in the system.

By default, does nothing. User should reimplement is this is needed. This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp.

Reimplemented from GRINS::NeumannFuncObj.

Definition at line 70 of file test_thermally_driven_flow.C.

72  { return libMesh::Point(0.0,0.0,0.0); }
const std::vector< VariableIndex > & GRINS::NeumannFuncObj::get_other_jac_vars ( )
inherited

Definition at line 103 of file neumann_func_obj.C.

References GRINS::NeumannFuncObj::_jac_vars.

104  {
105  return _jac_vars;
106  }
std::vector< VariableIndex > _jac_vars
virtual libMesh::Real GRINS::NeumannFuncObj::normal_derivative ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp 
)
virtualinherited

Returns the derivative with respect to the primary variable of the implemented Neumann boundary condition.

This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp. Returns the normal component of the Neumann value. Only to be used when flux vector is formulated implicitly in terms of normal component. By default, does nothing since it's only applicable in special cases.

libMesh::Real GRINS::NeumannFuncObj::normal_derivative ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp,
const GRINS::VariableIndex  jac_var 
)
virtualinherited

If needed, returns the derivative with respect to other variables in the system.

By default, does nothing. User should reimplement is this is needed. This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp. Returns the normal component of the Neumann value. Only to be used when flux vector is formulated implicitly in terms of normal component. By default, does nothing since it's only applicable in special cases.

Definition at line 93 of file neumann_func_obj.C.

97  {
98  // By default, does nothing.
99  /* \todo Should we libmesh_error() instead?*/
100  return 0.0;
101  }
libMesh::Real GRINS::NeumannFuncObj::normal_value ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp 
)
virtualinherited

Returns the value of the implemented Neumann boundary condition.

This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp. Returns the normal component of the Neumann value. Only to be used when flux vector is formulated implicitly in terms of normal component. By default, does nothing since it's only applicable in special cases.

Definition at line 55 of file neumann_func_obj.C.

58  {
59  // By default, does nothing.
60  /* \todo Should we libmesh_error() instead?*/
61  return 0.0;
62  }
virtual libMesh::Point GRINS::ZeroFluxBC::value ( const AssemblyContext context,
const CachedValues cache,
const unsigned int  qp 
)
inlinevirtual

Returns the value of the implemented Neumann boundary condition.

This will leverage the FEMContext to get variable values and derivatives through the side_value, side_gradient, etc. interfaces, for each quadrature point qp.

Reimplemented from GRINS::NeumannFuncObj.

Definition at line 64 of file test_thermally_driven_flow.C.

65  { return libMesh::Point(0.0,0.0,0.0); }

Member Data Documentation

std::vector<VariableIndex> GRINS::NeumannFuncObj::_jac_vars
protectedinherited

Definition at line 105 of file neumann_func_obj.h.

Referenced by GRINS::NeumannFuncObj::get_other_jac_vars().


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

Generated on Mon Jun 22 2015 21:32:24 for GRINS-0.6.0 by  doxygen 1.8.9.1