|
[Sponsors] |
How to print solver info. every N steps to screen (e.g.Terminal)? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 18, 2021, 11:36 |
How to print solver info. every N steps to screen (e.g.Terminal)?
|
#1 |
Senior Member
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14 |
Dear Foamers,
I don't want see the OF solver screen-info. every step. Instead, let the solution info. to be printed to screen every N steps. How to achieve this? I know that we can switch off those screen info. in the OF's global controlDict (1 to 0): Code:
$HOME/OpenFOAM/$WM_PROJECT_VERSION/controlDict SolverPerformance 1; lduMatrix 1; Last edited by keepfit; October 18, 2021 at 16:06. |
|
October 23, 2021, 13:56 |
|
#2 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9 |
I don't know if it is possible or not to achieve that via tweaking of the global controlDict or switches. One way I can think of is, to disable the output then use a function object to print that information.
Maybe using something like solverInfo function object? you can then change the writeInterval of that FO accordingly. Of course, You can also achieve that using a custom function object/coded function object. |
|
October 25, 2021, 02:08 |
|
#3 | |
Senior Member
David Long
Join Date: May 2012
Location: Germany
Posts: 104
Rep Power: 14 |
Quote:
Actually I am coding a new CFD framework that is compatible with OF in terms of high level syntax, but the low level ( fv discretization, field interpolation, BCs and sparse linear system ...) functionaries are written with pure C++17 data structure/STL. The Ax=B is solved by third-party linear solvers (e.g. Petsc). By doing this, I will be finally free of OF's overly-complicated APIs after so many years headache , and could 100% focus on actual algorithms . |
||
Tags |
interval, solver performance, timesteps |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points | Simurgh | OpenFOAM Meshing & Mesh Conversion | 4 | August 25, 2023 08:58 |
Unsteady Restart Divergence | pro_ | SU2 | 6 | May 20, 2020 16:17 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |
More info about MAC solver | Maciej Matyka | Main CFD Forum | 3 | June 13, 2001 05:11 |