CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Creating a pointMesh with pointField and faceList

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2012, 07:36
Default Creating a pointMesh with pointField and faceList
  #1
New Member
 
Thilo Michels
Join Date: Oct 2011
Posts: 11
Rep Power: 14
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:

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

Thilo
Thilo is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 08:16.