36 #include "SimpleLinearParabolicSolver.hpp" 38 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
40 c_vector<double, ELEMENT_DIM+1>& rPhi,
41 c_matrix<double, SPACE_DIM, ELEMENT_DIM+1>& rGradPhi,
43 c_vector<double,1>& rU,
44 c_matrix<double,1,SPACE_DIM>& rGradU,
47 c_matrix<double, SPACE_DIM, SPACE_DIM> pde_diffusion_term = mpParabolicPde->ComputeDiffusionTerm(rX, pElement);
49 return prod( trans(rGradPhi), c_matrix<double, SPACE_DIM, ELEMENT_DIM+1>(prod(pde_diffusion_term, rGradPhi)) )
53 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
55 c_vector<double, ELEMENT_DIM+1>& rPhi,
56 c_matrix<double, SPACE_DIM, ELEMENT_DIM+1>& rGradPhi,
58 c_vector<double,1>& rU,
59 c_matrix<double,1,SPACE_DIM>& rGradU,
62 return (mpParabolicPde->ComputeSourceTerm(rX, rU(0), pElement)
66 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
AbstractLinearParabolicPde< ELEMENT_DIM, SPACE_DIM > * mpParabolicPde
static double GetPdeTimeStepInverse()
SimpleLinearParabolicSolver(AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, AbstractLinearParabolicPde< ELEMENT_DIM, SPACE_DIM > *pPde, BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, 1 > *pBoundaryConditions)
virtual c_matrix< double, 1 *(ELEMENT_DIM+1), 1 *(ELEMENT_DIM+1)> ComputeMatrixTerm(c_vector< double, ELEMENT_DIM+1 > &rPhi, c_matrix< double, SPACE_DIM, ELEMENT_DIM+1 > &rGradPhi, ChastePoint< SPACE_DIM > &rX, c_vector< double, 1 > &rU, c_matrix< double, 1, SPACE_DIM > &rGradU, Element< ELEMENT_DIM, SPACE_DIM > *pElement)
virtual c_vector< double, 1 *(ELEMENT_DIM+1)> ComputeVectorTerm(c_vector< double, ELEMENT_DIM+1 > &rPhi, c_matrix< double, SPACE_DIM, ELEMENT_DIM+1 > &rGradPhi, ChastePoint< SPACE_DIM > &rX, c_vector< double, 1 > &rU, c_matrix< double, 1, SPACE_DIM > &rGradU, Element< ELEMENT_DIM, SPACE_DIM > *pElement)