|
[Sponsors] |
April 14, 2018, 17:32 |
Find z from given (x,y) on STL file
|
#1 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
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 |
|
Tags |
actuation disk, coordinates, stl file |
|
|
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 09:46 |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 18:25 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |