|
[Sponsors] |
(Java) Get coordinates of a point on a boundary? Use a vector as the z-axi? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 12, 2017, 05:37 |
(Java) Get coordinates of a point on a boundary? Use a vector as the z-axi?
|
#1 |
Member
Join Date: Dec 2017
Posts: 44
Rep Power: 8 |
Hello together,
is there any way to get coordinates of a point of a boundary via macro? I'm currently using the centroid function (surface avg report) to get the midpoint of a boundary. I'm looking for a way to get another point, to create a vector. My goal is to create local coordinate systems in the midpoint of boundaries. I want the z-axis to be the normal vector of those boundaries. My current idea is to create three vectors:
So anyone an idea how to get another point on a boundary beside the midpoint or knows how to create a local cs and use the normal vector of this boundary directly as the z-axis? Thanks in advance. |
|
December 12, 2017, 08:37 |
|
#2 |
Member
Join Date: Dec 2017
Posts: 44
Rep Power: 8 |
I found a workaround for my problem with the local cs:
Create a normal vector of the boundary -> create a local cs with the normal vector as the x-axis -> rotate the local cs around its y-axis for 90 deg. |
|
Tags |
boundary, java, local coordinate system |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 01:00 |
block-structured mesh for t-junction | Robert@cfd | ANSYS Meshing & Geometry | 20 | November 11, 2011 05:59 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 07:18 |