CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Find z from given (x,y) on STL file

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2018, 16:32
Default Find z from given (x,y) on STL file
  #1
Member
 
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15
lebc is on a distinguished road
Hi all,

I'm working with a simulation of a wind farm including some wind turbines using the actuator disk model on OF 4.0.

The problem is, as I'm working with a real terrain on a STL file, in order to correctly place the disk I need to know the terrain z coordinate corresponding to a (x,y) location, otherwise the absolute height (terrain height + hub height) would be wrong.

Does anyone have a clue of how to do it?

One way would be to write a code that would read each triangle in the STL and check if the coordinate I have is inside the current triangle, but this doesn't seem to be very effective...

I can't do it manually because this is part of an optimization process, it has to be done automatically.

Kind regards,
Luis
lebc is offline   Reply With Quote

Reply

Tags
actuation disk, coordinates, stl file

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X gschaider OpenFOAM Installation 136 October 10, 2017 17:25
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08


All times are GMT -4. The time now is 16:47.