CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

What is the advantage, if any, of the non-conservative form of conservation equation?

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2018, 02:07
Default What is the advantage, if any, of the non-conservative form of conservation equation?
  #1
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10
granzer is on a distinguished road
I have been trying to understand the conservative and non-conservative forms of the conservation equations in CFD. I do understand what they are from the various posts I have read, but all of them only ever talk about how the conservative form is useful for compressible flow and nothing is told about the non-conservative form of the equation. What is the use of the non-conservative form and where can it be used over conservative form?
granzer is offline   Reply With Quote

Old   September 18, 2018, 03:31
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by granzer View Post
I have been trying to understand the conservative and non-conservative forms of the conservation equations in CFD. I do understand what they are from the various posts I have read, but all of them only ever talk about how the conservative form is useful for compressible flow and nothing is told about the non-conservative form of the equation. What is the use of the non-conservative form and where can it be used over conservative form?

They are mathematically equivalent but not numerically. Mathematically, the quasi-linear form can have some advatage but numerically I strongly reccomend the use of the conservative form.
Note that you find in literature the term "conservative" both for the differential form (divergence form) and integral form. The letter being formally more correct as it defines the conservation by means of the unicity of the integral of the flux function.
granzer likes this.
FMDenaro is offline   Reply With Quote

Old   September 18, 2018, 04:17
Default
  #3
Senior Member
 
Ford Prefect's Avatar
 
Join Date: Mar 2009
Posts: 157
Rep Power: 17
Ford Prefect is on a distinguished road
They are only mathematically equivalent when density can be considered constant.

Also, the conservation form seems much more "logical" to use on a fixed mesh since it is derived on a volume fixed in space. The non-conservation form is derived for a volume moving with the flow.
__________________
"Trying is the first step to failure." - Homer Simpson
Ford Prefect is offline   Reply With Quote

Old   September 18, 2018, 04:23
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Ford Prefect View Post
They are only mathematically equivalent when density can be considered constant.

Also, the conservation form seems much more "logical" to use on a fixed mesh since it is derived on a volume fixed in space. The non-conservation form is derived for a volume moving with the flow.



No, this is not correct, you simply use the density equation to get the quasi linear form, no constraint on the density being necessary.
Just consider as example the derivation of the quasi-linear form of the 1D Euler equations for compressible flows.
FMDenaro is offline   Reply With Quote

Old   September 18, 2018, 04:46
Default
  #5
Senior Member
 
Ford Prefect's Avatar
 
Join Date: Mar 2009
Posts: 157
Rep Power: 17
Ford Prefect is on a distinguished road
Yes, of course you are correct, my bad.
__________________
"Trying is the first step to failure." - Homer Simpson
Ford Prefect is offline   Reply With Quote

Old   September 18, 2018, 15:23
Default
  #6
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
They are mathematically equivalent but not numerically. Mathematically, the quasi-linear form can have some advatage but numerically I strongly reccomend the use of the conservative form.
Note that you find in literature the term "conservative" both for the differential form (divergence form) and integral form. The letter being formally more correct as it defines the conservation by means of the unicity of the integral of the flux function.
Ok is it that conservative form is always more advantageous? and if so what is the use of studying about non-conservative form.
granzer is offline   Reply With Quote

Old   September 18, 2018, 15:30
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by granzer View Post
Ok is it that conservative form is always more advantageous? and if so what is the use of studying about non-conservative form.



I personally suggest using always the conservative form when the problem must be solved numerically. I don't see any gain in using the quasi-linear form in the numerical discretization. Conversely, some problems are typical of such a discretization.
FMDenaro is offline   Reply With Quote

Old   September 19, 2018, 14:01
Default
  #8
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
In general, as has been stated above, the conservative form is used.

