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

.stl from calculated quad-points

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2015, 05:18
Default .stl from calculated quad-points
  #1
Member
 
Join Date: May 2014
Posts: 40
Rep Power: 11
Phil_ is on a distinguished road
Dear Foamers,

is there an easy way to create an .stl-file from calculated points in the domain?

The calculated points describe quadFaces, so I tried splitting them with the triangles() function from the face-class (src/OpenFOAM/meshes/meshShapes/face/face.C). This function expects a pointField as an argument.

How can such a pointField be defined by the calculated quad points? Is it necessary to create a whole new mesh-instance?

Kind regards

Philip
Phil_ is offline   Reply With Quote

Old   August 7, 2015, 06:52
Default
  #2
Member
 
Join Date: May 2014
Posts: 40
Rep Power: 11
Phil_ is on a distinguished road
Just found out how points can be added to the pointField. It's only possible component wise:

Code:
vector pTest = vector(1.0, 2.0, 3.0);

// points[0][0] = pTest; //does not work
points[0].x() = pTest.x();
points[0].y() = pTest.y();
points[0].z() = pTest.z();
Phil_ is offline   Reply With Quote

Reply


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
[snappyHexMesh] SnappyHexMesh .stl Jochem OpenFOAM Meshing & Mesh Conversion 10 September 23, 2016 04:26
Extract points from polyline Saidul ANSYS 0 January 18, 2015 21:54
Projecting Points onto .stl Defined Surface mchurchf OpenFOAM 3 August 17, 2012 17:19
How to import only some points in paraFoam? maximeg OpenFOAM Running, Solving & CFD 1 July 12, 2010 10:56
extreme points problem Lipo Wang Main CFD Forum 2 August 18, 2004 03:15


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