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

Creating Field function combining Ramp Functions

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cwl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2020, 13:31
Smile Creating Field function combining Ramp Functions
  #1
New Member
 
SimulatorMaster's Avatar
 
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 25
Rep Power: 7
SimulatorMaster is on a distinguished road
Hello there,

I m trying to create a ramp function for my velocity inlet; however Im having a hard time.

For example, my velocity will start at 30m/s, accelerate up to 40m/s then decrease to 20m/s, and vice versa. The equation I am using is the equation of motion (Vf=Vi+a*time).

I have tried writing (0<=$Time<2) ? 'The EQN.1' : (2<=$Time<3) ? 'The EQN2.'

I have the data yet I do not know how to write it in StarCCM and join all these together.

Thank you.
SimulatorMaster is offline   Reply With Quote

Old   May 17, 2020, 22:30
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
Instead of crazy syntax-based nested conditions - I'd suggest external .csv-table (Time-Velocity) and interpolateTable() function with LINEAR option.
SimulatorMaster likes this.
cwl is offline   Reply With Quote

Old   May 28, 2020, 15:28
Default
  #3
New Member
 
SimulatorMaster's Avatar
 
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 25
Rep Power: 7
SimulatorMaster is on a distinguished road
Sorry I forgot to answer =/. I did find the necessary syntax yet I also learned how to insert tables from Excel as well. It is indeed way easier that way thank you!

Best regards..
SimulatorMaster is offline   Reply With Quote

Reply

Tags
field function velocity


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
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) Scabbard OpenFOAM Running, Solving & CFD 1 July 22, 2014 05:50
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 18:06.