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

How to get steady result in pitzDaily using LES model

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

Like Tree9Likes
  • 2 Post By RobertHB
  • 1 Post By mzzmrt
  • 1 Post By RobertHB
  • 1 Post By RobertHB
  • 2 Post By mzzmrt
  • 2 Post By RobertHB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 15, 2018, 06:19
Default How to get steady result in pitzDaily using LES model
  #1
New Member
 
Yuan Jiahui
Join Date: Oct 2018
Posts: 9
Rep Power: 7
yuanjiahui is on a distinguished road
Hi Foamers,
I am trying to use simpleFoam to solve pitzDaily with LES model and compare the results between LES model and RAS model (k-epsilon model). And I change part codes in tutorials(incompressibel/pisoFoam/les/pitzDaily), but the caculation is not convergent no matter how long the running time I set. Here is my changes:
1.fvsolution
solvers
{
p
{
solver GAMG;
tolerance 1e-06;
relTol 0.1;
smoother GaussSeidel;
}

pFinal
{
$p;
smoother DICGaussSeidel;
tolerance 1e-06;
relTol 0;
}

"(U|k|B|nuTilda|s)"
{
solver smoothSolver;
smoother GaussSeidel;
tolerance 1e-05;
relTol 0;
}
}

SIMPLE
{
nNonOrthogonalCorrectors 0;
consistent yes;

residualControl
{
p 1e-2;
"(pFinal|U|B|nuTilda|s)" 1e-3;
}
}

relaxationFactors
{
equations
{
U 0.9; // 0.9 is more stable but 0.95 more convergent
".*" 0.9; // 0.9 is more stable but 0.95 more convergent
}
}

2.conrtolDict

application simpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 2000;

deltaT 1;

writeControl timeStep;

writeInterval 100;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

Please tell why I can not get steady result in LES model

Best regards,
yuanjiahui
yuanjiahui is offline   Reply With Quote

Old   October 16, 2018, 06:01
Default
  #2
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Do your calculations with a transient solver like pisoFoam or pimpleFoam. Then compare similar time steps.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   October 16, 2018, 08:05
Default
  #3
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
You have to use a transient solver for LES but for comparison with RAS results, you can add "fieldAverage" function within controlDict for getting the mean values of U and p.
yuanjiahui likes this.
mzzmrt is offline   Reply With Quote

Old   October 16, 2018, 08:48
Default
  #4
New Member
 
Yuan Jiahui
Join Date: Oct 2018
Posts: 9
Rep Power: 7
yuanjiahui is on a distinguished road
Hi mzzmrt.Can I get a steady result with a transient solver like pisoFoam in LES model?
yuanjiahui is offline   Reply With Quote

Old   October 16, 2018, 08:57
Default
  #5
New Member
 
Yuan Jiahui
Join Date: Oct 2018
Posts: 9
Rep Power: 7
yuanjiahui is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
Do your calculations with a transient solver like pisoFoam or pimpleFoam. Then compare similar time steps.
Hi RobertHB. I intended to caculate with simpleFoam, but then I found that LES model does not work with simpleFoam. So can I get steady result with pisoFoam in LES model and compare it with RANS model?
yuanjiahui is offline   Reply With Quote

Old   October 16, 2018, 09:36
Default
  #6
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
In short, no. pisoFoam calculates a transient, time dependant solution. And you use LES to resolve the transient flow without averaging like RAS does.
If you want a steady, time independant, solution use simpleFoam and a RAS model.
If you want to compare LES and RAS, you can do so by comparing the steady RAS and the transient RAS and LES results.
yuanjiahui likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   October 16, 2018, 09:57
Default
  #7
New Member
 
Yuan Jiahui
Join Date: Oct 2018
Posts: 9
Rep Power: 7
yuanjiahui is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
In short, no. pisoFoam calculates a transient, time dependant solution. And you use LES to resolve the transient flow without averaging like RAS does.
If you want a steady, time independant, solution use simpleFoam and a RAS model.
If you want to compare LES and RAS, you can do so by comparing the steady RAS and the transient RAS and LES results.
I sorry to bother you again. But I do not understand your last words "you can do so by comparing the steady RAS and the transient RAS and LES results". The problem for me is that how to caculate a case like pitzDaily with both LES and RANS and compare the final results of them.

regards
yuanjiahui is offline   Reply With Quote

Old   October 16, 2018, 10:20
Default
  #8
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by yuanjiahui View Post
The problem for me is that how to caculate a case like pitzDaily with both LES and RANS and compare the final results of them.
Do two simulations, one with pisoFoam RAS and a second one with pisoFoam LES.
Conduct both for the same runtime.
yuanjiahui likes this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Old   October 16, 2018, 14:02
Default
  #9
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
Add this to your controlDict, solve LES with pisoFoam and check the results in paraview:



functions
{
fieldAverage1
{
type fieldAverage;
functionObjectLibs ("libfieldFunctionObjects.so");
enabled true;
outputControl outputTime;

fields
(
U
{
mean on;
prime2Mean off;
base time;
}

p
{
mean on;
prime2Mean off;
base time;
}
);
}
}
RobertHB and yuanjiahui like this.
mzzmrt is offline   Reply With Quote

Old   October 16, 2018, 21:37
Default
  #10
New Member
 
Yuan Jiahui
Join Date: Oct 2018
Posts: 9
Rep Power: 7
yuanjiahui is on a distinguished road
Quote:
Originally Posted by RobertHB View Post
Do two simulations, one with pisoFoam RAS and a second one with pisoFoam LES.
Conduct both for the same runtime.
No, one is with simpleFoam RAS and the second one is with pisoFoam LES and there is measurement data in steady state need to be comparaed.
yuanjiahui is offline   Reply With Quote

Old   October 17, 2018, 04:06
Default
  #11
Senior Member
 
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 11
RobertHB is on a distinguished road
Quote:
Originally Posted by yuanjiahui View Post
No, one is with simpleFoam RAS and the second one is with pisoFoam LES and there is measurement data in steady state need to be comparaed.
Compare whatever you want, but notice that LES is a transient turbulence simulation, not steady. So either compare different timesteps to your steady solution or use a long runtime and the average approach suggested by mzzmrt. You can also use the "Temporal Statistics" filter of paraview to get an average over the total runtime.
yuanjiahui and NewtonianGuy like this.
__________________
If you liked my answer to your question, please consider leaving a "Like" in return
RobertHB is offline   Reply With Quote

Reply

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
Implement an les turbulence model pante OpenFOAM Programming & Development 19 December 5, 2014 17:16
SpalartAllarmasIDDES LES model mmmn036 OpenFOAM Running, Solving & CFD 1 April 23, 2014 21:01
Virtual inheritance problem while adding public member function to LES SGS Model konneym OpenFOAM Programming & Development 4 November 4, 2013 12:37
OpenFOAM: LES turbulence model names Ollie OpenFOAM 5 January 7, 2013 11:24
OpenFOAM: LES turbulence model names Ollie Main CFD Forum 1 April 11, 2011 14:03


All times are GMT -4. The time now is 06:41.