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

Getting the coordinates of a local coordinate system

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2020, 11:00
Default Getting the coordinates of a local coordinate system
  #1
New Member
 
Join Date: Sep 2020
Posts: 5
Rep Power: 5
Oculosdegrau is on a distinguished road
Hello,

I have a local coordinate system that is managed by a motion. Is there a way to get the position of this system at each step (in relation to laboratory) and plot it/export data/use data in a field function? Thank you
Oculosdegrau is offline   Reply With Quote

Old   October 17, 2020, 11:03
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17
cwl is on a distinguished road
The first thing that comes to mind - is to place a Point into origin of moving coordinate system, set that Point to follow the Motion and report its coordinates.
cwl is offline   Reply With Quote

Old   October 19, 2020, 04:56
Default
  #3
New Member
 
Join Date: Sep 2020
Posts: 5
Rep Power: 5
Oculosdegrau is on a distinguished road
Hello cwl,



I thought about doing this too, but I couldn't figure out how to report the point position. I thought about using the Position field function, but I guess that is not what is meant for (rather to define a quantity over space). Do you know which field function gives me the coordinates of a point? Sorry for the rookie questions!
Oculosdegrau is offline   Reply With Quote

Old   October 23, 2020, 09:25
Default
  #4
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
Position is a vector quantity. $$Position[0] is X, $$Position[1] is Y, and I bet you can guess Z. I believe you can specify a user defined coordinate system by $$Position(@CoordinateSystem("user csys"))[0], etc...

Next, create a derived part > point and define it at [0,0,0] in your local coordinate system "user csys" then use that as an input for max or min reports of the position vector quantities [0], [1], [2].

That should do it, but I have not tried it myself. If that works for you, please report back.
fluid23 is offline   Reply With Quote

Old   October 26, 2020, 04:42
Default
  #5
New Member
 
Join Date: Sep 2020
Posts: 5
Rep Power: 5
Oculosdegrau is on a distinguished road
Hi Fluid23, thank you for your reply!

Unfortunately that did not work. I did as you said, but the report cannot generate a real result:


Maximum of Position[Z] on Geometry

Part Value (m) Errors
------ -------------- -------------------------------
Point -1.797693e+308 no data, invalid part
------ -------------- -------------------------------
Total: -1.797693e+308 no data, incomplete computation

In my case I have a circular surface (jounal), so I guess I could simply do the surface average of Position[1], but thats pretty janky...
Attached Images
File Type: png Capture.PNG (93.8 KB, 22 views)
Oculosdegrau is offline   Reply With Quote

Old   October 26, 2020, 10:06
Default
  #6
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
Not sure, but this could be a problem with how you've set it up. I think I have seen this happen when the location is outside the computational domain. Some screenshots of the report setup and domain would be helpful.
fluid23 is offline   Reply With Quote

Reply


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
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 15:53
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
In which coordinates system is expressed velocity malaboss OpenFOAM Post-Processing 2 April 18, 2013 06:00
local coordinate system for porousZone Nico A. OpenFOAM Programming & Development 0 November 15, 2011 04:32


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