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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2016, 18:18
Question Access to continuity info using a controlDict function?
  #1
New Member
 
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 7
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 15:13.
New_Old is offline   Reply With Quote

Old   November 29, 2016, 03:25
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 18
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, 15:12
Default
  #3
New Member
 
Jay B.
Join Date: Nov 2016
Posts: 12
Rep Power: 7
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 17:22
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 05:09
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42


All times are GMT -4. The time now is 22:54.