|
[Sponsors] |
How does the artificial compressibility affects the accurary of a solution? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 23, 2017, 14:16 |
How does the artificial compressibility affects the accurary of a solution?
|
#1 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Hi
I would like to know how the artificial compressiblity may affect the accurary of a transient solution. The objective I am pursuing is simulating an imcompressible flow. I have two options: First option is assuming fluid is completely incompressible, which means that the sound velocity in the fluid is infinite (c= inf, M_p = 0). Second option is assuming fluid is not completely incompressible, which means that the sound velocity is finite (c!=inf, M_p!=0), but not low (i.e., Mach = 0.01) Will the solution obtained vary? I am simulating a flow past a circular cylinder and this is the behaviour I am observing: The flow oscilates behind the cilinder at Re=100. Assuming total incompresibility, I am obtaining Strouhal = 0.175 Assuming certain artificial incompressiblity, I am obtaining Strouhal = 0.1645, which matches the value appearing in the references. It appears that when using artificial incompressiblity the algorithm behaves better than when assuming total incompressiblity. Any comment / opinion is welcome. Thanks, Hector. |
|
April 23, 2017, 14:29 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
By a physical point of view, M=0.01 is practically corresponding to the incompressible model (at least if you do not have an acceleration along the cylinder such to have a greater local Mach number).
However, the compressible and incompressible numerical models produce difference in the description of the pressure field (sound wave). In the latter, there is no description of sound waves travelling during the transient, the spread istantaneously. The compressible model at such a low Mach is stiff, but if you adopt suitable technique you can describe, with small time steps, the acosutic waves travelling. In any case, the velocity field solved by the two methods should be practically equal. My opinion is that the artifical compressibility technique is more adequate to a steady solution than to a description of a transient. To give you more help you should provide some plots of the fields, the Strouhal number is a global parameter that cannot provide more detailed infos about the solutions. |
|
April 24, 2017, 16:12 |
|
#3 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
I am uploading some pictures of the velocity(x component) and pressure at different instants (0, T/4, 2T/4, 3T/4, 4T/4).
I hope this will help. I would like to comment also that when I double the Reynolds number (from 100 to 200), the dicrepancy observed in the incompressiblity limit decreases. I mean, it is aligned with the value obtained by references. The error I got for Re200 is approx 1-2%, whereas at Re100 the error is 7-8%. It appears as the viscosity decreases, the error obtained is fewer. This behaviour is not observed in a stationary simulation, where the error obtained (less than 0.1%) is independent of the Reynolds number. |
|
April 24, 2017, 16:15 |
|
#4 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
More pictures for velocity x component
|
|
April 24, 2017, 16:28 |
|
#5 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
1) you have clearly a problem in the outflow
2) I am not able to understand the comparison between the two cases 3) Are you sure that the time and space discretizations are of the same type and accuracy? |
|
April 24, 2017, 16:56 |
|
#6 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
The time and space discretization are of second order, O(delta t ^2) and O(delta x ^ 2). |
||
April 24, 2017, 16:59 |
|
#7 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
From the oscillations in the pressure field, at upper and lower corners of the right edge of the domain. The type of discretization in time and space is the same? |
||
April 24, 2017, 17:10 |
|
#8 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
Sorry for asking about this, it is only to give you a proper answer. I am using a an implicit scheme for both pressure and velocity. I am evaluating velocity and pressure at nodal points. So, for a tria element that I am using, I have three nodes (vertices of the triangle) where the velocity and pressure are evaluated. Is this what you are referring to? |
||
April 24, 2017, 17:14 |
|
#9 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
If you are using FE, I mean if the same shape functions are used and if the time advancement is performed in the same way and same time step.
But before that, check for the error at outflow |
|
April 24, 2017, 17:47 |
|
#10 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
The same shape functions are used for velocity and presure (Linear interpolation), and the same time step is used in both equations (momentum and pressure). Regarding your second point (error in the outflow), when I analyzed the outflow pattern (a couple of weeks ago) I saw an oscilating pattern in the pressure field, but I understood that in the same way the velocity oscilates (both along and transversal velocity oscilate), this should apply to the pressure field. For coming into this conclusion, I am thought about the Bernoulli equation: the sum of energy should remain constant. So if the velocity diminishes, the pressure should increase (and other way around). I have integrated the flow at the outlet, for several time step, and it has the same value as for the inflow (in order to double check there is not any loss of mass). I mean, althouth the velocity oscilates, the sum of velocity at all points at the exit should remain constant. |
||
April 24, 2017, 17:50 |
|
#11 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Bernoulli does not apply for viscous and rotational flows due to the dissipative effects.
It has also a different form for unsteady velocity but only provided that the velocity depends on a potential. |
|
April 24, 2017, 17:54 |
|
#12 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
A constant pressure field at all the points of the domain? I would expect a pressure drop between the front and rear part of the cylinder, which may oscilate. But at the exit, constant independent of the velocity field? |
||
April 24, 2017, 17:58 |
|
#13 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
You should get a regular pressure field without those spots at corners
|
|
April 24, 2017, 18:15 |
|
#14 |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
||
April 24, 2017, 18:20 |
|
#15 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
almost constant, if the outflow is not located quite far from the body you have some effects due to the vortex shedding but along the centerline, there is no physical reason to have two pressure spots at the corners
|
|
April 24, 2017, 18:39 |
|
#16 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
see this example
https://www.google.it/imgres?imgurl=...act=mrc&uact=8 |
|
April 25, 2017, 12:19 |
|
#17 | |
Senior Member
Hector Redal
Join Date: Aug 2010
Location: Madrid, Spain
Posts: 243
Rep Power: 17 |
Quote:
Thanks for your support. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFL Condition | Matt Umbel | Main CFD Forum | 19 | June 30, 2020 09:20 |
grid dependancy | gueynard a. | Main CFD Forum | 19 | June 27, 2014 22:22 |
Artificial Viscosity | Luiz Eduardo Bittencourt Sampaio | Main CFD Forum | 12 | November 13, 2011 11:21 |
the artificial compressibility method | nsreddysrsit | OpenFOAM | 1 | December 19, 2010 09:19 |
Wall functions | Abhijit Tilak | Main CFD Forum | 6 | February 5, 1999 02:16 |