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

OpenFoam periodicHill tutorial does not work.

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2022, 23:50
Default OpenFoam periodicHill tutorial does not work.
  #1
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 3
mikethe1wheelnut is on a distinguished road
The tutorial files are here: https://develop.openfoam.com/Develop...Hill/transient


The first error I get is the following:


Code:
wrong token type - expected string, found on line 17 the word 'turbulenceModelSchemes'
-> that's in the controlDict. I get other errors when I try different things to fix that one (well, one error, tried one thing), but they're shots in the dark. Eventually, maybe in a month or two, I'll figure out what the problem is and be able to provide the correction. I figure this post is justified, "official" tutorials are supposed to work.. maybe this one was created for a different version of openFoam? I'm using openFoam 9.
mikethe1wheelnut is offline   Reply With Quote

Old   June 6, 2022, 04:15
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,085
Rep Power: 26
Yann will become famous soon enough
Hi Michael,

There are different forks and development branches in OpenFOAM. Here are the 2 main branches :
  • OpenFOAM foundation (openfoam.org) : current version is OpenFOAM 9. OpenFOAM 10 should be released in July
  • ESI-OpenCFD (openfoam.com) : current version is v2112, the next version should be released this month (v2206)

For a more complete view of the OpenFOAM world, you can have a look on this scheme, made by Pablo Higuera in 2016: https://olaflow.github.io/images/blo...hoopenfoam.png
It starts to be a bit outdated but it is still interesting to have the full picture.

Now back to your issue: you are trying to run a tutorial from the OpenCFD branch, OpenFOAM-v2112, on Openfoam-9, which is the OpenFOAM foundation branch. Those 2 branches has been forked 6 years ago and the code has been diverging ever since. Both versions have a common heritage but use different syntax, models, solvers,...
This leads to what you are experiencing: you will most probably get a lot of errors if you try running a tutorial from one branch on another branch.

You can adapt some tutorials to the other version, but it can be a hassle to do, especially if you are not very experienced with OpenFOAM. My advice would be to stick to the tutorials available with your version, or to install the proper version if you really need to run this specific tutorial.

On a side note: pay attention to use the documentation corresponding to the version you are using. The documentation on openfoam.com will not be relevant for OpenFOAM-9! This could save you a lot of time and trouble!

I hope this helps,
Yann
mikethe1wheelnut likes this.
Yann is offline   Reply With Quote

Old   June 6, 2022, 06:59
Default
  #3
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 3
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hi Michael,

There are different forks and development branches in OpenFOAM. Here are the 2 main branches :
  • OpenFOAM foundation (openfoam.org) : current version is OpenFOAM 9. OpenFOAM 10 should be released in July
  • ESI-OpenCFD (openfoam.com) : current version is v2112, the next version should be released this month (v2206)

For a more complete view of the OpenFOAM world, you can have a look on this scheme, made by Pablo Higuera in 2016: https://olaflow.github.io/images/blo...hoopenfoam.png
It starts to be a bit outdated but it is still interesting to have the full picture.

Now back to your issue: you are trying to run a tutorial from the OpenCFD branch, OpenFOAM-v2112, on Openfoam-9, which is the OpenFOAM foundation branch. Those 2 branches has been forked 6 years ago and the code has been diverging ever since. Both versions have a common heritage but use different syntax, models, solvers,...
This leads to what you are experiencing: you will most probably get a lot of errors if you try running a tutorial from one branch on another branch.

You can adapt some tutorials to the other version, but it can be a hassle to do, especially if you are not very experienced with OpenFOAM. My advice would be to stick to the tutorials available with your version, or to install the proper version if you really need to run this specific tutorial.

On a side note: pay attention to use the documentation corresponding to the version you are using. The documentation on openfoam.com will not be relevant for OpenFOAM-9! This could save you a lot of time and trouble!

I hope this helps,
Yann

..yes indeed, a very valuable response. ..as my old cs-teacher would say: "..you made a lot of millage with that question.."
mikethe1wheelnut is offline   Reply With Quote

Reply

Tags
controldict., openfoam 9, periodic bc, periodichill tutorial


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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
fluxRequired OpenFoam Versions SimpleFoam Taylor Couette flow tutorial mörli OpenFOAM Running, Solving & CFD 0 April 9, 2019 11:50
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
[Virtualization] OpenFOAM oriented tutorial on using VMware Player - support thread wyldckat OpenFOAM Installation 2 July 11, 2012 16:01


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