36 #include "MonodomainProblem.hpp"
39 #include "ReplicatableVector.hpp"
40 #include "MonodomainSolver.hpp"
41 #include "OperatorSplittingMonodomainSolver.hpp"
44 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
48 return mpMonodomainTissue;
51 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
54 assert(mpMonodomainTissue);
69 this->mpBoundaryConditionsContainer.get());
75 this->mpBoundaryConditionsContainer.get());
79 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
82 mpMonodomainTissue(NULL)
86 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
89 mpMonodomainTissue(NULL)
93 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
98 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
101 assert(mpMonodomainTissue != NULL);
102 return mpMonodomainTissue;
105 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
110 std::cout <<
"Solved to time " << time <<
"\n" << std::flush;
115 VecMax( this->mSolution, PETSC_NULL, &v_max );
116 VecMin( this->mSolution, PETSC_NULL, &v_min );
120 std::cout <<
" V = " <<
"[" <<v_min <<
", " << v_max <<
"]" <<
"\n" << std::flush;
124 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
131 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
134 this->mpWriter->PutUnlimitedVariable(time);
135 this->mpWriter->PutVector(this->mVoltageColumnId, voltageVec);
MonodomainTissue< ELEMENT_DIM, SPACE_DIM > * GetMonodomainTissue()
void WriteInfo(double time)
virtual ~MonodomainProblem()
virtual void WriteOneStep(double time, Vec voltageVec)
bool GetUseStateVariableInterpolation() const
virtual void DefineWriterColumns(bool extending)
#define EXPORT_TEMPLATE_CLASS2(CLASS, E, S)
virtual void DefineWriterColumns(bool extending)
AbstractCardiacTissue< ELEMENT_DIM, SPACE_DIM > * CreateCardiacTissue()
AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, 1 > * CreateSolver()
void WriteExtraVariablesOneStep()
static HeartConfig * Instance()
void DefineExtraVariablesWriterColumns(bool extending)