|
[Sponsors] |
Access to continuity info using a controlDict function? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 28, 2016, 19:18 |
Access to continuity info using a controlDict function?
|
#1 |
New Member
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 10 |
Hello everyone,
After using foamLog during my first days on OpenFOAM this week, I just discovered that it is possible to extract residuals simply by adding a function in controlDict. Something like that: Code:
residualsHot { functionObjectLibs ("libutilityFunctionObjects.so"); type residuals; region hotSide; outputControl timeStep; outputInterval 1; fields ( p_rgh U T ); } 2. While we're at it, what's your favorite way to monitor conservation of mass, momentum, and energy in OpenFOAM? I'm working on conjugate heat transfer problems and due to my total inexperience with OpenFOAM, I'm looking for the single most elegant and efficient way to closely monitor the convergence state of my CHT simulations so I can play with all the knobs available and quickly figure out which settings work best for my type of applications. Many thanks! /Jay Last edited by New_Old; December 2, 2016 at 16:13. |
|
November 29, 2016, 04:25 |
|
#2 | |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21 |
Quote:
|
||
December 2, 2016, 16:12 |
|
#3 |
New Member
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 10 |
Thanks Kevin, I will have a closer look at pyFoam.
Just to give some background, I am at the moment using OpenFOAM at home, on a low spec laptop. It's plenty enough to learn the basics of OpenFOAM. However, any external call like foamLog just kill the little performance I manage to squeeze out of the virtual machine. This is why I have rapidly decided to move away from the foamLog/Gnuplot type of combo, to instead aim for getting everything I need written at runtime. Hence my interest for function objects. |
|
Tags |
continuity, controldict, residuals |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] mesh airfoil NACA0012 | anand_30 | OpenFOAM Meshing & Mesh Conversion | 13 | March 7, 2022 18:22 |
[Gmsh] 3D coil mesh: can't create the volume? | RomainBou | OpenFOAM Meshing & Mesh Conversion | 3 | July 18, 2016 06:09 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 08:47 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |