CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Grid convergence error properties for compressible solvers

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Vivio

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 19, 2022, 16:59
Default Grid convergence error properties for compressible solvers
  #1
New Member
 
Join Date: Dec 2019
Posts: 11
Rep Power: 6
Vivio is on a distinguished road
Hi everyone,

I am doing a simple comparative study for compressible solvers in OpenFOAM v2106 to validate a solver I have written (and for a comparison with overset schemes, which are supposed to be bad at this sort of thing), using a simple 1D shock tube case. The initial conditions are p = 100kPa and T = 348K on one side of the diaphragm and p = 10kPa and T = 278K on the other side. There is a zero gradient boundary condition at each end of the tube (it is open, so that the shock will not reflect) and the other boundaries in the y- and z- directions are empty such that the simulation is 1D

As expected, the density-based rhoCentralFoam gives me better shock definition than the pressure-based rhoPimpleFoam for the same cell sizes, However, when I was checking the grid convergence properties, even on a simple single grid with the standard solvers, the order of convergence of the L2 error with cell size is not even 1st order, even with rhoCentralFoam.

The attached graph shows the L2 error of density over the entire domain compared with an exact solution using an explicit Riemann solver (not OpenFOAM, it is written in Python), at a time of 0.005s, which is before the shock reaches the end of the shock tube. Is this the limit of performance I can expect with OpenFOAM when it comes to capturing shock waves, or am I doing something wrong? Is there a different error metric I should be benchmarking with rather than the L2 norm?

I am not expecting 2nd order convergence but I had expected it would be better than 1st order at least.

Best regards,
Vivio
Attached Images
File Type: png Figure_2.png (34.4 KB, 9 views)
arjun likes this.
Vivio is offline   Reply With Quote

Old   August 20, 2022, 06:02
Default
  #2
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,272
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
The major issue is the flux dissipation that is added to keep the solutions stable etc. This has huge impact on the accuracy of the solution.

This I learned during creation of third order model for Wildkatze solver.

To show the impact of flux dissipation, consider Taylor Green Vortex benchmark and for this on a particular fine enough mesh.

These are the error L1 values (This is from my validation cases)

1. Third order solver, normal dissipation 6E-10

2. With recently improved dissipation: 1.0E-10

Just by improving the dissipation error dropped by 5 times.


3. Errors with NO flux dissipation at all, 5E-11.


In my case I have much better convergence order than what you shown (With the mesh refinement) but have to keep the flux dissipation in because without that solver is not stable mostly.

( https://fvus.github.io/wildkatze/art...thirdorderflow)

Note the graph here is 2 years old, i will update it with current values , now that i have noticed it.

In case of Riemann problem, ,the error due to dissipation could be even higher (this is based on my experience with fluxes). Which is probably what is killing the solution there (just a guess).


/Arjun
arjun 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
Grid convergence study StarCCM+ mtheory STAR-CCM+ 3 July 13, 2021 22:14
Problems with convergence and grid independence study nikn CFX 0 August 26, 2015 06:32
having problems with performing grid convergence study in SWFS drdet FloEFD, FloWorks & FloTHERM 12 January 22, 2015 04:44
[ANSYS Meshing] Grid convergence study AS_Aero ANSYS Meshing & Geometry 1 June 7, 2013 04:29
Grid Independent Solution Chuck Leakeas Main CFD Forum 2 May 26, 2000 11:18


All times are GMT -4. The time now is 01:56.