|
[Sponsors] |
New residuals function type in OF 2.4.0 not known |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 11, 2015, 12:06 |
New residuals function type in OF 2.4.0 not known
|
#1 |
New Member
Babis Tsimis
Join Date: May 2015
Posts: 2
Rep Power: 0 |
Dear all,
I just installed the OF 2.4.0 Deb packs created for Ubuntu and I wanted to check the new residuals function for a simple test case. Using the example mentioned on residuals.H in the src directory I included the following lines on my controlDict: Code:
functions { residuals { type residuals; outputControl timeStep; outputInterval 2; fields ( U p ); } } Code:
--> FOAM FATAL ERROR: Unknown function type residuals Valid functions are : 4 ( patchProbes probes sets surfaces ) The case I am testing is using the LTSReactingFoam solver and the tutorial included with that solver had the following lines in the controlDict: Code:
libs ( "libOpenFOAM.so" "libincompressibleTurbulenceModel.so" "libincompressibleRASModels.so" ); So the first question is, are the default 4 valid functions the expected behaviour, or is there possibly a problem with the OF 2.4.0 Deb packs? And the second question is which library from: Code:
/opt/openfoam240/platforms/linux64GccDPOpt/lib Regards, Babis ps. Well done to everyone involved developing OF! |
|
June 11, 2015, 13:49 |
|
#2 |
Senior Member
|
Hi,
The function is in libutilityFunctionObjects.so, you can add this line to function description: Code:
functionObjectLibs ("libutilityFunctionObjects.so"); Code:
functions { residuals { functionObjectLibs ("libutilityFunctionObjects.so"); type residuals; outputControl timeStep; outputInterval 2; fields ( U p ); } } To learn to which library function object belongs, you can go to $FOAM_SRC/postProcessing/functionObjects and look into subfolders (ex. field/Make/files contains line LIB = $(FOAM_LIBBIN)/libfieldFunctionObjects, so all function objects from field folder go to libfieldFunctionObjects.so library). |
|
June 11, 2015, 14:27 |
|
#3 |
New Member
Babis Tsimis
Join Date: May 2015
Posts: 2
Rep Power: 0 |
Cheers for the prompt reply Alexey!
This solved my problem, and now I can use the new foamMonitor script to plot the residuals on the go, very nice indeed! Thanks about the library info as well, in fact I did have a quick look at: Code:
$FOAM_SRC/postProcessing/functionObjects/utilities/Make/files |
|
Tags |
2.4.0, function object, residuals |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary Layer strange result | fernexda | OpenFOAM Running, Solving & CFD | 14 | January 15, 2015 08:21 |
interFoam/kOmegaSST tank filling with printStackError/Mules | simpomann | OpenFOAM Running, Solving & CFD | 3 | February 17, 2014 18:06 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
Elements that limit the Courant number | skabilan | OpenFOAM Running, Solving & CFD | 9 | July 3, 2008 13:07 |