#include <Dirichlet.hpp>


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::Type & | type () 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) |
Definition at line 36 of file Dirichlet.hpp.
enum PDECondition::Type [inherited] |
| Dirichlet::Dirichlet | ( | ConstReferenceCounting< ScalarFunctionBase > | g, | |
| const size_t & | unknownNumber | |||
| ) | [inline] |
Constructor
| 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
| d | a given dirichlet condition |
Definition at line 88 of file Dirichlet.hpp.
00089 : PDECondition(d), 00090 __g(d.__g) 00091 { 00092 ; 00093 }
| Dirichlet::~Dirichlet | ( | ) | [inline] |
| real_t Dirichlet::g | ( | const TinyVector< 3, real_t > & | x | ) | const [inline] |
evaluates __g at the position x
| x | evaluation point |
Definition at line 51 of file Dirichlet.hpp.
References __g.
Referenced by BoundaryConditionCommonFEMDiscretization< MeshType, TypeOfDiscretization >::__setSecondMemberDirichlet(), BoundaryConditionDiscretizationPenalty< MeshType, TypeOfDiscretization >::__SetSecondMemberDirichlet< VectorType >::eval(), and BoundaryConditionDiscretizationElimination< MeshType, TypeOfDiscretization >::__SetSecondMemberDirichlet::eval().
00052 { 00053 return (*__g)(x); 00054 }
| std::string Dirichlet::typeName | ( | ) | const [inline, virtual] |
returns the name of the condition
Implements PDECondition.
Definition at line 61 of file Dirichlet.hpp.
| const size_t& PDECondition::unknownNumber | ( | ) | const [inline, inherited] |
Read-only access to the unknown number
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
Definition at line 75 of file PDECondition.hpp.
References PDECondition::__type.
00076 { 00077 return __type; 00078 }
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const PDECondition & | bc | |||
| ) | [friend, inherited] |
Writes the condition
| os | output stream | |
| bc | the condition to write |
Definition at line 115 of file PDECondition.hpp.
00116 { 00117 os << bc.typeName(); 00118 return os; 00119 }
The function to impose as a Dirichlet Boundary Condition.
Definition at line 41 of file Dirichlet.hpp.
Referenced by g().
1.5.6