FunctionalBoundaryCondition< SPACE_DIM > Class Template Reference

#include <FunctionalBoundaryCondition.hpp>

Inheritance diagram for FunctionalBoundaryCondition< SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for FunctionalBoundaryCondition< SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 FunctionalBoundaryCondition (double(*func)(const ChastePoint< SPACE_DIM > &x))
double GetValue (const ChastePoint< SPACE_DIM > &x) const

Private Attributes

double(* mFunction )(const ChastePoint< SPACE_DIM > &x)


Detailed Description

template<unsigned SPACE_DIM>
class FunctionalBoundaryCondition< SPACE_DIM >

A boundary condition that takes a function pointer in its constructor, and evaluates the function to determine the value of the condition at a given point.

Definition at line 39 of file FunctionalBoundaryCondition.hpp.


Constructor & Destructor Documentation

template<unsigned SPACE_DIM>
FunctionalBoundaryCondition< SPACE_DIM >::FunctionalBoundaryCondition ( double(*)(const ChastePoint< SPACE_DIM > &x)  func  )  [inline]

Typical use: pBoundaryCondition = new FunctionalBoundaryCondition(&function_name);

Parameters:
func Pointer to a function to be used for evaluating this boundary condition.

Definition at line 32 of file FunctionalBoundaryCondition.cpp.


Member Function Documentation

template<unsigned SPACE_DIM>
double FunctionalBoundaryCondition< SPACE_DIM >::GetValue ( const ChastePoint< SPACE_DIM > &  x  )  const [inline, virtual]

Get the value of the boundary condition at a given point.

Parameters:
x The point at which to evaluate the boundary condition.

Implements AbstractBoundaryCondition< SPACE_DIM >.

Definition at line 38 of file FunctionalBoundaryCondition.cpp.


The documentation for this class was generated from the following files:

Generated on Wed Mar 18 12:52:31 2009 for Chaste by  doxygen 1.5.5