|
[Sponsors] |
January 21, 2013, 01:17 |
Mass source UDF
|
#1 |
Member
Ernesto
Join Date: Dec 2011
Posts: 30
Rep Power: 15 |
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. Thanks in advance.
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? |
|
January 24, 2013, 10:24 |
|
#2 |
Member
Join Date: Jul 2012
Posts: 48
Rep Power: 14 |
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 Last edited by Abhya; January 24, 2013 at 12:20. |
|
|
|
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 |