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

.stl from calculated quad-points

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

LinkBack Thread Tools Display Modes
Old   August 7, 2015, 05:18
Default .stl from calculated quad-points
New Member
Join Date: May 2014
Posts: 28
Rep Power: 3
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

Phil_ is online now   Reply With Quote

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

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 online now   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
Extract points from polyline Saidul ANSYS 0 January 18, 2015 22:54
Projecting Points onto .stl Defined Surface mchurchf OpenFOAM 3 August 17, 2012 17:19
SnappyHexMesh .stl Jochem OpenFOAM 7 August 3, 2012 06:20
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 05:39.