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

residuals curve and results doesn't look fine, any suggestion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2024, 04:02
Default residuals curve and results doesn't look fine, any suggestion
  #1
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
hi i was doing some analysis and the residual curve doesn't look so optimistic as all ux and uy uz are horizontal and they didn't reach 1 e-6
so i am not sure that the results are trusted and in para view they flow doesn't go as i expected.
any suggestion and thought what should be revised in pre processing ?
Attached Images
File Type: jpg MicrosoftTeams-image.jpg (59.3 KB, 23 views)
Zomzzz is offline   Reply With Quote

Old   March 8, 2024, 11:10
Default
  #2
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Zomzzz View Post
hi i was doing some analysis and the residual curve doesn't look so optimistic as all ux and uy uz are horizontal and they didn't reach 1 e-6
so i am not sure that the results are trusted and in para view they flow doesn't go as i expected.
any suggestion and thought what should be revised in pre processing ?
Please provide more information:


- Give a general view of what case you are trying to simulate. Turbomachinery, external flow around a car, etc...

- Is the problem steady or transient? By the results I assume it's steady but still. Incompressible or not.

- If possible show the fvSchemes.


- Show the checkMesh log
unilord is offline   Reply With Quote

Old   March 10, 2024, 01:11
Default
  #3
New Member
 
Join Date: Apr 2019
Posts: 2
Rep Power: 0
yomn is on a distinguished road
the cae is baically a room where i blow hot air from some diffuser, i already checked the check mesh all is ok and all within the limits,

here is the fvscheme file:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}

ddtSchemes
{

default steadyState;

}

gradSchemes
{

default cellLimited leastSquares 1;

}

divSchemes
{

default none;

div(phi,omega) bounded Gauss upwind default;

div(phi,T) bounded Gauss upwind default;

div(phi,U) bounded Gauss upwind grad(U);

div((nuEff*dev2(T(grad(U))))) Gauss linear;

div(phi,k) bounded Gauss upwind grad(k);

}

laplacianSchemes
{

default Gauss linear limited corrected 0.333;

}

interpolationSchemes
{

default linear;

}

snGradSchemes
{

default limited corrected 0.333;

}

fluxRequired
{

default no;

}
wallDist
{
method meshWave;
}
yomn is offline   Reply With Quote

Old   March 10, 2024, 10:57
Default
  #4
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by yomn View Post
the cae is baically a room where i blow hot air from some diffuser, i already checked the check mesh all is ok and all within the limits,

here is the fvscheme file:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}

ddtSchemes
{

default steadyState;

}

gradSchemes
{

default cellLimited leastSquares 1;

}

divSchemes
{

default none;

div(phi,omega) bounded Gauss upwind default;

div(phi,T) bounded Gauss upwind default;

div(phi,U) bounded Gauss upwind grad(U);

div((nuEff*dev2(T(grad(U))))) Gauss linear;

div(phi,k) bounded Gauss upwind grad(k);

}

laplacianSchemes
{

default Gauss linear limited corrected 0.333;

}

interpolationSchemes
{

default linear;

}

snGradSchemes
{

default limited corrected 0.333;

}

fluxRequired
{

default no;

}
wallDist
{
method meshWave;
}

From the fvSchemes solely, I can tell that you should use a second order scheme for the convective term "grad(U)". linearUpwind is a good choice.

Again, I would like to see the checkMesh in order to evaluate two main things: If you have more tetrahedrals than hexahedrals, I would sugest swapping the leastSquares to Gauss linear, since I have found that it is more suitable in cells with less faces. Other, the maximum non orthogonality, in order to understand the snGradScheme. If it is lower than 60 you can go with corrected.


With this said, I do believe the problem you have might be due to the boundary conditions. Can you show them?
unilord is offline   Reply With Quote

Old   March 13, 2024, 03:52
Default
  #5
New Member
 
Join Date: Jan 2024
Posts: 10
Rep Power: 2
Zomzzz is on a distinguished road
here is the text file and i copied U/p file and check mesh output as well, thanks in advance.
Attached Files
File Type: txt mesh_check_boundary_conditions.txt (5.9 KB, 3 views)
Zomzzz is offline   Reply With Quote

Old   March 13, 2024, 04:39
Default
  #6
Member
 
Pedro Gouveia
Join Date: Oct 2022
Location: Portugal
Posts: 59
Rep Power: 3
unilord is on a distinguished road
Quote:
Originally Posted by Zomzzz View Post
here is the text file and i copied U/p file and check mesh output as well, thanks in advance.
Well,

To be honest, I don't find anything to be wrong with this setup. The only things I would say are:

- You really have 252 million cells? I never saw something like that in Openfoam. Just out of curiosity, how much time did it take to do 1000 iterations?

- I have worked with static pressure outlet/total pressure inlet bc's and I have found that they can be quite unstable. Can't you swap to a flow rate outlet and static pressure outlet or vice versa?

- I would also sugest you to try and work with full upwind schemes and cellLimited Gauss Linear 1, just for a first approximation to see if the
pressure residuals are that high because of the schemes.

- I haven't had a look at th fvSolution but that also affects the solver. Are you using GAMG for the pressure? Try and use "nCellsInCoarsestLevel = 1000". For initial iterations I always use relTol=0.01 and tolerance = 1e-8. If the GAMG solver doesn't work you can try another one (PBiCGStab).

Other than this, I wouldn't be able to give you any other tips. If anyone more experienced than me could have a look at this that would be great.
unilord 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
Pump Curve from Simulation Differs Significantly from Test Curve jambi FLUENT 0 February 14, 2024 03:33
Transient simulation gives worse results than steady state simulation jgross CFX 12 January 21, 2021 12:21
Fan performance curve: Deviation to test results depending on initial values Wolfram CFX 19 January 25, 2019 04:36
Hleps for define BH curve for soft magnetics sunteng1212 ANSYS 0 May 17, 2016 20:21
Fan Curve Model with CHT simulation mariconeagles96 CFX 5 April 22, 2015 01:31


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