#include <ConstantFaceBC.h>
Public Member Functions | |
ConstantFaceBC (int face, const T &constant, bool enforceConstantBoundary=false) | |
ConstantFaceBC (const ConstantFaceBC< Dim, T > &model) | |
template<class Target > | |
ConstantFaceBC (const ConstantFaceBC< Dim, T > &init, const Target &t) | |
ConstantFaceBC< Dim, T > & | operator= (const ConstantFaceBC< Dim, T > &rhs) |
T | constant () const |
Constant we set the boundary to. | |
void | setConstant (T newConstant) |
User may want to change the constant's value, e.g., for time-dependence. | |
int | face () const |
Face we operate on. | |
template<class Target > | |
void | operator() (const Target &t) const |
It represents a Dirichlet boundary condition on a logically rectilinear domain where the value on that face is a constant. The setConstant() function provides a means to have a time-dependent BC. A constructor switch allows the BC to enforce that the mesh-boundary value is zero; this affects only vertex-centered Field values/components because the boundary is defined to be the last vertex.
The T template parameter is the type of the constant value.
ConstantFaceBC< Dim, T >::ConstantFaceBC | ( | int | face, | |
const T & | constant, | |||
bool | enforceConstantBoundary = false | |||
) | [inline] |
ConstantFaceBC< Dim, T >::ConstantFaceBC | ( | const ConstantFaceBC< Dim, T > & | model | ) | [inline] |
ConstantFaceBC< Dim, T >::ConstantFaceBC | ( | const ConstantFaceBC< Dim, T > & | init, | |
const Target & | t | |||
) | [inline] |
References PAssert.
ConstantFaceBC<Dim, T>& ConstantFaceBC< Dim, T >::operator= | ( | const ConstantFaceBC< Dim, T > & | rhs | ) | [inline] |
T ConstantFaceBC< Dim, T >::constant | ( | ) | const [inline] |
Constant we set the boundary to.
void ConstantFaceBC< Dim, T >::setConstant | ( | T | newConstant | ) | [inline] |
User may want to change the constant's value, e.g., for time-dependence.
int ConstantFaceBC< Dim, T >::face | ( | ) | const [inline] |
Face we operate on.
void ConstantFaceBC< Dim, T >::operator() | ( | const Target & | t | ) | const [inline] |