|
[Sponsors] |
February 10, 2010, 02:52 |
Dakota / OpenFOAM
|
#1 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Anyone here have any experience with Dakota in conjuction with openfoam?
It looks like it can do most of the things modeFrontier can do...and alot cheaper. http://www.cs.sandia.gov/DAKOTA/ N |
|
June 25, 2011, 07:10 |
|
#2 |
New Member
Caleb Miles
Join Date: Jun 2011
Posts: 13
Rep Power: 14 |
Hello Niklas,
I am also intertested in using DAKOTA with OpenFoam, where you able to find any information on coupling the two? My first thought is to use something like pyFoam to modify parameters and DAKTOA to drive pyFoam, but I have no experience with this. Caleb |
|
June 25, 2011, 07:54 |
|
#3 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Dakota works great with any kind of software that you can run via script.
Im using this every day in my work. It is really nice. At first it can seem abit confusing, but if you download Jaguar (the GUI to dakota) and run some examples it will become clear. |
|
October 6, 2011, 17:29 |
|
#4 |
New Member
Jonas L. Ansoni
Join Date: Jun 2011
Location: Brazil
Posts: 22
Rep Power: 14 |
Hi!
I'm starting the studies about openfoam and dakota and a first question is: What's the best linux OS to run openfoam with dakota? Ubuntu, CentOS, Fedora, Suse? thanks |
|
October 7, 2011, 01:36 |
|
#5 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
||
October 24, 2011, 15:45 |
|
#6 |
New Member
Jonas L. Ansoni
Join Date: Jun 2011
Location: Brazil
Posts: 22
Rep Power: 14 |
Hi Niklas,
Do you have any material or tutorial explaining how to make the coupling Openfoam - Dakota? Thanks |
|
October 25, 2011, 01:41 |
|
#7 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
nope, I started to write one but I never finished it cause I think
the available dakota tutorials are good enough. and if you use the Jaguar GUI that they also supply its quite easy to get started. N |
|
November 22, 2013, 00:53 |
Dakota 5.3.1 installation with CentOS 6.4 and OF2.2.x
|
#8 |
Member
|
Few days ago I have installed Dakota 5.3.1 on CentOS6.4. I have found the installation process a bit difficult since there was a conflict with an OpenFOAM library called "libsampling.so" which has the same name of a DAKOTA library. The problem disappeared by using static libraries.
Here the instructions list I did on my pc, hope can be helpful to somebody else: install all the required library as explained here Code:
sudo su - yum install boost boost-system boost-signals boost-regex boost-filesystem boost-devel blas blas-devel lapack lapack-devel openmpi openmpi-devel openmotif openmotif-devel libX11 libXau libXext libXmu libXmu-devel libXp libXp-devel libXpm libXpm-devel 2) in the CMakeLists.txt do the following modifications 2A]-> instead of Code:
option(BUILD_SHARED_LIBS "Build shared libraries?" ON) #145 line Code:
# option(BUILD_SHARED_LIBS "Build shared libraries?" ON) # Build static libraries ONLY set(BUILD_STATIC_LIBS ON CACHE BOOL "Set to ON to build static libraries" FORCE) set(BUILD_SHARED_LIBS OFF CACHE BOOL "Set to ON to build DSO libraries" FORCE) Code:
option(ENABLE_DAKOTA_DOCS "Enable DAKOTA documentation build." ON) Code:
set(BLAS_LIBS "/usr/lib64/libblas.so.3.2.1") set(LAPACK_LIBS "/usr/lib64/liblapack.so.3.2.1") Code:
# TODO: Can't this be integrated into the following logic? if(MSVC) find_package(LAPACK REQUIRED NO_MODULE) Code:
cd /home/yourPATH #where you want to install Dakota sudo cmake28 /home/download/DAKOTA/sourceCodeDistribution # where you downloaded the source code make dakota Code:
gedit cmake_install.cmake Code:
set(CMAKE_INSTALL_PREFIX "/home/yourPATH") Code:
make install Code:
export PATH=$PATH:/home/yourPATH/bin:/home/yourPATH/test export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yourPATH/bin:/home/yourPATH/lib Code:
source ~/.bashrc 7) in the same terminal check that your Dakota installation is working by typing Code:
dakota -v Code:
DAKOTA version 5.3.1 released 05/15/2013. Subversion revision 1606 built Nov 17 2013 15:43:33. |
|
December 1, 2013, 12:44 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings donQi and many thanks for these instructions!
Is there any chance I can convince you to also post these instructions on the openfoamwiki? Namely in this section: http://openfoamwiki.net/index.php/In..._on_CentOS_6.4 For now, I've left the link there to your post, but having the complete instructions on the wiki would make it easier for others to edit the page, in case there is some additional detail that can come in handy! If you do not have the time to copy-paste-adjust your instructions to the wiki page, all we need is permission to do it for you. I'm emphasising this because the wiki complies with this license: Quote:
Bruno
__________________
|
||
December 6, 2013, 01:48 |
|
#10 |
Member
|
Greetings Bruno,
yes, of course you have my permission. This weekend I won't have time so thank you if you can do it for me. But I will probably have some time next week, so I'll check openFoamWiki, if it's still not done I'll do it. Al |
|
December 8, 2013, 09:08 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Al,
I won't be able to look into this before the 25th of December So please, do go ahead and write on the wiki when you have the time+opportunity! Best regards, Bruno
__________________
|
|
January 10, 2014, 11:09 |
|
#12 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
Hi all,
I'm using another software to realize uncertainty quantification in CFD. But, I've some problems with this soft. In fact, to do UQ, I create my design of experiments (DoE) then I simulate my cases with openFoam and I use a second time the soft to reconstruct solutions. But sometimes, some simulations in the DoE don't perform and when I try to do the reconstruction, it's impossible because the soft need all the points in the DoE. So I would like to know if somebody have try to do uncertainty quantification with DAKOTA and if it's possible to reconstruct solutions without some points in the DoE in DAKOTA or in an other software ? Thanks for your answers Regards |
|
January 16, 2014, 04:02 |
|
#13 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
Hi all,
I've tried to install dakota but I've a problem when I compile from sources. This is the error message : Code:
[ 98%] Building C object packages/motif/CMakeFiles/DGraphics.dir/src/Widgets/Common.c.o Common.w: In function `class_initialize': Common.w:287:43: error: `cvtStringToIcon' undeclared (first use in this function) Common.w:287:43: note: each undeclared identifier is reported only once for each function it appears in Common.w:289:10: error: `cvtIconDestructor' undeclared (first use in this function) make[3]: *** [packages/motif/CMakeFiles/DGraphics.dir/src/Widgets/Common.c.o] Error 1 make[2]: *** [packages/motif/CMakeFiles/DGraphics.dir/all] Error 2 make[1]: *** [src/CMakeFiles/dakota.dir/rule] Error 2 make: *** [dakota] Error 2 Thanks for your answers Regards |
|
January 26, 2014, 13:22 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Brugiere,
A few questions:
Bruno
__________________
|
|
January 27, 2014, 02:58 |
|
#15 |
Member
Brugiere Olivier
Join Date: Mar 2009
Posts: 34
Rep Power: 17 |
Greetings Santos,
I've try to compile dakota 5.3.1 on my laptop and I've not problem on a centos 6.5. So I think, I've a conflict on my computer with gcc 4.8.2 I have not had enough time to redo the compilation on my computer. I'll try this week and I'll post the conclusion. Thanks for your answer |
|
March 7, 2014, 13:36 |
Any resolution to src/CMakeFiles/dakota.dir/rule error?
|
#16 |
New Member
Ben
Join Date: Mar 2014
Posts: 1
Rep Power: 0 |
I am getting same error as posted above.
make[1]: *** [src/CMakeFiles/dakota.dir/rule] Error 2 make: *** [dakota] Error 2 Any suggestions for resolution of this error? |
|
May 4, 2014, 12:50 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've finally managed to look into this and here's what I've found:
Hopefully following the updated instructions will reduce the change of unsuccessful builds. Best regards, Bruno
__________________
|
|
July 16, 2014, 10:36 |
|
#18 |
Member
Christian
Join Date: Apr 2014
Posts: 74
Rep Power: 12 |
Hi all,
I tried in any way and wasn't able to install Dakota on Ubuntu (I tried with Ubuntu 12.04 and 13.10). Compiling from source, I have problems with cmake, probably I can't set properly the library paths in the file BuildDakotaCustom.cmake Can anyone provide step-by-step instructions as you did for CentOS? Thanks in advance! |
|
September 17, 2014, 09:34 |
Compiling in Ubuntu
|
#19 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Dear crixmax,
I did not realize that here is a thread about DAKOTA and FOAM. Nontheless using or compiling the software on ubuntu, just follow the instruction in the README/INSTALL file. What you also need are prerequirements (LAPACK, BLAS)... You get it with (Ubuntu 14.04 LTS): Code:
sudo apt-get install liblapack-dev libblas-dev Code:
tar xzf boost_1_49_0.tar.gz cd boost_1_49_0 ./bootstrap.sh --with-libraries=filesystem,program_options,regex,serialization,signals,system --prefix=${HOME}/install_location_of_you_choice/boost/1.49 ./b2 install Add pathes to the boost compiling folder (if you compiled it yourself) and maybe change the prefix for your install file. Next steps are clearly described in the mentioned files. Maybe you have/had problems due to Prerequisites! Non the less I have a question to you guys:
@Niklas:
Thanks in advance,
__________________
Keep foaming, Tobias Holzmann |
|
September 20, 2014, 09:01 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 13:50 |