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

Modify gravity through UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2015, 04:21
Default Modify gravity through UDF
  #1
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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?
flotus1 is offline   Reply With Quote

Old   April 9, 2015, 04:41
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
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.
`e` is offline   Reply With Quote

Old   April 12, 2015, 06:55
Default
  #3
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
Thank you for your suggestion.
I will give this a try soon.
flotus1 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 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


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