NonCachedTetrahedralMesh.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #include "NonCachedTetrahedralMesh.hpp"
00037 #include "Exception.hpp"
00038
00039 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00040 void NonCachedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::RefreshJacobianCachedData()
00041 {
00042
00043 }
00044
00045 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00046 void NonCachedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetJacobianForElement(unsigned elementIndex, c_matrix<double, SPACE_DIM, SPACE_DIM>& rJacobian, double& rJacobianDeterminant) const
00047 {
00048 EXCEPTION("Use GetInverseJacobianForElement to retrieve Jacobian data instead.");
00049 }
00050
00051
00052 template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00053 void NonCachedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetInverseJacobianForElement(
00054 unsigned elementIndex,
00055 c_matrix<double, SPACE_DIM, ELEMENT_DIM>& rJacobian,
00056 double& rJacobianDeterminant,
00057 c_matrix<double, ELEMENT_DIM, SPACE_DIM>& rInverseJacobian) const
00058 {
00059 this->mElements[this->SolveElementMapping(elementIndex)]->CalculateInverseJacobian(rJacobian, rJacobianDeterminant, rInverseJacobian);
00060 }
00061
00062 template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00063 void NonCachedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetWeightedDirectionForElement(unsigned elementIndex, c_vector<double, SPACE_DIM>& rWeightedDirection, double& rJacobianDeterminant) const
00064 {
00065
00066 EXCEPTION("Probably redundant method.");
00067 }
00068
00069 template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
00070 void NonCachedTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>::GetWeightedDirectionForBoundaryElement(
00071 unsigned elementIndex,
00072 c_vector<double, SPACE_DIM>& rWeightedDirection,
00073 double& rJacobianDeterminant) const
00074 {
00075 this->mBoundaryElements[this->SolveBoundaryElementMapping(elementIndex)]->CalculateWeightedDirection(rWeightedDirection, rJacobianDeterminant );
00076 }
00077
00078
00080
00082
00083 template class NonCachedTetrahedralMesh<3,3>;
00084 template class NonCachedTetrahedralMesh<2,2>;
00085 template class NonCachedTetrahedralMesh<1,1>;
00086
00087
00088
00089 #include "SerializationExportWrapperForCpp.hpp"
00090 EXPORT_TEMPLATE_CLASS2(NonCachedTetrahedralMesh, 1, 1)
00091 EXPORT_TEMPLATE_CLASS2(NonCachedTetrahedralMesh, 2, 2)
00092 EXPORT_TEMPLATE_CLASS2(NonCachedTetrahedralMesh, 3, 3)