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

Mass source UDF

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

Like Tree1Likes
  • 1 Post By Abhya

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2013, 01:17
Default Mass source UDF
  #1
New Member
 
Ernesto
Join Date: Dec 2011
Posts: 18
Rep Power: 5
epc1 is on a distinguished road
Hello:

Im trying to make a UDF to define a mass source term for the continuity equation that includes the net production of mass(or destruction due to chemical reactions)) in my problem. The reactions are included in the reaction panel, and the rates are modified via another udf. I know that it is not necessary to include the overall source term in the continuity equation, since the overall production of mass due to the reactions is zero.

Is there a way to access the rates defined in my other udf to formulate the mass source udf? I have tried via the extern variables, however when i set a memory to monitor the value of the mass source term, it appears that its not taking the correct value.

Another thing is that the fluent user guide mentions that if you create a mass source term, you also have to create a momentum, and energy source term. Would that still be neccesary in this case?
Thanks in advance.
epc1 is offline   Reply With Quote

Old   January 24, 2013, 10:24
Default
  #2
Member
 
Join Date: Jul 2012
Posts: 41
Rep Power: 5
Abhya is on a distinguished road
whether u have to define a source term for momentum or energy equation depends on the function u use. eg: define_mass_transfer doesnt need mom,energy source terms separately if u define mas term...but define_source does req.. as far as i remember..Im a noob to this btw
check out the user manual for the specific function in udf u r using
hane likes this.

Last edited by Abhya; January 24, 2013 at 12:20.
Abhya 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
groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM 24 August 23, 2015 22:41
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
Problem with Mass source, Momentum source theory diffo Fluent UDF and Scheme Programming 0 August 20, 2009 06:10
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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