|
[Sponsors] |
Creating Field function combining Ramp Functions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 17, 2020, 13:31 |
Creating Field function combining Ramp Functions
|
#1 |
New Member
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 25
Rep Power: 7 |
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. |
|
May 17, 2020, 22:30 |
|
#2 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 437
Rep Power: 18 |
Instead of crazy syntax-based nested conditions - I'd suggest external .csv-table (Time-Velocity) and interpolateTable() function with LINEAR option.
|
|
May 28, 2020, 15:28 |
|
#3 |
New Member
Onur
Join Date: Dec 2018
Location: Turkey
Posts: 25
Rep Power: 7 |
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.. |
|
Tags |
field function velocity |
|
|
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 |