#include <CellBasedPdeHandlerOnCuboid.hpp>
Inherits CellBasedPdeHandler< DIM >.
Public Member Functions | |
CellBasedPdeHandlerOnCuboid (AbstractCellPopulation< DIM > *pCellPopulation, bool deleteMemberPointersInDestructor=false) | |
virtual | ~CellBasedPdeHandlerOnCuboid () |
std::auto_ptr < BoundaryConditionsContainer < DIM, DIM, 1 > > | ConstructBoundaryConditionsContainer (PdeAndBoundaryConditions< DIM > *pPdeAndBc, TetrahedralMesh< DIM, DIM > *pMesh) |
virtual void | OutputParameters (out_stream &rParamsFile) |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &archive, const unsigned int version) |
Private Attributes | |
std::vector < ConstBoundaryCondition< DIM > * > | mConstBoundaryConditions |
Friends | |
class | TestCellBasedPdeHandler |
class | TestOffLatticeSimulationWithPdes |
class | TestOnLatticeSimulationWithPdes |
class | boost::serialization::access |
A helper class, containing code for handling the numerical solution of one or more PDEs (using the finite element method) associated with a cell-based simulation object.
By letting AbstractCellBasedSimulation have a pointer to an object of this type as a member variable, we separate out all PDE-related functionality into this class, and thus obviate the need for specialized cell-based simulation subclasses.
Definition at line 56 of file CellBasedPdeHandlerOnCuboid.hpp.
CellBasedPdeHandlerOnCuboid< DIM >::CellBasedPdeHandlerOnCuboid | ( | AbstractCellPopulation< DIM > * | pCellPopulation, | |
bool | deleteMemberPointersInDestructor = false | |||
) | [inline] |
Constructor.
pCellPopulation | pointer to a cell population | |
deleteMemberPointersInDestructor | whether to delete member pointers in the destructor (defaults to false) |
Definition at line 40 of file CellBasedPdeHandlerOnCuboid.cpp.
CellBasedPdeHandlerOnCuboid< DIM >::~CellBasedPdeHandlerOnCuboid | ( | ) | [inline, virtual] |
Destructor.
Definition at line 47 of file CellBasedPdeHandlerOnCuboid.cpp.
References CellBasedPdeHandlerOnCuboid< DIM >::mConstBoundaryConditions.
std::auto_ptr< BoundaryConditionsContainer< DIM, DIM, 1 > > CellBasedPdeHandlerOnCuboid< DIM >::ConstructBoundaryConditionsContainer | ( | PdeAndBoundaryConditions< DIM > * | pPdeAndBc, | |
TetrahedralMesh< DIM, DIM > * | pMesh | |||
) | [inline, virtual] |
Overridden ConstructBoundaryConditionsContainer method to implement different boundary conditions on each face of the cuboid.
pPdeAndBc | a pointer to the PDE and BCs | |
pMesh | the mesh on which to solve the PDE |
Reimplemented from CellBasedPdeHandler< DIM >.
Definition at line 57 of file CellBasedPdeHandlerOnCuboid.cpp.
References AbstractMesh< ELEMENT_DIM, SPACE_DIM >::CalculateBoundingBox(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetBoundaryElementIteratorBegin(), AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM >::GetBoundaryElementIteratorEnd(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetBoundaryNodeIteratorBegin(), AbstractMesh< ELEMENT_DIM, SPACE_DIM >::GetBoundaryNodeIteratorEnd(), CellBasedPdeHandlerOnCuboid< DIM >::mConstBoundaryConditions, ChasteCuboid< SPACE_DIM >::rGetLowerCorner(), and ChasteCuboid< SPACE_DIM >::rGetUpperCorner().
void CellBasedPdeHandlerOnCuboid< DIM >::OutputParameters | ( | out_stream & | rParamsFile | ) | [inline, virtual] |
Output parameters to file.
rParamsFile | the file stream to which the parameters are output |
Reimplemented from CellBasedPdeHandler< DIM >.
Definition at line 189 of file CellBasedPdeHandlerOnCuboid.cpp.
void CellBasedPdeHandlerOnCuboid< DIM >::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the member variables.
archive | the archive | |
version | the current version of this class |
Reimplemented from CellBasedPdeHandler< DIM >.
Definition at line 77 of file CellBasedPdeHandlerOnCuboid.hpp.
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from CellBasedPdeHandler< DIM >.
Definition at line 69 of file CellBasedPdeHandlerOnCuboid.hpp.
std::vector<ConstBoundaryCondition<DIM>* > CellBasedPdeHandlerOnCuboid< DIM >::mConstBoundaryConditions [private] |
Container for pointers to boundary conditions that are passed into the boundary condition containers.
Definition at line 66 of file CellBasedPdeHandlerOnCuboid.hpp.
Referenced by CellBasedPdeHandlerOnCuboid< DIM >::ConstructBoundaryConditionsContainer(), and CellBasedPdeHandlerOnCuboid< DIM >::~CellBasedPdeHandlerOnCuboid().