diff --git a/Code/Source/solver/VtkData.cpp b/Code/Source/solver/VtkData.cpp index 120753651..0c7e6fb6b 100644 --- a/Code/Source/solver/VtkData.cpp +++ b/Code/Source/solver/VtkData.cpp @@ -340,6 +340,9 @@ void VtkVtuData::VtkVtuDataImpl::set_connectivity(const int nsd, const Array& w, Array& xi) -> void { + for (int i = 0; i < nG; i++) { + w(i) = 1.0 / 6.0; + } + double s = 2.0 / 3.0; + double t = 1.0 / 6.0; + double uz = 1.0 / sqrt(3.0); + double lz = -1.0 / sqrt(3.0); + xi(0,0) = s; xi(1,0) = t; xi(2,0) = lz; + xi(0,1) = t; xi(1,1) = s; xi(2,1) = lz; + xi(0,2) = t; xi(1,2) = t; xi(2,2) = lz; + xi(0,3) = s; xi(1,3) = t; xi(2,3) = uz; + xi(0,4) = t; xi(1,4) = s; xi(2,4) = uz; + xi(0,5) = t; xi(1,5) = t; xi(2,5) = uz; + } + }, }; diff --git a/Code/Source/solver/nn_elem_props.h b/Code/Source/solver/nn_elem_props.h index 615555117..a96563b16 100644 --- a/Code/Source/solver/nn_elem_props.h +++ b/Code/Source/solver/nn_elem_props.h @@ -61,7 +61,7 @@ SetElementPropsMapType set_3d_element_props = { mesh.nG = 6; mesh.vtkType = 13; mesh.nEf = 3; - mesh.lShpF = false; + mesh.lShpF = true; } }, diff --git a/Code/Source/solver/read_msh.cpp b/Code/Source/solver/read_msh.cpp index 1b6717bfb..822b4aefa 100644 --- a/Code/Source/solver/read_msh.cpp +++ b/Code/Source/solver/read_msh.cpp @@ -758,12 +758,10 @@ void check_wedge_conn(mshType& mesh) if (sn == -1) { utils::swap( mesh.gIEN(0,e), mesh.gIEN(1,e)); - a = 4; - b = 5; - if (e == 0) { - //std::cout << "[check_wedge_conn] Reorder element connectivity." << std::endl; - } - } else if (sn == 0) { + a = 3; + b = 4; + + } else if (sn == 0) { throw std::runtime_error("Element " + std::to_string(e) + " is distorted."); }