CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Gravity UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By `e`

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2016, 11:45
Default Gravity UDF
  #1
New Member
 
Join Date: Oct 2015
Posts: 2
Rep Power: 0
kdkcfd is on a distinguished road
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
...
kdkcfd is offline   Reply With Quote

Old   July 5, 2016, 17:50
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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.
ghost82 likes this.
`e` is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 21:47.