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

Access to continuity info using a controlDict function?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 19:18
Question Access to continuity info using a controlDict function?
  #1
New Member
 
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 10
New_Old is on a distinguished road
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
        );
}
1. It works great for extracting e.g. P, U and T residuals, but is it possible to extract local and global continuity errors in a similar way?

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.
New_Old is offline   Reply With Quote

Old   November 29, 2016, 04:25
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21
floquation will become famous soon enough
Quote:
Originally Posted by New_Old View Post
2. While we're at it, what's your favorite way to monitor conservation of mass, momentum, and energy in OpenFOAM
I use "pyFoamPlotWatcher.py" from pyFoam, which is a package that contains several useful utilities for OpenFoam. Also have a look at "customRegexp" in the same link.
floquation is offline   Reply With Quote

Old   December 2, 2016, 16:12
Default
  #3
New Member
 
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 10
New_Old is on a distinguished road
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.
New_Old is offline   Reply With Quote

Reply

Tags
continuity, controldict, residuals


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
[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


All times are GMT -4. The time now is 10:19.