36 #include "PdeAndBoundaryConditions.hpp"
38 template<
unsigned DIM>
41 bool isNeumannBoundaryCondition,
43 bool deleteMemberPointersInDestructor)
45 mpBoundaryCondition(pBoundaryCondition),
46 mIsNeumannBoundaryCondition(isNeumannBoundaryCondition),
48 mDeleteMemberPointersInDestructor(deleteMemberPointersInDestructor),
49 mDependentVariableName(
"")
57 template<
unsigned DIM>
61 if (mDeleteMemberPointersInDestructor)
64 delete mpBoundaryCondition;
70 template<
unsigned DIM>
76 template<
unsigned DIM>
79 return mpBoundaryCondition;
82 template<
unsigned DIM>
88 template<
unsigned DIM>
94 template<
unsigned DIM>
100 template<
unsigned DIM>
103 return mIsNeumannBoundaryCondition;
106 template<
unsigned DIM>
112 template<
unsigned DIM>
121 template<
unsigned DIM>
124 assert(HasAveragedSourcePde());
128 template<
unsigned DIM>
131 mDependentVariableName = rName;
134 template<
unsigned DIM>
137 return mDependentVariableName;
void SetDependentVariableName(const std::string &rName)
bool IsNeumannBoundaryCondition()
void SetSolution(Vec solution)
~PdeAndBoundaryConditions()
bool HasAveragedSourcePde()
#define EXPORT_TEMPLATE_CLASS_SAME_DIMS(CLASS)
std::string & rGetDependentVariableName()
PdeAndBoundaryConditions(AbstractLinearEllipticPde< DIM, DIM > *pPde=NULL, AbstractBoundaryCondition< DIM > *pBoundaryCondition=NULL, bool isNeumannBoundaryCondition=true, Vec solution=NULL, bool deleteMemberPointersInDestructor=false)
AbstractBoundaryCondition< DIM > * GetBoundaryCondition() const
AbstractLinearEllipticPde< DIM, DIM > * GetPde()
void SetUpSourceTermsForAveragedSourcePde(TetrahedralMesh< DIM, DIM > *pMesh, std::map< CellPtr, unsigned > *pCellPdeElementMap=NULL)