View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001387 | OpenFOAM | Bug | public | 2014-08-31 08:47 | 2015-03-02 20:54 |
Reporter | HakikiCanakkaleli | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | Linux | OS | Ubuntu | OS Version | 12.04 |
Summary | 0001387: cutCells() return duplicated cell IDs. | ||||
Description | == 1 == const labelList& cutCells() const inline returns a list of cells cut by the generated plane; however, the list contains duplicated (or more) cell IDs. | ||||
Steps To Reproduce | == 2 == Consider a typical computational rectangular computational domain from which we would like to obtain cell IDs from a specified cut plane: // Generate the plane point pnt(1.0, 1.0, 0.0); vector direction (1.0 , 0.0 , 0.0); const Foam::plane pl1(pnt,direction); // Generate cuttingPlane const primitiveMesh& primMesh = mesh; const bool tri = 0; const labelUList& cellIdLabels = mesh.owner(); Foam::cuttingPlane cutPlane(pl1, primMesh, tri, cellIdLabels); // Create the cell ID list const labelList& cutCells = cutPlane.cutCells(); == 3 == Info << cutCells << endl; The following produces many duplicated cell IDs within the same list. " ... 335022 335022 335022 335034 335034 335175 335175 335176 335176 335176 ... " | ||||
Tags | No tags attached. | ||||
|
The 4th argument to cuttingPlane is a list of potentially cut cells. You're passing in the owner list which has duplicate cell labels. Either default the argument (= cut all cells) or construct a labellist with unique contents. |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-08-31 08:47 | HakikiCanakkaleli | New Issue | |
2015-03-02 20:53 |
|
Note Added: 0003947 | |
2015-03-02 20:54 |
|
Status | new => closed |
2015-03-02 20:54 |
|
Assigned To | => user4 |
2015-03-02 20:54 |
|
Resolution | open => no change required |