|
[Sponsors] |
Creating a pointMesh with pointField and faceList |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 19, 2012, 07:36 |
Creating a pointMesh with pointField and faceList
|
#1 |
New Member
Thilo Michels
Join Date: Oct 2011
Posts: 11
Rep Power: 15 |
Hi Everyone,
is there a possibility to create a pointMesh with a previous defined pointField and faceList? So far my code looks like: Code:
pointField points(_numNodes, point(0,0,0)); for(int iP=0; iP<_numNodes; iP++){ points[iP] = vector(_coo[iP].x, _coo[iP].y, _coo[iP].z); } faceList faces(_numFaces); for(int iF=0; iF<_numFaces; iF++) { labelList myLittleFaceLabels (_face[iF]._numNodes,0); for(int iN=0; iN<_face[iF].numNodes; iN++){ myLittleFaceLabels[iN] = _face[iF]._nodes[iN]._index; } faces[iF] = face(myLittleFaceLabels); } // Does not work: pointMesh pSolidMesh(pointField); Thilo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |