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

Change Turbulence Model during simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2018, 13:03
Default Change Turbulence Model during simulation
  #1
New Member
 
Joćo Gil
Join Date: Aug 2017
Posts: 12
Rep Power: 9
bussaco8 is on a distinguished road
Hello everyone!


I have an OpenFOAM case that uses chtMultiRegionSimpleFoam, with k-omegaSST turbulence model for the fluid.
If I start the simulation, it achieves the maximum iterations error. However, I know that if I start the simulation in laminar and then change it to turbulence model k-omegaSST, the case will run just fine.


How do I change from laminar to turbulent k-omegaSST during the execution? Or, at least, stop the laminar case and change it to turbulent without reseting anything, by "using" the values achieved so far by the laminar case?


Thanks!
Joćo Gil
bussaco8 is offline   Reply With Quote

Old   May 29, 2018, 16:11
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Quote:
Originally Posted by bussaco8 View Post
Hello everyone!


I have an OpenFOAM case that uses chtMultiRegionSimpleFoam, with k-omegaSST turbulence model for the fluid.
If I start the simulation, it achieves the maximum iterations error. However, I know that if I start the simulation in laminar and then change it to turbulence model k-omegaSST, the case will run just fine.


How do I change from laminar to turbulent k-omegaSST during the execution? Or, at least, stop the laminar case and change it to turbulent without reseting anything, by "using" the values achieved so far by the laminar case?


Thanks!
Joćo Gil
So why dont you do one simulation in "laminar" mode and then lauch another one with the turbulence model and results obtained previously.
Santiago is offline   Reply With Quote

Old   May 30, 2018, 05:12
Default
  #3
New Member
 
Joćo Gil
Join Date: Aug 2017
Posts: 12
Rep Power: 9
bussaco8 is on a distinguished road
I don't know how to use the results obtained from laminar mode into the turbulence simulation. How do I manipulate the folders and such...? And also, when I execute the solver in the terminal, how do I make sure that it's using the initial results from laminar?
bussaco8 is offline   Reply With Quote

Old   May 31, 2018, 13:52
Default
  #4
New Member
 
Matthias Bürgler
Join Date: Mar 2018
Posts: 3
Rep Power: 8
mbuergle is on a distinguished road
Quote:
Originally Posted by bussaco8 View Post
I don't know how to use the results obtained from laminar mode into the turbulence simulation. How do I manipulate the folders and such...? And also, when I execute the solver in the terminal, how do I make sure that it's using the initial results from laminar?
I would proceed as follows:
  1. Create a new case directory with the desired turbulence model in the "constant/turbulenceProperties" file
  2. Delete the 0 directory
  3. Copy the results (latest time directory containing the fles U, p_rgh, etc.) from the laminar simulation into the new turbulent case directory and rename the directory to 0
  4. Add files for turbulent variables (k/epsilon/nut or whatever you chose) into 0 directory
  5. Start turbulent simulation with laminar results as initial condition
mbuergle is offline   Reply With Quote

Old   June 1, 2018, 14:48
Default
  #5
New Member
 
Joćo Gil
Join Date: Aug 2017
Posts: 12
Rep Power: 9
bussaco8 is on a distinguished road
Thanks for the suggestion @mbuergle; unfortounately, it didn't work.
I believe the correct way is:
1 - Run the laminar simulation until a certain time;
2 - On the last time of the laminar simulation, add the files for turbulent variables (k, omega, etc...);
3 - Change the turbulentceProperties files to the desired turbulence model.


But even like that, I get the error:


Code:
--> FOAM FATAL ERROR: 
Maximum number of iterations exceeded

    From function Foam::scalar Foam::species::thermo<Thermo, Type>::T(Foam::scalar, Foam::scalar, Foam::scalar, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar, Foam::scalar) const, Foam::scalar (Foam::species::thermo<Thermo, Type>::*)(Foam::scalar) const) const [with Thermo = Foam::hPolynomialThermo<Foam::icoPolynomial<Foam::specie> >; Type = Foam::sensibleEnthalpy; Foam::scalar = double; Foam::species::thermo<Thermo, Type> = Foam::species::thermo<Foam::hPolynomialThermo<Foam::icoPolynomial<Foam::specie> >, Foam::sensibleEnthalpy>]
    in file /home/ubuntu/OpenFOAM/OpenFOAM-4.1/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 66.

I think there are a lot of threads in the forum about this error. I'll research more
I use the polynomial method for my fluid region.


Thanks a lot for your help!
Cheers,
Joćo Gil
bussaco8 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
Reynolds number criteria for application of turbulence model in gas-solid simulation k.farnagh Main CFD Forum 0 May 16, 2018 12:19
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 07:08
Turbulence model choice for automotive simulation? cfdblender Main CFD Forum 5 December 18, 2015 09:03
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
turbulence model simulation in unsteady flow Chang Main CFD Forum 2 February 12, 2005 07:28


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