31void createUniformMesh(
fe::Mesh *mesh_p,
size_t dim, std::pair<std::vector<double>, std::vector<double>> box, std::vector<size_t> nGrid);
64 const std::vector<util::Point> &xRef,
65 const std::vector<util::Point> &u,
66 std::vector<util::Point> &xQuadCur,
67 size_t iNodeStart = 0,
68 size_t iQuadStart = 0,
69 size_t quadOrder = 1);
98 const std::vector<util::Point> & xRef,
99 const std::vector<util::Point> &u,
101 std::vector<util::SymMatrix3> &strain,
102 std::vector<util::SymMatrix3> &stress,
103 size_t iNodeStart = 0,
104 size_t iStrainStart = 0,
108 bool computeStress =
false,
109 size_t quadOrder = 1);
128 const std::vector<util::Point> & xRef,
129 const std::vector<util::Point> &u,
130 const std::vector<util::SymMatrix3> &stress,
131 double &maxShearStress,
134 size_t iNodeStart = 0,
135 size_t iStrainStart = 0,
136 size_t quadOrder = 1);
Collection of methods and data related to finite element and mesh.
void getMaxShearStressAndLoc(const fe::Mesh *mesh_p, const std::vector< util::Point > &xRef, const std::vector< util::Point > &u, const std::vector< util::SymMatrix3 > &stress, double &maxShearStress, util::Point &maxShearStressLocRef, util::Point &maxShearStressLocCur, size_t iNodeStart=0, size_t iStrainStart=0, size_t quadOrder=1)
Get location where maximum of specified component of stress occurs in this particle.
void getStrainStress(const fe::Mesh *mesh_p, const std::vector< util::Point > &xRef, const std::vector< util::Point > &u, bool isPlaneStrain, std::vector< util::SymMatrix3 > &strain, std::vector< util::SymMatrix3 > &stress, size_t iNodeStart=0, size_t iStrainStart=0, double nu=0., double lambda=0., double mu=0., bool computeStress=false, size_t quadOrder=1)
Strain and stress at quadrature points in the mesh.
void createUniformMesh(fe::Mesh *mesh_p, size_t dim, std::pair< std::vector< double >, std::vector< double > > box, std::vector< size_t > nGrid)
Creates uniform mesh for rectangle/cuboid domain.
void getCurrentQuadPoints(const fe::Mesh *mesh_p, const std::vector< util::Point > &xRef, const std::vector< util::Point > &u, std::vector< util::Point > &xQuadCur, size_t iNodeStart=0, size_t iQuadStart=0, size_t quadOrder=1)
Get current location of quadrature points of elements in the mesh. This function expects mesh has ele...
A structure to represent 3d vectors.