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

Setting up a different model for an existing tutorial case

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Yann
  • 1 Post By gdsilva
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2024, 16:09
Default Setting up a different model for an existing tutorial case
  #1
New Member
 
Join Date: Oct 2024
Posts: 3
Rep Power: 2
gdsilva is on a distinguished road
Hello, everyone.


I am new using OpenFOAM, and I am having difficult on how to set a different model to an existing tutorial.


My main objective is to use the airFoild2D tutorial case as my baseline and compare different models to the same mesh and geometry.


To get started, I want to use the tutorial $FOAM_TUTORIALS/incompressible/simpleFoam/airFoil2D but change the model to k omega SST.


I know I have to do the following steps until now:
  • have the k and omega file at the 0 folder;
  • change the turbulence model to kOmegaSST
  • add to fvSolution k and omega parameters.
Is there any more tips or something that I should do to have a minimal setup simulation? k and omega files have something special to do?

I do not want cooked answers, but some tips or an overview on how would you set up this case, so I can learn the procedure on how to make this simulation.
gdsilva is offline   Reply With Quote

Old   October 26, 2024, 07:15
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Your steps sound good.

Basically: each turbulence model solves different equations and requires to define different variables (boundary conditions for these variables, and numerical setup in fvSolution/fvSchemes)

If you want to be able to switch between turbulence models, you just need to prepare your 0 directory and fvSolution/fvSchemes to include the variables your need for each model you want to use (some models will rely on the same variables, such as k and epsilon for all the k-epsilon models variants, etc...)

It looks like this is already what you are doing. What are you struggling with?

You can have a look to $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily which does exactly this: it is setup to be able to switch between turbulence models. You just have to switch models in turbulenceProperties.

Regards,
Yann
gdsilva likes this.
Yann is offline   Reply With Quote

Old   October 30, 2024, 19:59
Default
  #3
New Member
 
Join Date: Oct 2024
Posts: 3
Rep Power: 2
gdsilva is on a distinguished road
Thank you, Yann

Quote:
Originally Posted by Yann View Post
It looks like this is already what you are doing. What are you struggling with?
My struggle was to guarantee that the simulation was correct, since I just copied the airFoil2D tutorial that I said, changed the model and ran the simulation. For each given error, I added the necessary file (copied from other tutorials and adapted to the airfoil mesh) on and on until get no more errors. As I am new to OpenFOAM, I was not confident if that is the way to go.


Quote:
Originally Posted by Yann View Post
You can have a look to $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily which does exactly this: it is set up to be able to switch between turbulence models. You just have to switch models in turbulenceProperties.
The pitzDaily really does what I am intended to do, I did not know it. Looking at the files, I noticed that I could just put all the mandatory constants for all models in the 0/ folder, set them up and for each simulation just change the model turbulenceProperties.

Thanks again!

Regards,
Gabriel
Yann likes this.
gdsilva is offline   Reply With Quote

Old   October 31, 2024, 04:43
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Gabriel,

Quote:
Originally Posted by gdsilva View Post
For each given error, I added the necessary file (copied from other tutorials and adapted to the airfoil mesh) on and on until get no more errors. As I am new to OpenFOAM, I was not confident if that is the way to go.
This the usual way indeed!

Quote:
Originally Posted by gdsilva View Post
Looking at the files, I noticed that I could just put all the mandatory constants for all models in the 0/ folder, set them up and for each simulation just change the model turbulenceProperties.
Absolutely, you can setup the case to run with every turbulence model you want, and then you will just need to switch between models in turbulenceProperties.
Just be careful to update the boundary conditions for all the turbulent quantities if you change a parameter which could affect these quantities (like changing the flow velocity)

Cheers,
Yann
gdsilva likes this.
Yann is offline   Reply With Quote

Reply

Tags
airfoil 2d, k omega sst, setup, turbulence


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
the air phase in multiphaseEulerFoam bubble tutorial case doesn't move Ahyar OpenFOAM Running, Solving & CFD 0 February 10, 2022 00:44
Spalart-Allmaras turbulence model for turbulent flat plate tutorial Bartholomew OpenFOAM 0 February 6, 2021 19:24
Overflow Error in Multiphase Modelling with Two Continuous Fluids ashtonJ CFX 6 August 11, 2014 15:32
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Native fan model? Vcent FLUENT 0 December 10, 2012 08:36


All times are GMT -4. The time now is 05:48.