|
[Sponsors] |
March 23, 2017, 17:57 |
Coupling Dakota with OpenFoam!
|
#1 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Hi Foamers,
I have recently installed Dakota to be applied to some interesting cases that I created for my project. All grids were created using Gmsh. However, I don't really know whether I will be able to preform shape parametrization and moving mesh for grids generated using Gmsh as well as Dakota's capabilities to handle meshes generated using Gmsh. I need to use Dakota to optimize NACA0012 airfoil type just for verifications. Has anyone done any similar optimizations could bring up to speed. Thanks in advance, Best, |
|
March 24, 2017, 03:48 |
|
#2 |
Member
Brian Willis
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 58
Rep Power: 15 |
Hello
A great place to start with the coupling of OpenFOAM and Dokata is the tutorial from Wolf Dynamics, linked below http://www.wolfdynamics.com/tutorials.html?id=46 It has the case setup and an extensive presentation attached to it. Cheers, Brian |
|
March 26, 2017, 18:23 |
|
#3 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Many thanks Brian for the valuable link! I will spend some time reading and following the case file and let you know how it goes with me!
Thanks Again, |
|
March 27, 2017, 14:35 |
|
#4 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Hi Brian,
I have got the case files from the link that you suggested. However, there weren't enough information on how do you run the NACA airfoil case. Have you run that case before? Could you please walk me though? Thanks in advance, |
|
March 27, 2017, 16:03 |
|
#5 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Just want to give you more information (if you ever used the search function, you would find them too):
http://openfoamwiki.net/index.php/Si...l_Optimization http://openfoamwiki.net/index.php/Howto_DAKOTA_OpenFOAM (Section 1.3) https://www.cfd-online.com/Forums/op...-tutorial.html https://www.cfd-online.com/Forums/op...-tutorial.html http://www.holzmann-cfd.de/index.php/en/dakota-coupling And of course the link provided above (that you already checked out).
__________________
Keep foaming, Tobias Holzmann |
|
March 27, 2017, 16:14 |
|
#6 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Hi Topi,
Many thanks for the massive links. These links will definitely make me so busy. I am currently facing some issues getting the following case to work http://www.mediafire.com/file/72dtp6...ultidim.tar.gz. Would be possible to walk me through if you got some time. Thanks in advance, |
|
March 27, 2017, 16:21 |
|
#7 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi,
I could check the case but I have no time for that (sorry). But instead, you can check my cases (last link). Here, I provided a run script and everything works well. Good luck.
__________________
Keep foaming, Tobias Holzmann |
|
March 27, 2017, 16:23 |
|
#8 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Thanks again.
Best, |
|
March 27, 2017, 17:16 |
|
#9 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
Hi,
I just downloaded the case the you suggested but it didn't work following the Read-me file. I am using OpenFoam v2.3.1. Thanks, |
|
March 28, 2017, 04:26 |
|
#10 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Hi
Just my two cents from using Dakota. Much easier to get running with Pyopt http://www.pyopt.org/ I have made a simple tutorial here https://github.com/nelinnemann/openf...m/pyOpt-2D-car
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
March 28, 2017, 06:31 |
|
#11 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
In your tutorial you selected NSGA2 as your optimizer - would you recommend this as a good choice for this class of problems, or did you select it without much thought put into it?
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
March 28, 2017, 09:53 |
|
#12 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
I do appreciate all your help and hospitality guys, but I am still unable to run Tobi's case for some reason.
Nails! thank you for the alternative optimizations tool, I will double check PyOpt. Thank you all. |
|
March 28, 2017, 10:25 |
|
#14 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
I have tried to run the case "dakotaOpenFOAMCouplingSamplingLHS.tar.gz".
When I ran ./createMesh, I got the following error; Code:
From function blockMesh in file blockMeshApp.C at line 137. FOAM exiting - Rotate baffles ./createMesh: line 29: system/rotateBaffles: No such file or directory - Adding baffles to the mesh --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting - Flatten mesh --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting - Extrude one patch to make a 2D mesh again --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting - Remove not necessary boundarys --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting - Copy 0.org to 0 rm: cannot remove ‘0’: No such file or directory - Renumber the mesh --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times constant down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting Code:
From function blockMesh in file blockMeshApp.C at line 137. FOAM exiting --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting rm: cannot remove ‘0’: No such file or directory --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times constant down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting |--> Start stimulation --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 203. FOAM exiting ./dakota.sh: line 99: postProcess: command not found ./dakota.sh: line 101: postProcess: command not found cat: postProcessing/Taverage/0/surfaceRegion.dat: No such file or directory cp: cannot stat ‘constant/polyMesh’: No such file or directory cp: cannot stat ‘clean/*’: Not a directory (standard_in) 2: syntax error (standard_in) 2: syntax error |--> Minimum Temperature at outlet is: |--> Maximum Temperature at outlet is: |--> Average Temperature at outlet is: |--> Angle of baffle is: |--> Function for dakota (Average) is: |--> Function for dakota (Distribution) is: | Error(s) encountered reading results file results.out for Evaluation 1: -- Expected 2 function value(s) but found 0. - DAKOTA analyzes successfully ended Thanks in advance, |
|
March 28, 2017, 11:02 |
|
#15 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Yes, the case is build for Foam 4.x as you can see in the output of the run script.
Code:
------------------------------------------------------------------------------- Tutorial by Tobias Holzmann Generated October 2016 OpenFOAM-4.x DAKOTA Tested with Ubuntu 16.04
__________________
Keep foaming, Tobias Holzmann |
|
March 28, 2017, 11:06 |
|
#16 |
Member
OpenFoam
Join Date: Jun 2016
Posts: 82
Rep Power: 10 |
||
March 29, 2017, 15:12 |
|
#17 | |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27 |
Quote:
It works fine for this problem and produced fine results.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
OpenFOAM for subsurface flow, or coupling with a subsurface flow code? | chljl | OpenFOAM Running, Solving & CFD | 0 | February 14, 2012 20:38 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
coupling OpenFOAM with other programs | Martin123 | OpenFOAM Running, Solving & CFD | 3 | June 3, 2009 19:13 |