Salome HOME
With doc ! abn/crack_fix
authorabn <adrien.bruneton@cea.fr>
Mon, 14 Sep 2015 12:25:41 +0000 (14:25 +0200)
committerabn <adrien.bruneton@cea.fr>
Mon, 14 Sep 2015 12:25:41 +0000 (14:25 +0200)
src/MEDLoader/MEDFileMesh.cxx

index b0956d7ed1fa81e6d26354a345f5f6e2f3bdd6f2..9c7698caf9fa2411a8792decd3037be4adc5cf42 100644 (file)
@@ -3581,6 +3581,24 @@ void MEDFileUMesh::optimizeFamilies()
     _groups.erase(*it);
 }
 
+/**
+ * \b this must be filled at level 0 and -1, typically the -1 level being (part of) the descending connectivity
+ * of the top level. This method build a "crack" in \b this along the group of level -1 named grpNameM1.
+ * The "crack" is built according to the following method:
+ *  - all nodes along the crack which are not lying on an internal extremity of the crack are duplicated (so the
+ * coordinates array is extended). The
+ *  - new (-1)-level cells are built lying on those new nodes. So the edges/faces along the crack are duplicated.
+ *  After this operation a top-level cell bordering the crack will loose some neighbor (typically the cell which is  on the
+ *  other side of the crack is no more a neighbor)
+ *   - finally, the connectivity of (part of) the top level-cells bordering the crack is also modified so that some cells
+ *  bordering the crack use the newly computed nodes.
+ *
+ *  \param[in] grpNameM1 name of the (-1)-level group defining the crack
+ *  \param[out] nodesDuplicated ids of the initial nodes which have been duplicated (and whose copy is put at the end of
+ *  the coord array)
+ *  \param[out] cellsModified ids of the cells whose connectivity has been modified (to use the newly created nodes)
+ *  \param[out] cellsNotModified ids of the rest of cells bordering the crack whose connectivity remains unchanged.
+ */
 void MEDFileUMesh::duplicateNodesOnM1Group(const std::string& grpNameM1, DataArrayInt *&nodesDuplicated,
                                            DataArrayInt *&cellsModified, DataArrayInt *&cellsNotModified)
 {