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

Implementing a new turbulence model

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By s1291
  • 1 Post By s1291
  • 1 Post By s1291

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2021, 20:06
Exclamation Implementing a new turbulence model
  #1
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Hi,

I am desperately need to know how to create my own turbulence model using existing models. i followed many different types of tutorials but file structure, names, and paths are totally changed in both OpenFOAM v9 and v8.

Any sort of a guidance appreciated ,
Sakun is offline   Reply With Quote

Old   November 10, 2021, 04:04
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Could try with OpenFOAM-v2106, it retains the familiar structure of turbulence models.
olesen is offline   Reply With Quote

Old   November 10, 2021, 11:43
Default
  #3
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
really appreciate your quick reply,

managed to install OpenFOAMv2106 but encountered with an error in third-party package

also i would like to introduce myself to you and ask some questions regarding OpenFOAMv2106. via email, LinkedIn or private message if you don't mind.
thank you,

best regards,
Sakun is offline   Reply With Quote

Old   November 10, 2021, 11:47
Default
  #4
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
Quote:
Originally Posted by Sakun View Post
really appreciate your quick reply,

managed to install OpenFOAMv2106 but encountered with an error in third-party package

also i would like to introduce myself to you and ask some questions regarding OpenFOAMv2106. via email, LinkedIn or private message if you don't mind.
thank you,

best regards,
What distribution of Linux you're using?
There are pre-compiled versions of OpenFOAM that you can install directly using your package manager without the need to compile it from sources.

More information can be found on this page:
https://develop.openfoam.com/Develop...is/precompiled
s1291 is offline   Reply With Quote

Old   November 10, 2021, 11:54
Default
  #5
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by s1291 View Post
What distribution of Linux you're using?
There are pre-compiled versions of OpenFOAM that you can install directly using your package manager without the need to compile it from sources.

More information can be found on this page:
https://develop.openfoam.com/Develop...is/precompiled
Hi,
thank you for your reply,

i am using Ubuntu 20.04 LTS version in virtual machine.

please can you tell me how and where can i get this, i am desperately trying to fix this and make my own turbulence model
Sakun is offline   Reply With Quote

Old   November 10, 2021, 12:02
Default
  #6
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
The instructions on how to install OpenFOAM for multiple distributions are provided in the link above. If you read carefully you will find the instructions relevant to Ubuntu:

https://develop.openfoam.com/Develop.../debian#ubuntu
Sakun likes this.
s1291 is offline   Reply With Quote

Old   November 10, 2021, 12:11
Default
  #7
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by s1291 View Post
The instructions on how to install OpenFOAM for multiple distributions are provided in the link above. If you read carefully you will find the instructions relevant to Ubuntu:

https://develop.openfoam.com/Develop.../debian#ubuntu
ohhh i see, i will definitely try this,

this may sounds like stupid, but in this method, does this included with the paraview ?
Sakun is offline   Reply With Quote

Old   November 10, 2021, 12:27
Default
  #8
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
Quote:
Originally Posted by Sakun View Post
ohhh i see, i will definitely try this,

this may sounds like stupid, but in this method, does this included with the paraview ?
You can install paraview as follows:

Code:
sudo apt update
sudo apt install paraview
On Ubuntu 20.04, that will install Paraview 5.7 (of course you can download the latest version of Paraview from their website and add it to PATH). If you want to use the command paraFoam, then you need to create an alias and add it to your ~/.bashrc file:

Code:
alias paraFoam='touch case.foam; paraview case.foam'
restart the terminal or simply source the bashrc file:

Code:
source ~/.bashrc
To visualize your case, type:
Code:
paraFoam
s1291 is offline   Reply With Quote

Old   November 10, 2021, 18:31
Default
  #9
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Hi,


i got stuck from the step 3 just as shown in the attachment.
Attached Images
File Type: jpg COmpile error.jpg (91.6 KB, 12 views)
Sakun is offline   Reply With Quote

Old   November 10, 2021, 20:26
Default
  #10
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
Quote:
Originally Posted by Sakun View Post
Hi,


i got stuck from the step 3 just as shown in the attachment.
That's not a command you supposed to run. It is an entry that will be added automatically if you run the previous commands.

