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

OpenFoam programming new convergence criteria

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 10, 2021, 10:48
Post OpenFoam programming new convergence criteria
  #1
New Member
 
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 5
m_zanichelli is on a distinguished road
Hello everyone,

This is my first post in this forum but I've been reading you for months.

I have a problem regarding the possible convergence criteria already implemented in OpenFoam. I am working on my master thesis studying the flow over a RAE2822 airfoil in transonic conditions as in https://www.grc.nasa.gov/www/wind/va.../raetaf04.html .

As a SU2 user, quite new to OpenFoam, I expected to find a convergence criterion based on the convergence of an aerodynamic coefficient (lift or drag) (see https://su2code.github.io/docs_v7/Solver-Setup/).

Since I couldn't find anybody that did this before and having never modified a OF solver, I was wondering if the addition of this Cauchy convergence criterion could be done in a reasonable number of hours. Conceptually this is not that hard since I have an output file in the postProcessing folder that enlists the values of the coefficients and I should only access that file, select the window size (number of previous iterations), evaluate the standard deviation of those Cd values and stop if that's below some treshold, giving as output the average value of the aero coefficients. I have no idea on how to do it in OF and so I 'm asking if anybody has done it before or if that could be feasible otherwise. I am currently working on rhoCentralFoam as I need to solve Euler Equations for my project.

Please feel free to ask if anything is unclear.
m_zanichelli is offline   Reply With Quote

Old   August 11, 2021, 04:58
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
Hi,

I think you can use a function object: e.g. runTimeControl (see the "condition2" in the link).

Hope this helps a bit.
HPE is offline   Reply With Quote

Old   August 11, 2021, 05:06
Default
  #3
New Member
 
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 5
m_zanichelli is on a distinguished road
Quote:
Originally Posted by HPE View Post
Hi,

I think you can use a function object: e.g. runTimeControl (see the "condition2" in the link).

Hope this helps a bit.
Thank you very much for your answer. I have spent the past days looking for something like this
m_zanichelli is offline   Reply With Quote

Reply

Tags
#compressible, #convergence, #rhocentralfoam, #scripting


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
ANSYS Mechanical - change convergence criteria KeganLeckness Structural Mechanics 2 May 12, 2022 06:57
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin cfd.direct OpenFOAM Announcements from Other Sources 0 September 21, 2016 12:50
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 11:19
Convergence Criteria edwin FLUENT 1 February 14, 2008 20:24


All times are GMT -4. The time now is 00:59.