NSF Postdoctoral Research
A set of C++ code developed by Andrew E. Slaughter
SlaughterFEM::HeatEqBoundaryConvection Class Reference

A class for convection boundary conditions. More...

#include <fem/heat_eq/heat_eq_boundary.h>

Inheritance diagram for SlaughterFEM::HeatEqBoundaryConvection:
Collaboration diagram for SlaughterFEM::HeatEqBoundaryConvection:

List of all members.

Public Member Functions

 HeatEqBoundaryConvection ()
 Class constructor.
virtual Number h (const Point &p, const Real t)
 A virtual function for returning the convection term, h.
virtual Number Tinf (const Point &p, const Real t)
 A virtual function for returning the convection term, Tinf.

Public Attributes

Number h_constant
 A constant h term, used in the default operation.
Number Tinf_constant
 A constant Tinf term, used in the default operation.

Protected Member Functions

virtual void value (DenseVector< Number > &output, const Point &p, const Real t)
 Computes and returns the convective term.

Detailed Description

A class for convection boundary conditions.

Examples:
fem/examples/example2.cpp.

Constructor & Destructor Documentation

Class constructor.

Creates a convection boundary conditions class, the constructor specifies the type as "convection". It also sets h_constant and Tinf_constant to zero.


Member Function Documentation

Number HeatEqBoundaryConvection::h ( const Point &  p,
const Real  t 
) [virtual]

A virtual function for returning the convection term, h.

By default this function returns a constant value defined in the h_constant attribute. If constant h is to be used then only h_constant must be changed (it is zero by default). To create a non-constant h a derived class should be created that inherts this class. This h() function should then be defined in this new class to return the desired value.

Reimplemented from SlaughterFEM::HeatEqBoundaryBase.

Number HeatEqBoundaryConvection::Tinf ( const Point &  p,
const Real  t 
) [virtual]

A virtual function for returning the convection term, Tinf.

By default this function returns a constant value defined in the Tinf_constant attribute. If constant Tinf is to be used then only Tinf_constant must be changed (it is zero by default). To create a non-constant Tinf a derived class should be created that inherts this class. This Tinf() function should then be defined in this new class to return the desired value.

Reimplemented from SlaughterFEM::HeatEqBoundaryBase.

virtual void SlaughterFEM::HeatEqBoundaryConvection::value ( DenseVector< Number > &  output,
const Point &  p,
const Real  t 
) [inline, protected, virtual]

Computes and returns the convective term.

This returns the convective term ( \(h \cdot T_{\infty}\)) value that is computed by the h and Tinf functions that may be customized. This member is used by the HeatEq class thus is protected.

Parameters:
outputA reference to the vector that stores the stores the computed flux
pA libMesh point
tThe time
See also:
Tinf
h

Implements SlaughterFEM::EqBoundaryBase.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs