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

Conservation- v.s. non-conservation form in incompressible flows

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2013, 04:47
Default
  #21
Senior Member
 
andy
Join Date: May 2009
Posts: 270
Rep Power: 17
andy_ is on a distinguished road
Quote:
Originally Posted by Simbelmynė View Post
Any particular reason to use either of the two methods when we look at viscous incompressible flow?
It depends on the type of flow you are trying to solve and the methods you are using. Local or global numerical conservation is a property one normally wants to build in but obviously it cannot be done for all quantities. For example, in highly swirling flows one often wants to conserve angular momentum in order for the simulation to be reasonable but the swirl-related velocity component being solved may well be something else. Rearranging terms to conserve angular momentum will mean the equation is in non-conservation form in terms of what is being solved.

Whether a conservative or non-conservative form is better behaved can vary from term to term within a transport equation depending on what they physically represent and what else is conserved or non-conserved. For example, in curvilinear grid orientated coordinates one can be faced with a choice of something like (area_ef*f_ef - area_wf*f_wf) or (vol_p*dfdi_p). For a constant value of f the former will not be constant if the face areas vary whereas the non-conservative form will be. Not that people use curvilinear grid orientated coordinates much these days.

If the coefficient matrix is singular like the pressure related variable in many pressure correction schemes then a conservation form has to be used for the rhs in order to get a solution.

Starting with a conservation form and moving to something else if it misbehaves in testing is probably not an unwise way to go about things.
Simbelmynė and granzer like this.
andy_ is offline   Reply With Quote

Old   March 29, 2013, 11:33
Default
  #22
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 15
leflix is on a distinguished road
[QUOTE=FMDenaro;415111]in the case of incompressible flows, the momentum equation is parabolic but the continuity equation (div V=0) is hyperbolic.


Filipo I guess momentum equation for incompressible flows is rather elliptic.
leflix is offline   Reply With Quote

Old   March 29, 2013, 11:46
Default
  #23
Senior Member
 
Join Date: Aug 2011
Posts: 272
Rep Power: 15
leflix is on a distinguished road
Quote:
Originally Posted by Simbelmynė View Post
Thank you for your reply, but could you please elaborate as to why in the case of finite difference?

It is due to the way finite volume method is built and how the Gauss theorem is used for integration.
As example if you consider the laplacian operator
integral[ lap(FI)]dv = integral[ Div(grad(FI))]dv = integral [grad(FI).n]ds
It is the way you should proceed with finite volume method.

