CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Creating a pointMesh with pointField and faceList

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 19, 2012, 06:36
Default Creating a pointMesh with pointField and faceList
New Member
Thilo Michels
Join Date: Oct 2011
Location: Hamburg
Posts: 11
Rep Power: 6
Thilo is on a distinguished road
Hi Everyone,

is there a possibility to create a pointMesh with a previous defined pointField and faceList?

So far my code looks like:

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);
Best regards

Thilo is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluent3DMeshToFoam simvun OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 48 May 14, 2012 05:20
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11

All times are GMT -4. The time now is 10:19.