CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Meshing & Mesh Conversion

Projecting points to surface

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

LinkBack Thread Tools Display Modes
Old   August 17, 2012, 16:32
Default Projecting points to surface
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 10
mchurchf is on a distinguished road
I want to read in a .stl file and use it to define a surface. Then given an x,y location, I'd like to project onto the surface to find the z height. Can anyone help with how to do that. The surfaceDisplacement boundary condition that can be used for the "pointMotion" field with the moveDynamicMesh solver seems to be able to do this, but I can't figure out how to do that. I've taken the "transformPoints" utility and modified it to take a block mesh made with "blockMesh" and translate points vertically to conform to an analytical surface definition at the bottom, but now I want to have the ability to conform to a general surface definition that comes in the form of an .stl file.

Thank you,

mchurchf is offline   Reply With Quote

Old   September 13, 2012, 12:21
Join Date: Sep 2011
Posts: 45
Rep Power: 8
ic3wall is on a distinguished road
Use blockMesh and define a mesh of let say 1m thick and 1000m above your stl surface. You can chose whatever thickness and distance above your stl, it doesn't matter.

Then, use moveMesh to project the bottom boundary of your mesh on the stl surface. You'll get elongated cells, and the bottom boundary will be a projection of the initial mesh onto the stl surface. The displacement of your mesh is controlled via the pointDisplacement file.
ic3wall 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
No layers in a small gap bobburnquist OpenFOAM Native Meshers: snappyHexMesh and Others 6 August 26, 2015 09:38
Surface generation from points PincoP ANSYS Meshing & Geometry 1 January 13, 2010 16:19
BlockMeshmergePatchPairs hjasak OpenFOAM Native Meshers: blockMesh 11 August 15, 2008 07:36
ICEM Surface from points cloud ? Guillaume CFX 1 June 13, 2007 14:42
CFX 4.4 New free surface option Viatcheslav Anissimov CFX 0 April 3, 2002 06:27

All times are GMT -4. The time now is 13:55.