CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Plot residual in transient simulation (https://www.cfd-online.com/Forums/openfoam-solving/252291-plot-residual-transient-simulation.html)

saeed jamshidi October 10, 2023 13:03

Plot continuity error in transient simulation
 
Hi Foamers,
Would you please tell me how can I plot continuty residuals at the end of simulation and also, local residual along simulation.

saeed jamshidi October 12, 2023 07:09

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 October 18, 2023 05:29

Any idea??

SHUBHAM9595 October 26, 2023 07:25

Hi Saeed,

You can find more details here https://www.cfd-online.com/Forums/op...residuals.html

saeed jamshidi October 26, 2023 07:51

Dear SHUBHAM9595, thanks for the reply.

Excellent source.

saeed jamshidi October 28, 2023 12:20

Quote:

Originally Posted by saeed jamshidi (Post 858253)
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.


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