NSF Postdoctoral Research
A set of C++ code developed by Andrew E. Slaughter
|
A class for flux boundary conditions. More...
#include <fem/heat_eq/heat_eq_boundary.h>
Public Member Functions | |
HeatEqBoundaryNeumann () | |
Class constructor. | |
virtual Real | q (const Point &p, const Real t) |
A virtual function for returning the flux. | |
Public Attributes | |
Number | q_constant |
A constant flux value, used in default operation. | |
Protected Member Functions | |
void | value (DenseVector< Number > &output, const Point &p, const Real t) |
Computes and returns the heat flux. |
A class for flux boundary conditions.
Class constructor.
Creates a neumann boundary conditions class, the constructor specifies the type as "neumann". It also sets q_constant to zero.
Number HeatEqBoundaryNeumann::q | ( | const Point & | p, |
const Real | t | ||
) | [virtual] |
A virtual function for returning the flux.
By default this function returns a constant value defined in the q_constant attribute. If constant flux is to be used then only q_constant must be changed (it is zero by default). To create a non-constant flux a derived class should be created that inherts this class. This q() function should then be defined in this new class to return the desired flux value.
Reimplemented from SlaughterFEM::HeatEqBoundaryBase.
void SlaughterFEM::HeatEqBoundaryNeumann::value | ( | DenseVector< Number > & | output, |
const Point & | p, | ||
const Real | t | ||
) | [inline, protected, virtual] |
Computes and returns the heat flux.
This returns the flux value that is computed by the q function that may be customized. This member is used by the HeatEq class thus is protected.
output | A reference to the vector that stores the stores the computed flux |
p | A libMesh point |
t | The time |
Implements SlaughterFEM::EqBoundaryBase.