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

Plot residual in transient simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By SHUBHAM9595

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2023, 14:03
Default Plot continuity error in transient simulation
  #1
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Hi Foamers,
Would you please tell me how can I plot continuty residuals at the end of simulation and also, local residual along simulation.

Last edited by saeed jamshidi; October 18, 2023 at 08:38.
saeed jamshidi is offline   Reply With Quote

Old   October 12, 2023, 08:09
Default
  #2
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Is there someone to guide me how can I plot continuty error?!
Shall I implement the below code in my controlDict/function?
thanks.
Code:
continuityError1
{
    // Mandatory entries (unmodifiable)
    type            continuityError;
    libs            (fieldFunctionObjects);

    // Optional entries (runtime modifiable)
    phi             phi;

    // Optional (inherited) entries
    writePrecision  8;
    writeToFile     true;
    useUserTime     true;
    region          region0;
    enabled         true;
    log             true;
    timeStart       0;
    timeEnd         1000;
    executeControl  timeStep;
    executeInterval 1;
    writeControl    timeStep;
    writeInterval   1;
}
saeed jamshidi is offline   Reply With Quote

Old   October 18, 2023, 06:29
Default
  #3
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Any idea??
saeed jamshidi is offline   Reply With Quote

Old   October 26, 2023, 08:25
Default
  #4
Member
 
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9
SHUBHAM9595 is on a distinguished road
Hi Saeed,

You can find more details here Tutorial of how to plot residuals !
saeed jamshidi likes this.
SHUBHAM9595 is offline   Reply With Quote

Old   October 26, 2023, 08:51
Thumbs up
  #5
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Dear SHUBHAM9595, thanks for the reply.

Excellent source.
saeed jamshidi is offline   Reply With Quote

Old   October 28, 2023, 13:20
Default
  #6
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8
saeed jamshidi is on a distinguished road
Quote:
Originally Posted by saeed jamshidi View Post
Is there someone to guide me how can I plot continuty error?!
Shall I implement the below code in my controlDict/function?
thanks.
Code:
continuityError1
{
    // Mandatory entries (unmodifiable)
    type            continuityError;
    libs            (fieldFunctionObjects);

    // Optional entries (runtime modifiable)
    phi             phi;

    // Optional (inherited) entries
    writePrecision  8;
    writeToFile     true;
    useUserTime     true;
    region          region0;
    enabled         true;
    log             true;
    timeStart       0;
    timeEnd         1000;
    executeControl  timeStep;
    executeInterval 1;
    writeControl    timeStep;
    writeInterval   1;
}
This works too.
saeed jamshidi is offline   Reply With Quote

Reply


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
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 03:42
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 15:05
Wrong fluctuation of pressure in transient simulation caitao OpenFOAM Running, Solving & CFD 2 March 5, 2015 22:33
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58


All times are GMT -4. The time now is 01:23.