#include <src/post_proc/PostProcBrokenMeshInMoabBase.hpp>
◆ generateReferenceElementMesh()
Implements MoFEM::PostProcGenerateRefMeshBase.
Definition at line 530 of file PostProcBrokenMeshInMoabBase.cpp.
536 <<
"Refinement for edges is not implemented";
539 auto set_gauss_pts = [&](std::map<EntityHandle, int> &little_map) {
547 gauss_pts.resize(2, nb_nodes,
false);
551 for (; nn != 2; ++nn) {
552 gauss_pts(0, nn) =
static_cast<double>(nn);
557 gauss_pts(0, nn) = 0.5;
564 auto set_ref_edges = [&](std::map<EntityHandle, int> &little_map) {
568 int nb_edges = level + 1;
575 ref_edges.resize(nb_edges, nb_nodes,
false);
577 for (
int ee = 0; ee != nb_edges; ++ee) {
579 for (; nn != 2; ++nn) {
580 ref_edges(ee, nn) = nb_nodes * ee + nn;
583 ref_edges(ee, nn) = nb_nodes * ee + 2;
590 auto set_shape_functions = [&]() {
594 const auto nb_gauss_pts = gauss_pts.size2();
595 shape_functions.resize(nb_gauss_pts, 2);
596 for (
int gg = 0; gg != nb_gauss_pts; ++gg) {
597 const double ksi = gauss_pts(0, gg);
608 std::map<EntityHandle, int> little_map;
609 CHKERR set_gauss_pts(little_map);
610 CHKERR set_ref_edges(little_map);
611 CHKERR set_shape_functions();
◆ PostProcGenerateRefMeshBase()
MoFEM::PostProcGenerateRefMeshBase::PostProcGenerateRefMeshBase |
The documentation for this struct was generated from the following files:
std::vector< MatrixDouble > levelShapeFunctions
std::vector< MatrixDouble > levelGaussPtsOnRefMesh
std::vector< ublas::matrix< int > > levelRef