// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard // U.S. Geological Survey // // {LicenseText} // // ====================================================================== // /* Original mesh * * Cells are 0-1, vertices are 2-7. * * 3 -------- 5 -------- 7 * | | | * | | | * | | | * | | | * | | | * | | | * | | | * | | | * 2 -------- 4 -------- 6 * * After adding cohesive elements * * Cells are 0-1,10 vertices are 2-9. * * 3 -------- 5 -11- 10 -------- 7 * | | | | * | | | | * | | | | * | | | | * | | | | * | | | | * | | | | * | | | | * 2 -------- 4 --9-- 8 -------- 6 */ #include "CohesiveDataQuad4Lagrange.hh" const int pylith::faults::CohesiveDataQuad4Lagrange::_numVertices = 10; const int pylith::faults::CohesiveDataQuad4Lagrange::_spaceDim = 2; const int pylith::faults::CohesiveDataQuad4Lagrange::_numCells = 3; const int pylith::faults::CohesiveDataQuad4Lagrange::_cellDim = 2; const double pylith::faults::CohesiveDataQuad4Lagrange::_vertices[] = { -2.0, -1.0, -2.0, 1.0, 0.0, -1.0, 0.0, 1.0, 2.0, -1.0, 2.0, 1.0, 0.0, -1.0, 0.0, -1.0, 0.0, 1.0, 0.0, 1.0, }; const int pylith::faults::CohesiveDataQuad4Lagrange::_numCorners[] = { 4, 4, 6 }; const int pylith::faults::CohesiveDataQuad4Lagrange::_cells[] = { 2, 4, 5, 3, 6, 7, 10, 8, 4, 5, 8, 10, 9, 11 }; const int pylith::faults::CohesiveDataQuad4Lagrange::_materialIds[] = { 0, 0, 1 }; const int pylith::faults::CohesiveDataQuad4Lagrange::_numGroups = 2; const int pylith::faults::CohesiveDataQuad4Lagrange::_groupSizes[] = { 6, 4 }; const int pylith::faults::CohesiveDataQuad4Lagrange::_groups[] = { 4, 5, 8, 9, 10, 11, 3, 5, 7, 10 }; const char* pylith::faults::CohesiveDataQuad4Lagrange::_groupNames[] = { "fault", "output" }; const char* pylith::faults::CohesiveDataQuad4Lagrange::_groupTypes[] = { "vertex", "vertex" }; const char* pylith::faults::CohesiveDataQuad4Lagrange::_filename = "data/quad4.mesh"; pylith::faults::CohesiveDataQuad4Lagrange::CohesiveDataQuad4Lagrange(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::CohesiveDataQuad4Lagrange::~CohesiveDataQuad4Lagrange(void) {} // End of file