NSF Postdoctoral Research
A set of C++ code developed by Andrew E. Slaughter
|
A base class for equation boundary conditions for integration with EqBase class. More...
#include <fem/equation_systems/eq_boundary_base.h>
Public Member Functions | |
EqBoundaryBase (std::string the_type) | |
The constructor for the base class. | |
virtual void | value (DenseVector< Number > &output, const Point &, const Real)=0 |
A pure virtual function for returning the desired value. | |
Public Attributes | |
int | id |
The boundary id. | |
const std::string | type |
The name of the boundary. | |
void(* | fptr )(DenseVector< Number > &, const Point &, const Real) |
A function pointer (libMesh required format) |
A base class for equation boundary conditions for integration with EqBase class.
Provides basic format for defining a boundary conditions for application to the Eq_base class. This class is used to provide uniform access for all types of boundaries that are derived from the base.
EqBoundaryBase::EqBoundaryBase | ( | std::string | the_type | ) |
The constructor for the base class.
the_type | A string that indicates the type of boundary |
Note that if the inherited class is to be recognized by the EqBase class as a dirichlet condition this value MUST be "dirichlet" as done with the HeatEqBoundaryDirichlet class.
virtual void SlaughterFEM::EqBoundaryBase::value | ( | DenseVector< Number > & | output, |
const Point & | , | ||
const Real | |||
) | [pure virtual] |
A pure virtual function for returning the desired value.
For any class derived from this base class the value function must be defined. The value returned through the DenseVector reference is used by the Eq_base class when applying the boundary conditions.
Implemented in SlaughterFEM::HeatEqBoundaryConvection, SlaughterFEM::HeatEqBoundaryNeumann, and SlaughterFEM::HeatEqBoundaryDirichlet.