|
[Sponsors] |
August 17, 2012, 17:50 |
Projecting Points onto .stl Defined Surface
|
#1 |
Member
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 19 |
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, Matt |
|
August 17, 2012, 18:13 |
|
#3 |
Member
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 19 |
Laurence,
If I'm reading the code correctly, one would give start and end point fields of a segments, and findLine will return the intersections? If so, that's pretty neat. Matt |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
Calculating forces on a non-closed surface | ScottN | FLUENT | 0 | March 1, 2011 18:18 |
solid edge problem....can you help? | cindy | Main CFD Forum | 3 | April 5, 2004 14:43 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 17:49 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |