CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

(Java) Get coordinates of a point on a boundary? Use a vector as the z-axi?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2017, 05:37
Question (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: 5
tisa is on a distinguished road
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:
  • Vector 1 (x-axis): midpoint + another point on the surface
  • Vector 2 (z-axis): normal vector via surf avg report + normal function
  • Vector 3 (y-axis): Cross product of vector 1&2
I didn't find any way to use the normal vector directly as the z-axis (this would be the easiest way).

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.
tisa is offline   Reply With Quote

Old   December 12, 2017, 08:37
Default
  #2
Member
 
Join Date: Dec 2017
Posts: 44
Rep Power: 5
tisa is on a distinguished road
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.
tisa is offline   Reply With Quote

Reply

Tags
boundary, java, local coordinate system

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
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


All times are GMT -4. The time now is 01:54.