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

Effect of discretization of viscous terms (FVM) for incompressible fluids on pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2015, 18:51
Default Effect of discretization of viscous terms (FVM) for incompressible fluids on pressure
  #1
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
According to Perić's book (Computational Methods for Fluid Mechanics 3rd. Ed. p. 158) when discretizing the viscous term of the incompressible Navier-Stokes equations

\frac{\partial}{\partial x_j} \left[\mu \left(  \frac{\partial u_i}{\partial x_j} + \frac{\partial u_j}{\partial x_i}\right) \right]

one can use the fact, that for flows with spatially invariant viscosity \mu the second term will not contribute to the viscous term. This follows from the linearity of the derivation, interchange of the differentiation order and finally the application of the continuity equation for incompressible fluids

\frac{\partial}{\partial x_j} \left( \mu \frac{\partial u_j}{\partial x_i} \right) 
=
\mu \frac{\partial}{\partial x_j} \left( \frac{\partial u_j}{\partial x_i} \right) 
=
\mu \frac{\partial}{\partial x_i} \left( \frac{\partial u_j}{\partial x_j} \right) 
=
0

My solver application, which is based on Perić's CAFFA code, is able to choose between both approximations. I solve for a manufactured solution (2d Taylor-Green vortex) with Dirichlet boundaries and I experience a notable difference in the resulting discretization error depending on the decision to use the aforementioned simplification or not. Without the simplification the discretization error is about 10 times bigger. Even more confusing is the calculated pressure, which I attached. I don't understand why the pressure would look so different in the boundary control volumes.

Have you seen something similar before and can tell me, if there is something wrong with my code? The pressure has been extrapolated with a zero order profile at the boundaries.
Attached Images
File Type: jpg pressure.jpg (61.5 KB, 15 views)
eltenedor is offline   Reply With Quote

Old   February 21, 2015, 20:04
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
as the identity requires Div v = 0, I suppose you can have some high residual in the continuity equation.
Furthermore, do not use the absolute pressure but its gradient as comparison terms
FMDenaro is offline   Reply With Quote

Old   February 22, 2015, 05:46
Default
  #3
New Member
 
Fabian Gabel
Join Date: Oct 2014
Location: Darmstadt
Posts: 13
Rep Power: 12
eltenedor is on a distinguished road
I checked the residual of the continuity equation (right hand side of the pressure correction) and it is low (1.7269e-09). Furthermore continuity seems to be preserved locally, since each line of the linear system has an almost zero right hand side coefficient (maximum absolute value: 1.9118e-10).

Checking the pressure gradients shows the same strange behavior at the domain boundaries, I attached the results, the left plot represents the calculation using the simplification of the diffusive term.

What seems to be contradicting the fact that the residual of the continuity equation is low, can be seen in the third attachment. I calculated the additional contribution \sum_{f} \left( \frac{\delta u_j}{\delta x_i}\right)_f n_j S_f for each cell , n_j being the face normal unit vector and S_f being the surface area, and it doesn't vanish at all at certain domain boundaries.
Attached Images
File Type: jpg gradpx.jpg (61.4 KB, 6 views)
File Type: jpg gradpy.jpg (61.4 KB, 6 views)
File Type: jpg contribx.jpg (61.4 KB, 8 views)
eltenedor 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 03:15
Implicitisation of viscous terms Michael Halls-Moore Main CFD Forum 0 April 3, 2006 08:52
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13
K-Epsilon model? Brindaban Ghosh Main CFD Forum 2 June 24, 2000 05:22


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