CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Field Function for Rotation around a COS wanted (https://www.cfd-online.com/Forums/star-ccm/168298-field-function-rotation-around-cos-wanted.html)

TRGH March 19, 2016 10:56

Field Function for Rotation around a COS wanted
 
Hi, I am currently searching for a field function which allows me to rotate an overset mesh around a cartesian COS 2 seconds after starting the simulation and stopping after 0.05s. Can anybody here help me or do you have a guide how to set up field functions?

Thank you in advance,
TRGH

TRGH March 19, 2016 15:02

I figured it out, if somebody needs it:

($Time<=2)?0:
(
($Time>2&&$Time<=2.03)?1:
(
($Time>2.03&&$Time<=4)?0:
(
($Time>4&&$Time<=4.03)?1:
($Time>4.03)?0:0
)
)
)

Replace the 1 with your desired speed and add "Rotation" (or Translation) under Tools-Motions, set your rotation rate (or Translation velocity) as [TheNameofYourFieldFunction].


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