|
[Sponsors] |
[mesh manipulation] Projecting points to surface |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 17, 2012, 16:32 |
Projecting points to surface
|
#1 |
Member
Matthew J. Churchfield
Join Date: Nov 2009
Location: Boulder, Colorado, USA
Posts: 49
Rep Power: 18 |
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 |
|
September 13, 2012, 12:21 |
|
#2 |
Member
Join Date: Sep 2011
Posts: 45
Rep Power: 14 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 07:34 |
[snappyHexMesh] snappyHexMesh generates not planar surface | krzychu111 | OpenFOAM Meshing & Mesh Conversion | 2 | April 23, 2020 16:38 |
[snappyHexMesh] No layers in a small gap | bobburnquist | OpenFOAM Meshing & Mesh Conversion | 6 | August 26, 2015 09:38 |
Surface generation from points | PincoP | ANSYS Meshing & Geometry | 1 | January 13, 2010 15:19 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |