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

Use absolute coordinate system when using "translate" on a body?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2019, 20:03
Default Use absolute coordinate system when using "translate" on a body?
  #1
New Member
 
Robert Sciambra
Join Date: Oct 2019
Posts: 1
Rep Power: 0
sciamwow is on a distinguished road
Hello!

I am new to Star-CCM+ and am having some issues.

I am running 2D simulations of race car airfoils in ground effect. I am trying to create a macro that will run an angle of attack sweep for the airfoil while keeping the lowest point of the airfoil at exactly 2 inches above the ground. I recognize that this is an important distinction because I have seen other threads that want to perform the same task without ground effect could simply adjust the angle of the incoming flow rather than the airfoil itself.

I have been doing this manually by finding the minimum height value of the airfoil, translating it down by that amount, then translating it up 2 inches and re-meshing. I recorded a macro that adjusts the angle and re-meshes just fine, but I can't find a way to make the macro translate the airfoil down by a variable distance, namely the lowest point of the airfoil from the ground, before moving it back up two inches. It would be super simple if I could move the body to a specific point using absolute coordinates, but I don't see a way of doing so.

If anybody has any insight (or a different way of approaching this), please let me know!

Thanks in advance.

Last edited by sciamwow; October 24, 2019 at 20:05. Reason: Added information.
sciamwow is offline   Reply With Quote

Old   October 25, 2019, 06:13
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18
cwl is on a distinguished road
Well, it can be done like this:
- set the Minimum Report for $$Position[2] (z-coordinate) at Airfoil surfaces;
- move/rotate/etc the airfoil;
- mesh incorrectly positioned airfoil, this will allow to get the required translation via Minimum Report;
- translate according to Minimum Report and 2 inches.
Not the best way, but at least it should work.
cwl is offline   Reply With Quote

Reply

Tags
aoa, ground effect, star-ccm+, sweep

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 define spring ends in the moving body coordinate system Yage OpenFOAM Programming & Development 0 September 28, 2014 13:43
Solid-Body kinematics inertial coordinate system Bollonga FLUENT 1 September 23, 2014 06:46
How can I fix a local coordinate system to the inlet phys-zephyr STAR-CCM+ 3 May 8, 2014 06:46
moving coordinate system to center of 180 degree bend in flow 3d maryamak Main CFD Forum 0 March 24, 2014 12:39
Combination of cartesian and cylindrical coordinate system Hermano Main CFD Forum 1 November 30, 2011 22:07


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