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