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

Modify gravity through UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 9, 2015, 03:21
Default Modify gravity through UDF
  #1
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,311
Rep Power: 22
flotus1 will become famous soon enoughflotus1 will become famous soon enough
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, 03:41
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 793
Rep Power: 9
`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 online now   Reply With Quote

Old   April 12, 2015, 05:55
Default
  #3
Senior Member
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 1,311
Rep Power: 22
flotus1 will become famous soon enoughflotus1 will become famous soon enough
Thank you for your suggestion.
I will give this a try soon.
flotus1 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 00: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 09:13
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
DEFINE_GEOM UDF Problems Pat FLUENT 0 August 14, 2003 13:16


All times are GMT -4. The time now is 17:27.