|
[Sponsors] |
May 7, 2018, 08:04 |
Sign of source term
|
#1 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12 |
Hi, there:
Is there any one who can tell me if the mass source S_m, Momentum source S_Mom, Energy source S_ht on the right hand side or the left hand side of the governing Equation? I.E. Is it looks like: d Phi / dt + F(phi) + Sm = 0 or like: d Phi / dt + F(phi) = Sm ? In CFX theory guide Chapter 11.1.1. Discretization of the Governing Equations: https://www.sharcnet.ca/Software/Ans.../i1311648.html I saw the source term S_Mom and S_ht are written at the right side of the governing Equation. But recently when I try to assign the mass source term Sm with a positive value, the net mass flow rate over the whole computational domain is negative. This indicate the mass source term Sm should be at the right side of the governing equation, right? Thank you very much! |
|
May 7, 2018, 14:12 |
|
#2 |
Senior Member
Join Date: Jun 2009
Posts: 1,858
Rep Power: 33 |
Positive source terms increase the transported quantity, negative values decrease its value regardless where they are in the equation (which can be written in multiple ways)
How did you determine your positive mass source had a negative contribution to the total mass in the system? Say system with one inlet plus one outlet, add a mass source on the wall. Outlet mass flow = Inlet mass + mass source at the wall. Hope the above helps, |
|
May 8, 2018, 17:49 |
|
#3 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12 |
Hi, Opaque
Thank you for your answer! I now have solved the problem. |
|
May 9, 2018, 08:43 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,858
Rep Power: 33 |
Great!!
Would you mind sharing the solution for others in the future? |
|
May 11, 2018, 12:05 |
|
#5 |
Member
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12 |
Hi, Opaque, Thanks! I will keep that in mind. This time I'm just embarrassed by the stupid reason: I made mistake on the sign convention. T_T
So generally, when the mass source is positive, we will always get the positive net mass flow rate. Vice versa. |
|
Tags |
source terms |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term due to evaporation in energy transport equation | styleworker | OpenFOAM Programming & Development | 3 | September 7, 2022 03:09 |
[OpenFOAM.org] Patches to compile OpenFOAM 2.2 on Mac OS X | gschaider | OpenFOAM Installation | 136 | October 10, 2017 17:25 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 09:07 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 03:43 |