|
[Sponsors] |
July 1, 2016, 11:45 |
Gravity UDF
|
#1 |
New Member
Join Date: Oct 2015
Posts: 2
Rep Power: 0 |
I want to define time dependent gravity acceleration in X direction in FLUENT.
For example; t=0 s g=0 m/s^2 t=0.1s g=5 m/s^2 t=0.2s g=9 m/s^2 t=0.4s g=13 m/s^2 t=0.5s g=7 m/s^2 t=0.6s g=-2 m/s^2 ... |
|
July 5, 2016, 17:50 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
You could modify the gravity term via the text user interface with a Scheme script (run with a calculation activity at the end of each time step). Otherwise, add your own source term to the momentum equation with the DEFINE_SOURCE macro; use conditional statements for your time periods with CURRENT_TIME to return the current simulation time.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF to modify gravity via M_gravity[ND_ND] or DEFINE_ADJUST | jpo | Fluent UDF and Scheme Programming | 19 | March 20, 2020 15:34 |
UDF: How to load data from an external file into a vector | EmiS | Fluent UDF and Scheme Programming | 17 | January 14, 2019 02:55 |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
Help with unsteady calculation with source/sink UDF | RobV | Fluent UDF and Scheme Programming | 3 | March 10, 2016 04:45 |
UDF fails to model 9.81m/s^2 gravity | jpo | Fluent UDF and Scheme Programming | 2 | January 24, 2012 19:15 |