Dirichlet Class Reference

#include <Dirichlet.hpp>

Inheritance diagram for Dirichlet:

Inheritance graph
[legend]
Collaboration diagram for Dirichlet:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Type { dirichlet, neumann, fourrier }
 allowed types. More...

Public Member Functions

real_t g (const TinyVector< 3, real_t > &x) const
std::string typeName () const
 Dirichlet (ConstReferenceCounting< ScalarFunctionBase > g, const size_t &unknownNumber)
 Dirichlet (const Dirichlet &d)
 ~Dirichlet ()
const size_t & unknownNumber () const
const PDECondition::Typetype () const

Private Attributes

ConstReferenceCounting
< ScalarFunctionBase
__g
 The function to impose as a Dirichlet Boundary Condition.

Friends

std::ostream & operator<< (std::ostream &os, const PDECondition &bc)


Detailed Description

Definition at line 36 of file Dirichlet.hpp.


Member Enumeration Documentation

enum PDECondition::Type [inherited]

allowed types.

Enumerator:
dirichlet 
neumann 
fourrier 

Definition at line 39 of file PDECondition.hpp.

00039             {
00040     dirichlet,
00041     neumann,
00042     fourrier
00043   };


Constructor & Destructor Documentation

Dirichlet::Dirichlet ( ConstReferenceCounting< ScalarFunctionBase g,
const size_t &  unknownNumber 
) [inline]

Constructor

Parameters:
g the dirichlet given function
unknownNumber the unknown function number

Definition at line 72 of file Dirichlet.hpp.

00074     : PDECondition(PDECondition::dirichlet,
00075                    unknownNumber),
00076       __g(g)
00077   {
00078     ;
00079   }

Dirichlet::Dirichlet ( const Dirichlet d  )  [inline]

Copy constructor

Parameters:
d a given dirichlet condition
Returns:

Definition at line 88 of file Dirichlet.hpp.

00089     : PDECondition(d),
00090       __g(d.__g)
00091   {
00092     ;
00093   }

Dirichlet::~Dirichlet (  )  [inline]

Destructor

Definition at line 99 of file Dirichlet.hpp.

00100   {
00101     ;
00102   }


Member Function Documentation

real_t Dirichlet::g ( const TinyVector< 3, real_t > &  x  )  const [inline]

std::string Dirichlet::typeName (  )  const [inline, virtual]

returns the name of the condition

Returns:
"Dirichlet"

Implements PDECondition.

Definition at line 61 of file Dirichlet.hpp.

00062   {
00063     return "Dirichlet";
00064   }

const size_t& PDECondition::unknownNumber (  )  const [inline, inherited]

Read-only access to the unknown number

Returns:
__unknownNumber

Definition at line 64 of file PDECondition.hpp.

References PDECondition::__unknownNumber.

Referenced by BoundaryConditionSurfaceMeshAssociation::addPDEBoundaryConditionAndMesh().

00065   {
00066     return __unknownNumber;
00067   }

const PDECondition::Type& PDECondition::type (  )  const [inline, inherited]

Read-only access to the type of condition

Returns:
__type

Definition at line 75 of file PDECondition.hpp.

References PDECondition::__type.

00076   {
00077     return __type;
00078   }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const PDECondition bc 
) [friend, inherited]

Writes the condition

Parameters:
os output stream
bc the condition to write
Returns:
os

Definition at line 115 of file PDECondition.hpp.

00116   {
00117     os << bc.typeName();
00118     return os;
00119   }


Member Data Documentation

The function to impose as a Dirichlet Boundary Condition.

Definition at line 41 of file Dirichlet.hpp.

Referenced by g().


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

Generated on Wed Nov 19 00:05:44 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6