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

Mass source UDF

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Abhya

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

I´m 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 it´s 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: 48
Rep Power: 14
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


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
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 11:03
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 07:12
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
Problem with Mass source, Momentum source theory diffo Fluent UDF and Scheme Programming 0 August 20, 2009 07:10
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24


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