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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By cwl

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2020, 12:31
Smile Creating Field function combining Ramp Functions
  #1
New Member
 
SimulatorMaster's Avatar
 
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 17
Rep Power: 3
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, 21:30
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Posts: 180
Rep Power: 10
cwl is on a distinguished road
Send a message via Skype™ to cwl
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, 14:28
Default
  #3
New Member
 
SimulatorMaster's Avatar
 
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 17
Rep Power: 3
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

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


All times are GMT -4. The time now is 10:13.