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

[Other] AMR in OpenFOAM v2212 (OpenFOAM 10)

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By cap_27

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 15, 2023, 16:18
Default AMR in OpenFOAM v2212 (OpenFOAM 10)
  #1
New Member
 
Anton Mamleev
Join Date: Feb 2023
Posts: 2
Rep Power: 0
cap_27 is on a distinguished road
Hi,
I've tried to set up a dam break problem with the use of adaptive mesh refinement by adding dynamicMeshDict to the constant directory, however no mesh refinement was obtained.

I followed these two guides, which were done for the version v2012, and it seems that the same techniques don't work for v2212.
https://youtu.be/bifxV2o1Vbo
https://youtu.be/uSpqMV7W0Dg

For the basis I took directory from the first video and changed there some files and keywords to make it runnable for the newer version of OpenFOAM: renamed turbulenceProperties to momentumTransport in constant folder, also changed keyword for writeControl from adjustable to adjustableRunTime. After these manipulations simulation ran successfully, but without any refinement.

Pls, excuse me if my problem is quite obvious, but I'm new to OpenFOAM and have been trying for two days to find the solution with no luck.
cap_27 is offline   Reply With Quote

Old   February 16, 2023, 03:21
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,062
Rep Power: 26
Yann will become famous soon enough
Hello,

Not sure about your problem, but you seem to be mixing up OpenFOAM branches and versions.

There are 2 mains branches:
  • openfoam.com (developed by ESI-OpenCFD): OpenFOAM-v2012 is the version released in December 2020, v2212 is the version released in December 2022 (the latest one to this day)
  • openfoam.org (developed by the OpenFOAM foundation) : OpenFOAM-10 is the version released in July 2022 (the latest one to this day)

So which version are you using? turbulenceProperties file is still used in the ESI-OpenCFD branch while the OpenFOAM foundation branch switched from turbulenceProperties to momentumTransport a while ago.

You should find which version you are using by checking the log files of your case or by typing foamVersion in your terminal.

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

Old   February 16, 2023, 05:15
Default
  #3
New Member
 
Anton Mamleev
Join Date: Feb 2023
Posts: 2
Rep Power: 0
cap_27 is on a distinguished road
Thank you for your reply, I've checked this out: my version is OpenFOAM-10 provided by openfoam.org.

I have also OpenFOAM v2212 installed on the WSL (OpenFOAM-10 is installed in VM, I didn't notice I had installed different versions), so I'll check if AMR works there.

Edit: using v2212 instead of -10 solved the problem. Thanks a lot!)
Yann likes this.

Last edited by cap_27; February 16, 2023 at 08:27. Reason: Problem solved
cap_27 is offline   Reply With Quote

Reply

Tags
adaptive mesh refinement, amr, dynamic mesh


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 07:18
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


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