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

OpenFOAM V&V

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2011, 18:14
Default OpenFOAM V&V
  #1
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
I'm interested in finding Verification and Validation data on OpenFOAM for incompressible and compressible external aerodynamics for basic test cases.

The root of this question is a posting I made at Symscape, http://www.symscape.com/blog/new-str...fd-wind-tunnel

I realize that OpenFOAM is used by industry, academia, and hobbyists. There is even a workshop for it.

However, I am having difficulty finding systematic quantitative (i.e. not qualitative pretty colored pictures or top level slides) V&V information for OpenFOAM for simple geometries, i.e., flat plate, bump, forward/backward steps, lidded cavities, airfoils, wings, etc. This includes grid convergence studies.

Examples of what I am referring to, in regards to a NASA code CFL3D, are, http://cfl3d.larc.nasa.gov/Cfl3dv6/c...testcases.html or http://turbmodels.larc.nasa.gov/, or even http://aaac.larc.nasa.gov/tsab/cfdlarc/aiaa-dpw/

Does such information, to the extent one can reproduce the results, exist for OpenFOAM? Or is it up to each individual/group to work through V&V cases from scratch on their own?
Martin Hegedus is offline   Reply With Quote

Old   June 19, 2011, 16:24
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Martin,

I just saw this blog post and remembered about your thread: http://cfdtoy.blogspot.com/2011/05/m...ification.html

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 21, 2011, 16:53
Default
  #3
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Quote:
Originally Posted by Martin Hegedus View Post
I'm interested in finding Verification and Validation data on OpenFOAM for incompressible and compressible external aerodynamics for basic test cases.

However, I am having difficulty finding systematic quantitative (i.e. not qualitative pretty colored pictures or top level slides) V&V information for OpenFOAM for simple geometries, i.e., flat plate, bump, forward/backward steps, lidded cavities, airfoils, wings, etc. This includes grid convergence studies.