So you need to run:
Code:
sudo apt install openfoam2106-default
Sakun likes this.
s1291 is offline   Reply With Quote

Old   November 10, 2021, 20:37
Default
  #11
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
Just out of curiosity because you've mentioned that you're running a virtual machine, what is the host OS? is it Windows 10?

If the answer is yes, you don't need a virtual machine to run Linux. Use Windows Subsystem for Linux (WSL). To view the GUI apps you need to install an X server such as VcXsrv.

With Windows 11, you can use WSLg to run Linux GUI apps out of the box.
Sakun likes this.
s1291 is offline   Reply With Quote

Old   November 11, 2021, 06:32
Default
  #12
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by s1291 View Post
You can install paraview as follows:

Code:
sudo apt update
sudo apt install paraview
On Ubuntu 20.04, that will install Paraview 5.7 (of course you can download the latest version of Paraview from their website and add it to PATH). If you want to use the command paraFoam, then you need to create an alias and add it to your ~/.bashrc file:

Code:
alias paraFoam='touch case.foam; paraview case.foam'
restart the terminal or simply source the bashrc file:

Code:
source ~/.bashrc
To visualize your case, type:
Code:
paraFoam

i get this enormous when launch paraview, as shown in the attachment



(yes my host is windows 10, i am using virtual machine cause i used to it pretty much. in the windows version, code system and flies are different right )
Attached Images
File Type: jpg Screenshot from 2021-11-11 10-12-23.jpg (79.5 KB, 6 views)
Sakun is offline   Reply With Quote

Old   November 11, 2021, 07:59
Default
  #13
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
Hi,
I am afraid that will not work under VirtualBox (or at least it is hard to get it up and running). In fact, to get a "definitive" answer about this, your best option is to ask your question on Paraview support website:
https://discourse.paraview.org/c/paraview-support/7

Another solution is to use WSL as suggested above. You can find the detailed instructions on Microsoft website, or just search on Youtube-- I am sure you will get some step-by-step videos.

If you are able to enable WSL on your system and install a Linux distribution such as Ubuntu 20.04 you don't have to worry about your files being edited on Windows or Linux.

Moreover, you don't need to install a Linux version of Paraview anymore. Simply install a Windows version of Paraview from their website.
s1291 is offline   Reply With Quote

Old   November 11, 2021, 10:42
Default
  #14
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Hi,

I thought that is because of my laptop drivers cause,it is 7 years old. hope university computers dont ask for admin rights to install any of above software.
Sakun is offline   Reply With Quote

Old   November 11, 2021, 11:02
Default
  #15
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 9
s1291 is on a distinguished road
To enable WSL, you must have administrator rights to do so.
s1291 is offline   Reply With Quote

Old   November 11, 2021, 14:56
Default
  #16
Senior Member
 
Sakun
Join Date: Nov 2019
Location: United Kingdom
Posts: 152
Rep Power: 7
Sakun is on a distinguished road
Quote:
Originally Posted by s1291 View Post
To enable WSL, you must have administrator rights to do so.
jezzzzz....

I will give it try using my laptop, by any chance are you familiar with implementing turbulence models?
in future i have to run simulations using DES,DDES, and IDDES. so i am trying some tutorials at the moment but no luck at the moment. if i am succeeded i can even acknowledge in what ever the papers i produce in future.
also i am keep looking articles and sources to get to know how to make SA-DES in to case, i really appreciate if you can give me some hints or guidance regarding that ?
Sakun is offline   Reply With Quote

Reply

Tags
implementing, openfoam, paraview


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
Problem with creating R file for SSG turbulence model Khozaei4000 OpenFOAM Running, Solving & CFD 3 April 26, 2022 17:02
Only two turbulence options available in CFX Pre Jack001 CFX 5 March 30, 2016 03:47
Implementing v2f turbulence model in 2.1.x - GName not declared error Thangam OpenFOAM Running, Solving & CFD 3 January 13, 2014 02:49
What model of turbulence choose to study an external aerodynamics case raffale OpenFOAM 0 August 23, 2012 06:45
Wrong calculation of nut in the kOmegaSST turbulence model FelixL OpenFOAM Bugs 27 March 27, 2012 10:02


All times are GMT -4. The time now is 16:43.