In finite difference you would write:
lap(FI) = d²FI/dx² + d²FI/dy² and you discretize the second derivative operator directlywith any scheme you like.
Or you could use also d/dx (grad(FI)_x ) + d/dy(grad(FI)_y) which is the divergence operator applied to the vector grad(FI). And then you use any scheme for first derivative operator d/dx and d/dy.
grad(FI)_x ) and (grad(FI)_y are respectively the x and y componnent of vector grad(FI)
FMDenaro likes this.
leflix is offline   Reply With Quote

Old   March 29, 2013, 13:11
Default
  #24
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
[QUOTE=leflix;417212]
Quote:
Originally Posted by FMDenaro View Post
in the case of incompressible flows, the momentum equation is parabolic but the continuity equation (div V=0) is hyperbolic.


Filipo I guess momentum equation for incompressible flows is rather elliptic.
for the steady equation yes, but if you consider the unsteady momentum equation it is parabolic
FMDenaro is offline   Reply With Quote

Old   March 29, 2013, 18:33
Default
  #25
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
Quote:
Originally Posted by leflix View Post
It is due to the way finite volume method is built and how the Gauss theorem is used for integration.
As example if you consider the laplacian operator
integral[ lap(FI)]dv = integral[ Div(grad(FI))]dv = integral [grad(FI).n]ds
It is the way you should proceed with finite volume method.

In finite difference you would write:
lap(FI) = d²FI/dx² + d²FI/dy² and you discretize the second derivative operator directlywith any scheme you like.
Or you could use also d/dx (grad(FI)_x ) + d/dy(grad(FI)_y) which is the divergence operator applied to the vector grad(FI). And then you use any scheme for first derivative operator d/dx and d/dy.
grad(FI)_x ) and (grad(FI)_y are respectively the x and y componnent of vector grad(FI)
Thank you for your reply leflix.

Unfortunately I don't understand it at all. I'll try to explain why and hopefully you can help me understand.

1. Since you replied to my previous post (which was a reply to your post before that) I assume that this post is to explain "why we can use either conservation or non-conservation form when using FDM". In this context I also assume that you are replying to my original question.

2. You explain how conservation is assured in case of FVM. Is this so that I should understand something about point 1 above?

3. Then you explain that we could use any FDM scheme when approximating the first and/or second derivatives. Your example is not from the convective terms and since it is in the treatment of the convective terms we (usually) have the difference between conservation and non-conservation form I just don't follow this reasoning.

4. What makes me even more confused is that FMDenaro likes the post which means that he agrees (I assume) although when looking at his posts in this thread he seems to be of the opinion that conservation form should always be used.

I hope that I am not sounding rude in this post, this is not my intention. I really am confused about some of the posts though. Well perhaps I can blame it on the late hour

Good Night!
Simbelmynė is offline   Reply With Quote

Old   March 30, 2013, 04:19
Default
  #26
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Ok, first do not think about convection or diffusion, consider instead the total flux of some quantities as f.
Now, in FVM it is automatic to ensure the discrete conservation since we discretize the integral:

Int [S] n.f dS => sum [k=1..Nsurfaces] (fn A)_k

and the numerical flux function fn is unique by construction.

Some controversial appears for the FDM. Again, I think is useful to consider the discretization of the continuos term.
If you discretize the divergence form, you have on cartesian grids

Div.f => sum df_i/dx_i

for example, in the momentun quantity, the convective and diffusive terms are written as

Div.(vv) and Div.(2mu S)

and the discretization are conservative if the numerical flux functions are unique.

But often in FDM one discretizes the quasi-linear form, for example in the (incompressible flow) momentun quantity the convective and diffusive terms are written as

v.Grad v and mu Lap v

and no discretizations can ensure conservation.

Said that, my advice is to use always the conservative form.
FMDenaro is offline   Reply With Quote

Old   April 1, 2013, 04:19
Default
  #27
Senior Member
 
Simbelmynė's Avatar
 
Join Date: May 2012
Posts: 546
Rep Power: 15
Simbelmynė is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Ok, first do not think about convection or diffusion, consider instead the total flux of some quantities as f.
Yes I understand this. If you check my previous post again you will see that I put the word "usually" when I said that conservation/non-conservation form usually comes to the treatment of the convective term. This is because the diffusive term in FDM is in conservation form (unless you are not doing something strange when discretizing that term you end up with a numerically conservative expression).

Quote:
Originally Posted by FMDenaro View Post
But often in FDM one discretizes the quasi-linear form, for example in the (incompressible flow) momentun quantity the convective and diffusive terms are written as

v.Grad v and mu Lap v

and no discretizations can ensure conservation.
Yes. I agree (see above). However I think it is strange that Leveque is using the terminology "quasi linear form", it sounds like some ad-hoc method to be used in stead of the "real" method. If we are deriving the momentum equations we can use Newton's second law as a starting point OR we can derive the momentum equation by setting up a conservative momentum flux expression assuming momentum is a conserved property (and yes the methods both satisfy Newton's second law). In case of the first approach we will end up with a non-conservation expression where the Substantial derivative describes the acceleration terms. Going from non-conservation form to conservation form is done with the aid of the continuity equation.

Quote:
Originally Posted by FMDenaro View Post
Said that, my advice is to use always the conservative form.
Yes and this is in reply to my original question without the "why" part. I guess you have already mentioned the "why" in your previous posts.

To summarize: I am not confused about how the FDM and FVM methods discretize the equations. I simply wish to know if conservation or non-conservation form is preferred for incompressible flows (and why).
Simbelmynė 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
time step for incompressible flows Suriyanarayanan Main CFD Forum 2 August 23, 2005 08:34
Solutions of Nozzle Flows by MacCormack Technique worasit Main CFD Forum 5 September 29, 2003 11:38
Numerical methods for incompressible flows stein Main CFD Forum 4 August 11, 2003 21:20
Code for incompressible flows Pawel Main CFD Forum 7 October 24, 2002 00:22
Compressible vs. Incompressible formulations Fernando Velasco Hurtado Main CFD Forum 3 January 7, 2000 16:51


All times are GMT -4. The time now is 19:16.