However, for higher order finite difference methods, getting the discretization "correct" (for lack of a better term) near a boundary is challenging. One method is Summation by Parts (SBP). As far as I can tell, (I don't claim to be all that knowledgeable about it) part of the premise is to minimize the error/difference between conservative and non-conservative forms. I think the motivation has something to do with energy methods involving d(u^2)/dx and an attempt is made to get d(u^2)/dx = u*du/dx numerically equal in addition to having the integral numerically equal to u^2.
Martin Hegedus is offline   Reply With Quote

Old   September 19, 2018, 17:25
Default
  #9
Senior Member
 
Join Date: Oct 2011
Posts: 242
Rep Power: 17
naffrancois is on a distinguished road
Quote:
Originally Posted by granzer View Post
Ok is it that conservative form is always more advantageous? and if so what is the use of studying about non-conservative form.

Studies about non-conservative form of Euler equations is, among other applications, a step towards building numerical schemes for hyperboolic PDE's which cannot be written under conservative form. Remind that hyperbolic conservative PDE's numerical schemes can be derived "easilly" through Rankine-Hugoniot jump relations. Some fluid flow models, such as multiphase flow models of Baer-Nunziato type for example typically involve a conservative part and non-conservative products which yield a non-conservative hyperbolic set of equations for which you cannot directly apply Rankine-Hugoniot relations and build a numerical scheme in a straighforward way.
naffrancois is offline   Reply With Quote

Old   September 19, 2018, 17:48
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
As far as the quasi-linear form is concerned, the hystory of CFD is written by the first simulations at Los Alamos, just consider the well known MAC method wherein the quasi-linear form was well suited to develop a lagrangian update. This approach has been one of the reasons for other hystorical approaches. For example the Arakawa method for the vorticity-stream function formulation. When the computational resources were enough to solve small turbulent flow, researchers tryied to make the method energy-conserving to gain stability in the simulation.
However, modern researches showed the superiority of the conservative methods. The book of Leveque has some nice comparison between the formulations.
randolph likes this.
FMDenaro is offline   Reply With Quote

Old   March 29, 2019, 13:27
Default
  #11
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11
randolph is on a distinguished road
Dr. Denaro,

In the early implementation of K-Epsilon model of OpenFOAM, the following equation is used.

Code:
fvm::ddt(epsilon_)
+ fvm::div(phi_, epsilon_)
- fvm::Sp(fvc::div(phi_), epsilon_)
recall U & grad epsilon = div(U epsilon) - epsilon div(U).
It looks like they are using the quasi-linear form of the Epsilon.

Dr. Jasak indicates "boundedness of k when the model is used with simpleFoam (and alike) and partial convergence of the pressure equation" in this post "https://www.cfd-online.com/Forums/openfoam/64602-origin-fvm-sp-fvc-div-phi_-epsilon_-kepsilon-eqn.html#post217245"

I am very confused. It looks like they trying to use the quasi-linear form of Epsilon to improve the boundness???

Does the quasi-linear form have any numerical advantage over the conservative form in terms of boundness?

Thanks,
Rdf
randolph is offline   Reply With Quote

Old   March 29, 2019, 13:38
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by randolph View Post
Dr. Denaro,

In the early implementation of K-Epsilon model of OpenFOAM, the following equation is used.

Code:
fvm::ddt(epsilon_)
+ fvm::div(phi_, epsilon_)
- fvm::Sp(fvc::div(phi_), epsilon_)
recall U & grad epsilon = div(U epsilon) - epsilon div(U).
It looks like they are using the quasi-linear form of the Epsilon.

Dr. Jasak indicates "boundedness of k when the model is used with simpleFoam (and alike) and partial convergence of the pressure equation" in this post "https://www.cfd-online.com/Forums/openfoam/64602-origin-fvm-sp-fvc-div-phi_-epsilon_-kepsilon-eqn.html#post217245"

I am very confused. It looks like they trying to use the quasi-linear form of Epsilon to improve the boundness???

Does the quasi-linear form have any numerical advantage over the conservative form in terms of boundness?

Thanks,
Rdf

Kinetic energy is not subject to a conservation equation, production terms being present coupling the dissipation of kinetic energy to internal energy. Only the total energy does.
randolph likes this.
FMDenaro is offline   Reply With Quote

Old   March 29, 2019, 14:02
Default
  #13
Senior Member
 
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11
randolph is on a distinguished road
Dr. Denaro,

Here is another case regards to scalar transport. ("https://www.cfd-online.com/Forums/openfoam-solving/67964-scalartransportfoam-rtd-calculations.html#post280210")

In the post of chegdan, he states that :

Code:
         solve
            (
                fvc::ddt(C)
              + fvc::div(phi, C)
	      - fvc::laplacian(D, C)
              - fvc::laplacian(Dturbulent, C)
            );
was unbounded even with the bounded schemes. However, when he added another term to the equation:

Code:
            solve
            (
                fvm::ddt(C)
              + fvm::div(phi, C)
	      + fvm::SuSp(-fvc::div(phi), C)
	      - fvm::laplacian(D, C)
              - fvm::laplacian(Dturbulent, C)
            );
Is this case relevant to our discussion?

Thanks,
Rdf
randolph is offline   Reply With Quote

Old   March 29, 2019, 14:18
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The use of the laplacian operator can be not correct in a general conservation framework ... For example, the turbulent viscosity is a pointwise function, therefore Div (2*mu_t*S), that is the conservative form, is not equivalent to mu* Lap v. The same happens for the heat flux.



However, conservation is not related to boundness in the solution
FMDenaro is offline   Reply With Quote

Reply

Tags
conservative form, non conservative form


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
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
Hyperbolic equation in conservative form TurbJet Main CFD Forum 9 February 21, 2018 20:03
VOF conservative form Pedro24 OpenFOAM Programming & Development 0 February 10, 2014 12:32
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
volumetric conservation equation in PHOENICS code mehdi Main CFD Forum 1 July 29, 2000 20:14


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