|
[Sponsors] |
![]() |
![]() |
#1 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Hi,
I was reading the file "BEST-PRACTICES FOR LES IN FLUENT", the file recommends: Quote:
- MapFields?! (I believe it is for different geometries...but, needed in case there is a change in the mesh?) - once you've finished modeling the field using RANS, switch to LES and overwrite existing files (from RANS results)?! But if you take a non-ideal approach to the problem (fvSquemes, fvSolution), you would have to redo the whole process (RANS -> LES ...)? The intention of the post is not only to answer my question, but also to serve as a guide for future adventurers in LES. |
||
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 29 ![]() ![]() |
mapFields works perfectly well for identical geometries.
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |||
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Quote:
OR you simple copy the case and the latest timestep ![]() Quote:
Quote:
If your RANS is fine, you shouldnt need to much adjustments to make your LES run. And if RANS is fine, you will only need to tweak your LES, not both. |
||||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 ![]() |
How would you get a turbulent flow in OF with only a RANS field? You need means to trigger instabilities.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
How about having a high Re flow and a long simulation runtime? Or inducing the turbulence using perturbU or the turbulentInlet boundary condition. Having a solid object in your domain can cause turbulence behing/around your object.
|
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 ![]() |
1. Having just a high Re doesnt guarantee obtaining a turbulent field. In an error-free numerical solver, an initially laminar Poiseuille flow with Re*=1000000 will stay laminar, unless you introduce an instability.
2. Having obstacles in the flow may or may not trigger turbulence. It depends on many things. Besides, it may triggers turbulence in the wake generated by the blockage. 3. You could perfectly perturb a potential field with perturbU, if youre modelling wall bounded channels. I dont know whether extrapolating this method to any sort of flow will render useful. I remember that perturbU is an implementation of the work of Schoppa & Hussain, which provides an unstable mode for channel flows. |
|
![]() |
![]() |
![]() |
![]() |
#7 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
I've been trying to do what you mentioned, I do not know if it's ''working''. I start the field in RANS (steadyState - simpleFOAM) and later make a copy of the folder with the intention of starting the simulations in LES (pisoFOAM). That is ... the folders generated are: 100, 200 (simple), ..., 0,01; 0.02; ... (piso). I get the convergence of my model in RANS, but unfortunately I'm not getting success in LES. I've attached my file, I hope you can advise me. pipe_internal_flow |
||
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Hello gu1,
i cant run your case as there is no blockMeshDict included. As such i cant run your simulation. If you can run your RANS simulation, thats a good start. 1) Now make a new folder for your LES and copy only the 0, constant and system folder. 2) Make your changes to the turbulenceProperties, fvSolution and fvSchemes files to set up a LES simulation. 3) Inside your LES folder create a folder called 300* (*or the name of your last RANS timestep if it doesnt run to 300). 4) Find out which 0/ files (U, p, nut) are used by your RANS as well as your LES simulation. 5) Inside your LES case copy these files from 0/ to 300*/. 6) Change your start time to 300* and run mapFields to map your RANS results to your LES case. 7) Move the mapped files back to 0/ Now your RANS results are used as a starting point for your LES case. If you still struggle with your LES simulation, please provide me with a complete, unmeshed, case. As written above, i cant do alot with single files. |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
My case with mesh: CASE I believe that based on the settings (Allrun) I created for my case, your recommendations are being made (at least I hope, if not, please ... help me), except for mapFields (whose I do not know how to do ). I'm following some recommendations about 'dissipative terms' in fvSchenes, so I've tried using LUST. I still have not figured out if it's a good choice. |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Hey gu1,
i started your case and i will let it run over the weekend. I'll come back to you next week. |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Quick feedback. Solution is converged. Copying and mapping the RANS onto the LES case wasn't a problem. LES simulation runs fine at Co = 0.24.
Residuals @ convergence: Code:
# Time p Ux Uy Uz k omega 2020 2.676000e-06 9.205660e-07 8.977710e-06 7.257140e-06 4.958210e-06 4.850250e-08 ![]() |
|
![]() |
![]() |
![]() |
![]() |
#12 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
Were you able to converge the simulation on LES ?! HOW ?! I've been trying for weeks, believing my setup was flawed. Yesterday, using this same setup, I could not. I did not do mapFields ... but ... please teach me (if possible attach the case that converged with you) !! Just one question, using the Smagorinsky model, the log (pisoFoam), does not display the values of 'k', 'omega' ... So I did not understand what you had attached (led me to believe you were talking about RANS ). My RESIDUAL in LES is attached in the image. |
||
![]() |
![]() |
![]() |
![]() |
#13 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Hey gu1,
that is in fact the convergence data for the RANS simulation. The LES is running and i will post my results on Monday. But it started without problems after mapping the data from the RANS case. The code snippet is from the residual data your RANS simulation writes to the folder "postProcessing". The simulation converged to a residual value of 1e-6 after 2020 iterations. |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Okay. I'll continue my attempts to understand my problem and find a solution. I look forward to your contact.
|
|
![]() |
![]() |
![]() |
![]() |
#15 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Hey gu1,
feedback as promised. The LES simulation finished over the weekend, and here are the (residual) results: ![]() Certainly not perfectly converged, but i'm not even sure if that is to be expected during an transient simulation. You can download the case file HERE. I've uploaded it to the cloud storage of my university ("seafile.zfn.uni-bremen"), as it was to large for the attachments. The upload contains the case, the postProcessing folder as well as the last timestep, 0.24 s. /edit: Heres another explanation on how to use mapFields: How to mapFields @ cfd.online |
|
![]() |
![]() |
![]() |
![]() |
#16 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
I believe that mapFields led you to have better results than mine, in the same setup (see the image I attached in the post above - of my redisual). I'll do other tests. By the way, do you believe that there is a need for modifications in the setup? According to your experience ... your opinion would be of great help. |
||
![]() |
![]() |
![]() |
![]() |
#17 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Hey Gui,
the only "modification" i made was running the RANS case with my fvSolution dictionary (s. attachments) because it provides convergence for my, more complicated, cases. And then running mapFields. For the LES simulation i used the files you provided in the download. So, for the moment, i don't see any necessary changes you should make. |
|
![]() |
![]() |
![]() |
![]() |
#18 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#19 |
Senior Member
Robert
Join Date: May 2015
Location: Bremen, GER
Posts: 292
Rep Power: 12 ![]() |
Whenever you create a new mesh, e.g. run blockMesh: yes.
For changes to e.g. turbulenceProperties, fvOptions, fvSchemes, fvSolution: no. |
|
![]() |
![]() |
![]() |
![]() |
#20 | |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 246
Rep Power: 11 ![]() |
Quote:
"First, we say that the data is mapped from the source to the target. The fields are deemed consistent if the geometry and boundary types, or conditions, of both source and target fields are identical. The field data that mapFields maps are those fields within the time directory specified by startFrom/startTime in the controlDict of the target case." mapFields <source dir> -consistent So, I would not need to use mapFieldsDict Right? |
||
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Best practices for performing an analysis on a supersonic C-D nozzle in Star-CCM | jonny_b | STAR-CCM+ | 1 | August 9, 2010 11:06 |
Best Practices for Internal Compressible Flows | jason.ryon | OpenFOAM | 0 | June 11, 2010 11:47 |
CFD Practices | Isaac Newton | FLUENT | 0 | December 7, 2008 14:14 |
One question about the cfx 5 best practices | John | CFX | 3 | August 18, 2005 18:39 |
CFD best practices | Dave | Main CFD Forum | 0 | November 3, 2004 11:33 |