CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Modify gravity through UDF (https://www.cfd-online.com/Forums/fluent-udf/151346-modify-gravity-through-udf.html)

flotus1 April 9, 2015 03:21

Modify gravity through UDF
 
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?

`e` April 9, 2015 03:41

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.

flotus1 April 12, 2015 05:55

Thank you for your suggestion.
I will give this a try soon.


All times are GMT -4. The time now is 15:26.