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

Adapting a tutorial case made in dev version in V10

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2023, 06:35
Default Adapting a tutorial case made in dev version in V10
  #1
New Member
 
Niall O'Neill
Join Date: Feb 2023
Posts: 21
Rep Power: 3
nialloneill is on a distinguished road
Hello, I have a quick question that might hopefully reduce the amount of time I end up spending on a tutorial case. In the "openFOAM training" by CFD support document (which by the way is an extremely helpful resource) there is a test case of a wind turbine. It is written for the dev version and actually explicitly says in the .allrun script to use the dev version with it. I currently have v10 installed, but was planning on just figuring out what the main syntax differences were and trying to get it to work with that.

The case uses snappyHexMesh and pimpleFOAM as a solver

My question is whether this act of adapting a case to a different version is relatively straightforward, or would I be better off just downloading the dev verison? Bearing in mind that my main goal is actually just learning how the whole things works so having to understand the syntax to the point where I can adjust it to v10 may be useful in itself

Thanks.
nialloneill is offline   Reply With Quote

Old   August 9, 2023, 07:01
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Hello,

For your peace of mind, the recommendation would be to install the version corresponding to the tutorial, so you can get familiar with it before thinking about adapting it to another version. Even if you aim to adapt it later, at least you will have a healthy baseline case to work with, and to compare to your modified case.

You can install multiple OpenFOAM versions on your system, so it's pretty easy to install the ones you need, and just switch from one version to another when you need to.

The problem here is that dev is the development version, which is constantly evolving. If the tutorial you are running is 2 years old and you install the dev version now, for sure you will have to adapt the case.

Regards,
Yann
Yann is online now   Reply With Quote

Old   August 13, 2023, 11:55
Default
  #3
New Member
 
Niall O'Neill
Join Date: Feb 2023
Posts: 21
Rep Power: 3
nialloneill is on a distinguished road
I think the particular tutorial is from 2017, so I might just try and figure out the syntax differences with v10 as I am currently using, thanks
nialloneill is offline   Reply With Quote

Old   August 14, 2023, 06:57
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
There were major changes in the OpenFOAM foundation branch since 2017. If you are relatively sure the tutorial is from 2017, you will probably have less trouble trying to run it on a version corresponding to this time period, which would be OpenFOAM 4.1 or 5.0 (https://openfoam.org/download/history/)

Of course your can adapt it to OpenFOAM 10 but be ready to have to deal with filenames and syntax changes in multiple places.

Have fun!
Yann
Yann is online now   Reply With Quote

Reply

Tags
v10 vs dev


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
reactingFoam crashes with no iterations uckmhnds OpenFOAM Running, Solving & CFD 3 July 17, 2022 19:41
Laminar simulation of turbulent interfoam tutorial case doesn't finish finn_amann OpenFOAM Running, Solving & CFD 0 May 6, 2022 10:03
the air phase in multiphaseEulerFoam bubble tutorial case doesn't move Ahyar OpenFOAM Running, Solving & CFD 0 February 10, 2022 00:44
MapFields doesnt work in the "counterFlowFlame2D" tutorial case panachristos OpenFOAM Running, Solving & CFD 9 August 26, 2018 22:27
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


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