|
[Sponsors] |
OpenFoam programming new convergence criteria |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 10, 2021, 10:48 |
OpenFoam programming new convergence criteria
|
#1 |
New Member
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
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. |
|
August 11, 2021, 04:58 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Hi,
I think you can use a function object: e.g. runTimeControl (see the "condition2" in the link). Hope this helps a bit.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
August 11, 2021, 05:06 |
|
#3 | |
New Member
Marco Zanichelli
Join Date: Jun 2021
Posts: 6
Rep Power: 5 |
Quote:
|
||
Tags |
#compressible, #convergence, #rhocentralfoam, #scripting |
|
|
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 |