GRINS-0.6.0
|
Class to hold typical boundary condition methods. More...
#include <boundary_conditions.h>
Public Member Functions | |
BoundaryConditions () | |
~BoundaryConditions () | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann (AssemblyContext &context, const VariableIndex var, const libMesh::Real sign, const typename libMesh::TensorTools::IncrementRank< FEShape >::type &value) const |
Applies Neumann boundary conditions for the constant case. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_axisymmetric (AssemblyContext &context, const VariableIndex var, const libMesh::Real sign, const typename libMesh::TensorTools::IncrementRank< FEShape >::type &value) const |
Applies Neumann boundary conditions for the constant case. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_normal (AssemblyContext &context, const VariableIndex var, const libMesh::Real sign, const FEShape &value) const |
Applies Neumann boundary conditions for the constant case. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_normal_axisymmetric (AssemblyContext &context, const VariableIndex var, const libMesh::Real sign, const FEShape &value) const |
Applies Neumann boundary conditions for the constant case. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann (AssemblyContext &context, const CachedValues &cache, const bool request_jacobian, const VariableIndex var, const libMesh::Real sign, std::tr1::shared_ptr< NeumannFuncObj > neumann_func) const |
Applies Neumann boundary conditions using a user-supplied function. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_axisymmetric (AssemblyContext &context, const CachedValues &cache, const bool request_jacobian, const VariableIndex var, const libMesh::Real sign, const std::tr1::shared_ptr< NeumannFuncObj > neumann_func) const |
Applies Neumann boundary conditions using a user-supplied function. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_normal (AssemblyContext &context, const CachedValues &cache, const bool request_jacobian, const VariableIndex var, const libMesh::Real sign, std::tr1::shared_ptr< NeumannFuncObj > neumann_func) const |
Applies Neumann boundary conditions using a user-supplied function. More... | |
template<typename FEShape = libMesh::Real> | |
void | apply_neumann_normal_axisymmetric (AssemblyContext &context, const CachedValues &cache, const bool request_jacobian, const VariableIndex var, const libMesh::Real sign, std::tr1::shared_ptr< NeumannFuncObj > neumann_func) const |
Applies Neumann boundary conditions using a user-supplied function. More... | |
template<typename FEShape = libMesh::Real> | |
void | pin_value (AssemblyContext &context, const CachedValues &cache, const bool request_jacobian, const VariableIndex var, const double value, const libMesh::Point &pin_location, const double penalty=1.0) |
The idea here is to pin a variable to a particular value if there is a null space - e.g. More... | |
Class to hold typical boundary condition methods.
This class holds functions to apply generic versions of Dirichlet and Neumann boundary conditions.
Definition at line 48 of file boundary_conditions.h.
GRINS::BoundaryConditions::BoundaryConditions | ( | ) |
Definition at line 43 of file boundary_conditions.C.
GRINS::BoundaryConditions::~BoundaryConditions | ( | ) |
Definition at line 48 of file boundary_conditions.C.
void GRINS::BoundaryConditions::apply_neumann | ( | AssemblyContext & | context, |
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
const typename libMesh::TensorTools::IncrementRank< FEShape >::type & | value | ||
) | const |
Applies Neumann boundary conditions for the constant case.
Definition at line 54 of file boundary_conditions.C.
Referenced by GRINS::HeatTransferBCHandling::user_apply_neumann_bcs().
void GRINS::BoundaryConditions::apply_neumann | ( | AssemblyContext & | context, |
const CachedValues & | cache, | ||
const bool | request_jacobian, | ||
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
std::tr1::shared_ptr< NeumannFuncObj > | neumann_func | ||
) | const |
Applies Neumann boundary conditions using a user-supplied function.
This function must also be aware of the Jacobian with respect to other variables.
Definition at line 201 of file boundary_conditions.C.
void GRINS::BoundaryConditions::apply_neumann_axisymmetric | ( | AssemblyContext & | context, |
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
const typename libMesh::TensorTools::IncrementRank< FEShape >::type & | value | ||
) | const |
Applies Neumann boundary conditions for the constant case.
Definition at line 160 of file boundary_conditions.C.
Referenced by GRINS::AxisymmetricHeatTransferBCHandling::user_apply_neumann_bcs(), and GRINS::HeatTransferBCHandling::user_apply_neumann_bcs().
void GRINS::BoundaryConditions::apply_neumann_axisymmetric | ( | AssemblyContext & | context, |
const CachedValues & | cache, | ||
const bool | request_jacobian, | ||
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
const std::tr1::shared_ptr< NeumannFuncObj > | neumann_func | ||
) | const |
Applies Neumann boundary conditions using a user-supplied function.
This function must also be aware of the Jacobian with respect to other variables.
Definition at line 472 of file boundary_conditions.C.
void GRINS::BoundaryConditions::apply_neumann_normal | ( | AssemblyContext & | context, |
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
const FEShape & | value | ||
) | const |
Applies Neumann boundary conditions for the constant case.
This method is for the case where Neumann boundary condition is not in terms of a flux vector, but rather only the normal component.
Definition at line 88 of file boundary_conditions.C.
Referenced by GRINS::SolidMechanicsBCHandling::user_apply_neumann_bcs().
void GRINS::BoundaryConditions::apply_neumann_normal | ( | AssemblyContext & | context, |
const CachedValues & | cache, | ||
const bool | request_jacobian, | ||
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
std::tr1::shared_ptr< NeumannFuncObj > | neumann_func | ||
) | const |
Applies Neumann boundary conditions using a user-supplied function.
This method is for the case where Neumann boundary condition is not in terms of a flux vector, but rather only the normal component. This function must also be aware of the Jacobian with respect to other variables.
Definition at line 291 of file boundary_conditions.C.
void GRINS::BoundaryConditions::apply_neumann_normal_axisymmetric | ( | AssemblyContext & | context, |
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
const FEShape & | value | ||
) | const |
Applies Neumann boundary conditions for the constant case.
This method is for the case where Neumann boundary condition is not in terms of a flux vector, but rather only the normal component.
Definition at line 120 of file boundary_conditions.C.
void GRINS::BoundaryConditions::apply_neumann_normal_axisymmetric | ( | AssemblyContext & | context, |
const CachedValues & | cache, | ||
const bool | request_jacobian, | ||
const VariableIndex | var, | ||
const libMesh::Real | sign, | ||
std::tr1::shared_ptr< NeumannFuncObj > | neumann_func | ||
) | const |
Applies Neumann boundary conditions using a user-supplied function.
This method is for the case where Neumann boundary condition is not in terms of a flux vector, but rather only the normal component. This function must also be aware of the Jacobian with respect to other variables.
Definition at line 378 of file boundary_conditions.C.
void GRINS::BoundaryConditions::pin_value | ( | AssemblyContext & | context, |
const CachedValues & | cache, | ||
const bool | request_jacobian, | ||
const VariableIndex | var, | ||
const double | value, | ||
const libMesh::Point & | pin_location, | ||
const double | penalty = 1.0 |
||
) |
The idea here is to pin a variable to a particular value if there is a null space - e.g.
pressure for IncompressibleNavierStokes.
Definition at line 569 of file boundary_conditions.C.