|
[Sponsors] |
April 9, 2015, 04:21 |
Modify gravity through UDF
|
#1 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Short question: Is it possible to change the gravity vector through a udf? And how?
Related question: Is it possible to apply a momentum source to only ONE of the species in a VOF simulation using a udf? |
|
April 9, 2015, 04:41 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Disable gravity under Define > General... and include the gravity as a source term using a UDF. I've included a custom treatment of the gravity force in the DPM with DEFINE_DPM_BODY_FORCE and there should be a similar method with source terms in your Eulerian phase.
Try using an if statement to restrict your momentum source to a particular species thread pointer. |
|
April 12, 2015, 06:55 |
|
#3 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Thank you for your suggestion.
I will give this a try soon. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF Compilation Error - Loading Library - COMMON Problem! Help! | robtheslob | Fluent UDF and Scheme Programming | 8 | July 24, 2015 01:53 |
modify a intern variable of Fluent with scheme and UDF | fanch33 | Fluent UDF and Scheme Programming | 3 | March 2, 2015 12:01 |
How can I modify surface reaction using UDF | Juun | Fluent UDF and Scheme Programming | 0 | July 28, 2014 10:13 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
DEFINE_GEOM UDF Problems | Pat | FLUENT | 0 | August 14, 2003 14:16 |