// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard // U.S. Geological Survey // // {LicenseText} // // ====================================================================== // /* Original mesh * * Cells are 0-1 and vertices are 2-13. * * 2,3,4,5 -------- 6,7,8,9 -------- 10,11,12,13 * * ^^^^^^^ Vertices forming fault * * After adding cohesive elements * * Cells are 0-1,16 and vertices are 4-15. * * 2,3,4,5 -------- 6,7,8,9 -- 14,16,18,20 -------- 10,11,12,13 * 15,17,19,21 * ^^^^^^^^^^^^^^^^^^^^^^ Cohesive element * */ #include "CohesiveDataHex8Lagrange.hh" const int pylith::faults::CohesiveDataHex8Lagrange::_numVertices = 20; const int pylith::faults::CohesiveDataHex8Lagrange::_spaceDim = 3; const int pylith::faults::CohesiveDataHex8Lagrange::_numCells = 3; const int pylith::faults::CohesiveDataHex8Lagrange::_cellDim = 3; const double pylith::faults::CohesiveDataHex8Lagrange::_vertices[] = { -2.0, -1.0, -1.0, -2.0, 1.0, -1.0, -2.0, -1.0, 1.0, -2.0, 1.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0, -1.0, 0.0, -1.0, 1.0, 0.0, 1.0, 1.0, 2.0, -1.0, -1.0, 2.0, 1.0, -1.0, 2.0, -1.0, 1.0, 2.0, 1.0, 1.0, 0.0, -1.0, -1.0, 0.0, -1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0, -1.0, 0.0, -1.0, 1.0, 0.0, -1.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 1.0 }; const int pylith::faults::CohesiveDataHex8Lagrange::_numCorners[] = { 8, 8, 12 }; const int pylith::faults::CohesiveDataHex8Lagrange::_cells[] = { 2, 3, 5, 4, 6, 7, 9, 8, 14, 16, 20, 18, 10, 11, 13, 12, 6, 7, 9, 8, 14, 16, 20, 18, 15, 17, 21, 19 }; const int pylith::faults::CohesiveDataHex8Lagrange::_materialIds[] = { 0, 0, 1 }; const int pylith::faults::CohesiveDataHex8Lagrange::_numGroups = 2; const int pylith::faults::CohesiveDataHex8Lagrange::_groupSizes[] = { 12, 8 }; const int pylith::faults::CohesiveDataHex8Lagrange::_groups[] = { 6, 7, 8, 9, 14, 15, 16, 17, 18, 19, 20, 21, 4, 5, 8, 9, 12, 13, 18, 20 }; const char* pylith::faults::CohesiveDataHex8Lagrange::_groupNames[] = { "fault", "output" }; const char* pylith::faults::CohesiveDataHex8Lagrange::_groupTypes[] = { "vertex", "vertex" }; const char* pylith::faults::CohesiveDataHex8Lagrange::_filename = "data/hex8.mesh"; pylith::faults::CohesiveDataHex8Lagrange::CohesiveDataHex8Lagrange(void) { // constructor numVertices = _numVertices; spaceDim = _spaceDim; numCells = _numCells; cellDim = _cellDim; vertices = const_cast(_vertices); numCorners = const_cast(_numCorners); cells = const_cast(_cells); materialIds = const_cast(_materialIds); groups = const_cast(_groups); groupSizes = const_cast(_groupSizes); groupNames = const_cast(_groupNames); groupTypes = const_cast(_groupTypes); numGroups = _numGroups; filename = const_cast(_filename); } // constructor pylith::faults::CohesiveDataHex8Lagrange::~CohesiveDataHex8Lagrange(void) {} // End of file