CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] residuals function on OFv2412

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By tomf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2025, 16:12
Default residuals function on OFv2412
  #1
New Member
 
McV
Join Date: Oct 2022
Posts: 22
Rep Power: 5
technoB is on a distinguished road
Hi there,I am new to OpenFoam and i am struggling to figure out why my residuals function isn't creating a residuals files in postProcessing. Any guidance on this matter will be appreciated. Below is a copy of the functions in my controlDict: Thank you in advance


libs ("libOpenFOAM.so" "libforces.so");

functions
{
forces
{
type forces;
libs ("libforces.so");
patches (cylinder);
p p;
U U;
rho rhoInf;
rhoInf 1.225;
pRef 0;
porosity no;
writeFields yes;
writeControl timeStep;
writeInterval 10;
log true;
CofR (0 0 0);
pitchAxis (0 1 0);
}
forceCoeffs
{
type forceCoeffs;
libs ("libforces.so");
patches (cylinder);
p p;
U U;
rho rhoInf;
rhoInf 1.225;
pRef 0;
porosity no;
writeFields yes;
writeControl timeStep;
writeInterval 10;
log true;
CofR (0 0 0);
liftDir (0 1 0);
dragDir (1 0 0);
pitchAxis (0 1 0);
magUInf 12.26925; // $../0/U!Uinlet;
lRef 0.16 ; // $../system/blockMeshDict!diameter
Aref 0.16; // $../system/blockMeshDict!projArea;
}
residuals
{
type residuals;
libs ("libutilityFunctionObjects.so");
writeControl timeStep;
writeInterval 10;
log true;
fields
(
p
U
k
epsilon
);
}
streamlinesLine
{
type streamlines;
libs ("libfieldFunctionObjects.so");
name streamlines;
start (-24 -24 0);
end (-24 24 0);
nPoints 100;
fields (U);
writeControl timeStep;
writeInterval 10;
}
}

// ************************************************** *********************** //

Last edited by technoB; October 25, 2025 at 16:20. Reason: wrong thread
technoB is offline   Reply With Quote

Old   October 27, 2025, 11:57
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 666
Rep Power: 33
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

I think the type you would want is not residuals, but solverInfo

Regards,
Tom
technoB likes this.
tomf is offline   Reply With Quote

Reply

Tags
residuals. openfoam

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
New residuals function type in OF 2.4.0 not known Babis OpenFOAM Post-Processing 2 June 11, 2015 14:27
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 11:20
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 21:50


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