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

Can't get residual plot for K and Omega ?!!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 18, 2019, 08:12
Default Can't get residual plot for K and Omega ?!!!
  #1
Member
 
Os
Join Date: Jun 2017
Posts: 80
Rep Power: 8
losiola is on a distinguished road
Hello foamers,
I am making a simulation using the komega sst turbulence model and i am monitoring the residuals in real time but unfortunately i only get plots for the P Ux and Uy but cant get residual plots for the K and Omega ?! is there any suggestiong about how to resolve this issue?!!
losiola is offline   Reply With Quote

Old   May 22, 2019, 03:04
Default
  #2
Member
 
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 38
Rep Power: 8
HenrikJohansson is on a distinguished road
Hi,

Is the turbulence turned on?
How are you monotoring your residuals?
We need more information to help you. Read the following post if you wan't better help with our problems in the future: How to give enough info to get help

Your problem can probably be solved by reading this thread: Tutorial of how to plot residuals !
__________________
/ Henrik Johansson
HenrikJohansson is offline   Reply With Quote

Old   May 22, 2019, 04:26
Default
  #3
Member
 
Os
Join Date: Jun 2017
Posts: 80
Rep Power: 8
losiola is on a distinguished road
Quote:
Originally Posted by HenrikJohansson View Post
Hi,

Is the turbulence turned on?
How are you monotoring your residuals?
We need more information to help you. Read the following post if you wan't better help with our problems in the future: How to give enough info to get help

Your problem can probably be solved by reading this thread: Tutorial of how to plot residuals !



Thank you for the Reply ,
in order to plot the residuals i have inserted this line in the controlDict File the flowing line

functions
{
#includeFunc residuals

}


Code:
application     pimpleFoam;

startFrom       latestTime;

startTime       0;

stopAt          endTime;

endTime         5;

deltaT          1e-5;

writeControl    adjustableRunTime;

writeInterval   1e-2;

purgeWrite      0;

writeFormat     binary;

writePrecision  10;

writeCompression off;

timeFormat      general;

timePrecision   6;

runTimeModifiable true;

adjustTimeStep  yes;

maxCo           0.9;

functions
{
#includeFunc residuals
 forces
    {
        type                forces;
        libs                ("libforces.so");
        writeControl        timeStep;
        writeInterval       10;
        patches             (wing);
        rho                 rhoInf;
        log                 true;
        rhoInf              1.2047;
        CofR                (0 0 0);
    }
forceCoeffs1
{
    // Mandatory entries
    type            forceCoeffs;
    libs            ("libforces.so");
    patches         (wing);


    // Optional entries

    // Field names
    p               p;
    U               U;
    rho             rhoInf;
    rhoInf         1.2047;
   // rhoInf            1.204;
    // Reference pressure [Pa]
    pRef            0;

    // Include porosity effects?
    porosity        no;

    // Store and write volume field representations of forces and moments
    writeFields     yes;

    // Centre of rotation for moment calculations
    CofR            (0 0 0);

    // Lift direction
    liftDir         (0 1 0);

    // Drag direction
    dragDir         (1 0 0);

    // Pitch axis
    pitchAxis       (0 0 -1);

    // Freestream velocity magnitude [m/s]
    magUInf         10.578;

    // Reference length [m]
    lRef            1;

    // Reference area [m2]
    Aref            1;

    // Spatial data binning
    // - extents given by the bounds of the input geometry

}
}

and In order to monitor the Residuals during the simulation runtime i use the command

Code:
 foamMonitor -l -r 1 postProcessing/residuals/0/residuals.dat &
this command allows me to monitor the residuals in real time while the simulation is runing using gnuPlot .


but as i said before the only curves i get are only for p Ux Uy and i dont get plots for k and Omega also the strange thing is once i directly open the file /postProcessing/residuals/0/residuals.dat i only can see residuals for P Ux and Uy and there is no sgine for the k and Omega residuals.










Hope you can help me
losiola is offline   Reply With Quote

Old   May 22, 2019, 10:23
Default
  #4
Member
 
Henrik Johansson
Join Date: Oct 2017
Location: Gothenburg
Posts: 38
Rep Power: 8
HenrikJohansson is on a distinguished road
Hi,

I have never used that way to plot the residuals.
I use either the way stated in the link I posted or using pyFoam:
Code:
pyFoamPlotRunner.py theSolverIamUsing
Both ways have worked for RANS and laminar flows for me. Never used LES in OpenFOAM.
__________________
/ Henrik Johansson
HenrikJohansson is offline   Reply With Quote

Old   May 23, 2019, 07:20
Default
  #5
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
read the manual: "The default fields whose residuals are captured are p and U. Should the user wish to configure other fields, they should make copy the residuals file in their system and edit the fields entry accordingly..


https://cfd.direct/openfoam/user-gui...hs-monitoring/

Last edited by mzzmrt; May 23, 2019 at 07:21. Reason: link added
mzzmrt is offline   Reply With Quote

Old   July 25, 2022, 06:23
Default
  #6
New Member
 
yasmine
Join Date: Jun 2022
Posts: 10
Rep Power: 3
yasmine is on a distinguished road
Hi, could you please solve this problem? I am in the same case.
I would appreciate any help.
Thanks in advance.
yasmine is offline   Reply With Quote

Old   July 25, 2022, 06:27
Default Can't get residual plot for K and Omega
  #7
New Member
 
yasmine
Join Date: Jun 2022
Posts: 10
Rep Power: 3
yasmine is on a distinguished road
Hello foamers,
I am making a simulation using the komega sst turbulence model and i am monitoring the residuals in real time but unfortunately i only get plots for the P Ux and Uy but cant get residual plots for the K and Omega ?! is there any suggestiong about how to resolve this issue?!!

Thanks in advance.
yasmine 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
transsonic nozzle with rhoSimpleFoam Unseen OpenFOAM Running, Solving & CFD 8 July 1, 2022 06:54
decompose dependent solution arionfard OpenFOAM 3 December 10, 2018 09:36
Free surface issues with interDyMFoam for hydroturbine oumnion OpenFOAM Running, Solving & CFD 0 October 6, 2017 14:05
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
should Courant number always be kept below 1? wc34071209 OpenFOAM Running, Solving & CFD 16 March 9, 2014 19:31


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