Does such information, to the extent one can reproduce the results, exist for OpenFOAM? Or is it up to each individual/group to work through V&V cases from scratch on their own?
We did some of this work (and we continue to do it, but the extra part isn't not published yet) and is published here:

COMPARISON OF SINGLE PHASE LAMINAR AND LARGE EDDY SIMULATION (LES) SOLVERS USING THE OPENFOAM(R) SUITE

VOLUME OF FLUID SIMULATION OF BORDA MOUTHPIECES

Results are checked against experiments and Fluent.

Hope this help
mm.abdollahzadeh likes this.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 21, 2011, 17:33
Default
  #4
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Thanks, it's a start.

In general, I've seen others raise the issue about grid convergence. (Lid-Driven Cavity from first paper).

Did you figure out why the lid driven cavity did not converge?

The fact that the residuals do not converge to machine zero is a little scary.
Martin Hegedus is offline   Reply With Quote

Old   June 21, 2011, 17:42
Default
  #5
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Hi, Do you refer to the problem of p residuals?

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 21, 2011, 17:49
Default
  #6
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Yes, that is correct.
Martin Hegedus is offline   Reply With Quote

Old   June 21, 2011, 18:00
Default
  #7
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Martin, this problem was reported several times, but I couldn't find a cure at that time. This is related to PISO loop and tolerances and type in p solver (I never played enough time with GAMG solver for example), I'm working in that now. If you could find a set of parameters that perform better It would be nice to share it with the community, particularly avoiding the plateau at ~1E-6.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 21, 2011, 19:49
Default
  #8
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
I don't use OpenFOAM that much. I get very frustrated with it. The vast majority of my cases are steady state external aero, both compressible and incompressible. In general I haven't had much luck with OpenFOAM. I figure it is my own personal issue since so many others use the code. So, instead, I wrote my own solver from scratch (compressible with equations coupled). That's been a lot of work. Especially the V&V stuff. However, at some point it would be nice to have more confidence in OpenFOAM and use it more.

If I come up with something that works for the lidded cavity, I'll share it here on this forum. BTW, is there a better place to share cases and solutions for OpenFOAM? http://www.cfd-online.com/Wiki/Valid...and_test_cases seems sparse and www.openfoam.com doesn't seem to be very, well, open in the sense of supplying a place for the OpenFOAM community to go to.
Martin Hegedus is offline   Reply With Quote

Old   June 21, 2011, 22:44
Default
  #9
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Quote:
Originally Posted by Martin Hegedus View Post
So, instead, I wrote my own solver from scratch (compressible with equations coupled). That's been a lot of work. Especially the V&V stuff. However, at some point it would be nice to have more confidence in OpenFOAM and use it more.
Well you're the kind of person which is essential as a user/developer in OpenFOAM, you have a lot of experience and a very critical vision of a code. I'm working with FOAM to write customized solvers and re-implementing some of them in Matlab (my advisor is working on that since he works with it the most), this task is very instructive but a bit slow.

Quote:
If I come up with something that works for the lidded cavity, I'll share it here on this forum. BTW, is there a better place to share cases and solutions for OpenFOAM? http://www.cfd-online.com/Wiki/Valid...and_test_cases seems sparse and www.openfoam.com doesn't seem to be very, well, open in the sense of supplying a place for the OpenFOAM community to go to.
Well, some vendors as ANSYS, etc. show a lot of benchmarks in their slide-shows, etc. but the real validation is ever spread in a lot of papers, since the validations are usually connected to a specific application.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 22, 2011, 00:21
Default
  #10
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Quote:
Originally Posted by santiagomarquezd View Post
Well, some vendors as ANSYS, etc. show a lot of benchmarks in their slide-shows, etc. but the real validation is ever spread in a lot of papers, since the validations are usually connected to a specific application.

Regards.
Papers are an important part of the process, but I'm also hoping there is a web resource where one can place grids, input decks, and results and "blog" (i.e. informally write) about the results. Another nice feature would be if others could comment on the results and contribute their own results. Something similar to these forum threads, but more focused on results than questions.

I haven't found one yet. A wiki (such as the V&V here at CFD Online), in my opinion, may not be appropriate. Wiki's are very formal and polished.
Martin Hegedus is offline   Reply With Quote

Old   June 22, 2011, 08:45
Default
  #11
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
At low Reynolds numbers (i.e. incompressible and laminar flow) we have reported successful comparison between OpenFOAM and wind tunnel experiments for external flows both for steady and unsteady regime. You could find more information in the following paper:

Bohorquez, P., Sanmiguel-Rojas, E., Sevilla, A., Jiménez-González, J., Martínez-Bazán, C. Stability and dynamics of the laminar wake past a slender blunt-based axisymmetric body. Journal of Fluid Mechanics, 676: 110-144 (2011) http://dx.doi.org/10.1017/s0022112011000358

Quote:
Originally Posted by Martin Hegedus View Post
I don't use OpenFOAM that much. I get very frustrated with it. The vast majority of my cases are steady state external aero, both compressible and incompressible. In general I haven't had much luck with OpenFOAM. I figure it is my own personal issue since so many others use the code. So, instead, I wrote my own solver from scratch (compressible with equations coupled). That's been a lot of work. Especially the V&V stuff. However, at some point it would be nice to have more confidence in OpenFOAM and use it more.

If I come up with something that works for the lidded cavity, I'll share it here on this forum. BTW, is there a better place to share cases and solutions for OpenFOAM? http://www.cfd-online.com/Wiki/Valid...and_test_cases seems sparse and www.openfoam.com doesn't seem to be very, well, open in the sense of supplying a place for the OpenFOAM community to go to.
pbohorquez is offline   Reply With Quote

Old   June 22, 2011, 09:52
Default
  #12
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 23
santiagomarquezd will become famous soon enough
Another ref. for my thesis!! Thanks for it and the downloading link.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   June 22, 2011, 12:55
Default
  #13
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Quote:
Originally Posted by pbohorquez View Post
At low Reynolds numbers (i.e. incompressible and laminar flow) we have reported successful comparison between OpenFOAM and wind tunnel experiments for external flows both for steady and unsteady regime. You could find more information in the following paper:

Bohorquez, P., Sanmiguel-Rojas, E., Sevilla, A., Jiménez-González, J., Martínez-Bazán, C. Stability and dynamics of the laminar wake past a slender blunt-based axisymmetric body. Journal of Fluid Mechanics, 676: 110-144 (2011) http://dx.doi.org/10.1017/s0022112011000358
Clearly a lot of work went into the paper and I found the results and topic interesting. I found the shift from steady axisymmetric, to steady non-axisymmetric, to unsteady cool. And I believe in the real world this transition exists. However, something usually sets off the transition, i.e. transitioning from steady axisymmetric to steady non-axisymmetric. In the case of the wind tunnel results I assume it is the sting which comes out the side of the model, i.e. the plane of symmetry for the non-axisymmetric, but symmetric, result is aligned with the side sting. But what transitions it for the axisymmetric CFD geometry? I assume it is the non-axisymmetric grid that was used. But was it? Where the results converged all the way? How was convergence measured? Depending on the solution algorithm and the case, I expect the results sometimes to converge non-axisymmetricly on a non-axisymmetric grid, at least until the residual has died down a lot. And the process is very non linear. The solution sits for a while and then moves rapidly to a new location, i.e. the axis. The flow is on the verge of being unstable, so all the perturbations (solution, grid, numerics, etc.) must be removed to the extent possible to get a true answer. Otherwise things get masked, i.e. the effects of the wind tunnel and sting. Or, bugs in the code.
Martin Hegedus is offline   Reply With Quote

Old   June 22, 2011, 13:16
Default
  #14
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Quote:
Originally Posted by Martin Hegedus View Post
The solution sits for a while and then moves rapidly to a new location, i.e. the axis.
Let me rephrase, The solution state sits for a while and then moves rapidly to a new state location, i.e. axisymmetric.
Martin Hegedus is offline   Reply With Quote

Old   June 22, 2011, 14:25
Default
  #15
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Yes, you are right. On the numerical side there are lots of parameters that affect the solution of any problem because they introduce errors: the topology of the mesh, cell elements, the implementation (segregated/coupled), the order of consistency, etc. And they affect the results because the mesh is always coarser than we want in the absence of exceptional numerical facilities.

But this happens with any numerical solver, not just with OpenFOAM. There are suitable problems that can be solved if you know how to drive the tool, otherwise the numericist wont succeed. Numerical algorithms are designed for specific purpose and, consequently, they continue growing. OpenFOAM implements a classical FVM formulations, it is not the Panacea.
pbohorquez is offline   Reply With Quote

Old   June 22, 2011, 14:57
Default
  #16
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Quote:
Originally Posted by pbohorquez View Post
But this happens with any numerical solver, not just with OpenFOAM. There are suitable problems that can be solved if you know how to drive the tool, otherwise the numericist wont succeed. Numerical algorithms are designed for specific purpose and, consequently, they continue growing. OpenFOAM implements a classical FVM formulations, it is not the Panacea.
Very true, and I definitely agree with "know how to drive the tool, otherwise the numericist wont succeed" That's the frustrating part. I'm not confident that I know how to drive OpenFOAM. Therefore, my personal chance of numerical success with the code is low. And sometimes I feel like I'm driving blind. Even with my experience writing and driving various research codes.

A question then. Were you able to converge the residuals for your steady results to machine zero, or at least to the point where you were very confident the residuals were heading there? I assume you did, but I'm looking for data points not based on my assumptions.
Martin Hegedus is offline   Reply With Quote

Old   June 22, 2011, 15:27
Default
  #17
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
In the case described in the paper, if the boundary condition of the body is set to slip, then the pressure and velocity residual drop to zero. When using 'no slip' the pressure residual may reach an asymptotic value (usually between 10^{-6} and 10^{-4}). However, I cannot ensure that it is due to the boundary condition. Why can you use a different interpolation and discretization scheme for each differential operator in each equation? Is there an optimal choice to guarantee the "well balanced" property and drop the residuals to machine accuracy?

Anyway, we are very happy with OpenFOAM results for incompressible flows. They converge as the mesh is refined and it is able to reproduce many non-linear transitions for a wide range of physical problems, even in the presence of the pressure plateau.
pbohorquez is offline   Reply With Quote

Old   June 22, 2011, 16:11
Default
  #18
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
Quote:
Originally Posted by pbohorquez View Post
In the case described in the paper, if the boundary condition of the body is set to slip, then the pressure and velocity residual drop to zero. When using 'no slip' the pressure residual may reach an asymptotic value (usually between 10^{-6} and 10^{-4}). However, I cannot ensure that it is due to the boundary condition. Why can you use a different interpolation and discretization scheme for each differential operator in each equation? Is there an optimal choice to guarantee the "well balanced" property and drop the residuals to machine accuracy?
Interesting. You mention boundary condition, or could it be the shear stress in the cell? For example the ratio of shear stress vs. delta pressure. You mentioned a range of asymptotic values. Is this a function of Reynolds number? An increase in the viscosity has the effect of dropping the Reynolds number. So, as the Reynolds number drops, does OpenFOAM have a harder time to converge? (sorry, asking the question doesn't mean I know the remedy. I don't.)

One of the reasons this is interesting is that eddy viscosity in the RANS equation basically lowers the local Reynolds number, i.e. viscosity goes up. Thus there is somewhat of a connection between the flows I usually deal with, and your low Reynolds number shapes.

This seems to match with santiagomarquezd.

Has anyone done a flat plate analysis with OpenFOAM and converged it to machine zero? (Edit: Oh, at low to high reynolds numbers)
Martin Hegedus is offline   Reply With Quote

Old   June 22, 2011, 17:03
Default
  #19
Member
 
Patricio Bohorquez
Join Date: Mar 2009
Location: Jaén, Spain
Posts: 95
Rep Power: 17
pbohorquez is on a distinguished road
Nice thoughts. The flat plane analysis is a good suggestion. If someone knows the answer please share it.

With respect to the shear stress in the cell, figure 16 in Alves, Oliveira & Pinho (2003), www.fe.up.pt/~fpinho/pdfs/ijnmf1.pdf, came to my mind. I don't know if it is a crazy idea but iterations in SIMPLE are analogous to "pseudo-time", so maybe there is some analogy between the asymptotic values for the pressure and for \tau_{xx}.
pbohorquez is offline   Reply With Quote

Old   June 22, 2011, 17:24
Default
  #20
Senior Member
 
Martin Hegedus
Join Date: Feb 2011
Posts: 500
Rep Power: 19
Martin Hegedus is on a distinguished road
I did I quick internet search and found OpenFOAM results for flat plates, both laminar and turbulent. I have not seen any residual plots and the results I saw are for x stations that have much higher Rex than the reynolds number of interest here. So nothing conclusive.
Martin Hegedus 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


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