CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Sign of source term

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

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2018, 08:04
Default Sign of source term
  #1
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12
lostking18 is on a distinguished road
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!
lostking18 is offline   Reply With Quote

Old   May 7, 2018, 14:12
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,858
Rep Power: 33
Opaque will become famous soon enough
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,
lostking18 likes this.
Opaque is offline   Reply With Quote

Old   May 8, 2018, 17:49
Default
  #3
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12
lostking18 is on a distinguished road
Hi, Opaque
Thank you for your answer! I now have solved the problem.
lostking18 is offline   Reply With Quote

Old   May 9, 2018, 08:43
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,858
Rep Power: 33
Opaque will become famous soon enough
Great!!

Would you mind sharing the solution for others in the future?
Opaque is offline   Reply With Quote

Old   May 11, 2018, 12:05
Default
  #5
Member
 
phd
Join Date: Oct 2013
Posts: 76
Rep Power: 12
lostking18 is on a distinguished road
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.
lostking18 is offline   Reply With Quote

Reply

Tags
source terms

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:45.