|
[Sponsors] |
February 11, 2014, 06:01 |
running NREL sample turbine
|
#1 |
New Member
ruben p.
Join Date: Dec 2013
Location: Copenhagen, Denmark
Posts: 7
Rep Power: 12 |
Hi CFD experts!
I am trying to run the NREL wind turbine code found in their website ( http://wind.nrel.gov/designcodes/simulators/sowfa/ ), by following the instructions on their pdf file ( http://wind.nrel.gov/designcodes/sim...05-03-2012.pdf , slide 88). So far, I managed to decompress the downloaded folder, but I am not able to run "./Allwclean" nor "./Allwmake" . The errors I get are: ruben@ruben-VirtualBox:/opt/openfoam211$ ./Allwcleanand a quite extensive list of errors of the kind ruben@ruben-VirtualBox:/opt/openfoam211$ ./AllwmakeI believe it has to do with the permissions I have for my openfoam directory, but I am the one who installed it and the only one using it. Any idea of how I could make this code run? The OpenFOAM version I am running is 2.1.1, on an Ubuntu 11.10 virtual machine. Thanks! Ruben |
|
February 14, 2014, 11:09 |
|
#2 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
I was recently trying to compile SOWFA, but ran into different issues.
Regarding yours, you are trying to compile in a system directory without root privileges. Reread the SOWFA installation instructions in the README. They instruct you to put the code in your OpenFOAM user directory (not opt), then run Allwmake. Be careful using Allwclean. When I ran it, it couldn't find various folders, then ended up in my home directory, deleting all files (not directories, thankfully). |
|
February 17, 2014, 06:53 |
|
#3 |
New Member
ruben p.
Join Date: Dec 2013
Location: Copenhagen, Denmark
Posts: 7
Rep Power: 12 |
Thanks Pete!
I was checking the instructions on the pdf from the website, not the readme file. On step two, it states: 2. When you installed OpenFOAM, you modified your login scriptAs per http://www.openfoam.org/archive/2.1....oad/ubuntu.php , I had to modify the file ~/.bashrc . So I tried to check there if there is anything pointing to my correspondig directory. However, I look at bashrc and I cant really tell where is WM_PROJECT_USER_DIR pointing to it :/ Maybe, that was not the right file to work with? In which one did you check that WM_PROJECT_USER_DIR is pointing to the right directory? Here is the content of my bashrc file: # ~/.bashrc: executed by bash(1) for non-login shells. Thanks! Ruben |
|
March 6, 2014, 13:52 |
|
#4 |
New Member
Zhong, Hong Min
Join Date: Oct 2012
Location: UESTC, Chengdu in China
Posts: 8
Rep Power: 14 |
I remember I compiled the code SOWFA about a year ago, several keys noted:
1. OPENFOAM should be installed correctly to ensure a good compiler C++ envorinments and read the README file in SOWFA before compiling. 2. WM_PROJECT_USER_DIR mentioned by you might point anywhere, but the HOME (linux) directory usually is good to avoid the permission right problems. 3. there are some FORTRAN code in SOWFA, have you a suitable FORTRAN compiler? if not, you can delete the FT files and remember to rewrite the MAKE file. hope useful to you. ZHM |
|
March 6, 2014, 15:37 |
|
#5 |
Senior Member
Pete Bachant
Join Date: Jun 2012
Location: Boston, MA
Posts: 173
Rep Power: 14 |
Ruben,
In a terminal, you can simply enter Code:
echo $WM_PROJECT_USER_DIR |
|
March 28, 2014, 08:10 |
|
#6 |
New Member
ruben p.
Join Date: Dec 2013
Location: Copenhagen, Denmark
Posts: 7
Rep Power: 12 |
Thanks Pete and Zhong
I did install a Fortran compiler, and kept moving on with the SOWFA set-up. I started to compile all the solvers one by one, and faced an error when trying with "fastPisoSolver" (see below) rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver$ wmake options:5:58: warning: backslash-newline at end of file [enabled by default] Making dependency list for source file pisoFoam.C SOURCE=pisoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/transportModels -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/transportModels/incompressible/ -IlnInclude -I. -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/pisoFoam.o In file included from pisoFoam.C:61:0: initContinuityErrs.H:33:29: warning: missing whitespace after the macro name [enabled by default] pisoFoam.C:85:3: error: invalid preprocessing directive #turbines In file included from pisoFoam.C:61:0: initContinuityErrs.H: In function ‘int main(int, char**)’: initContinuityErrs.H:37:1: error: expected ‘;’ before ‘scalar’ initContinuityErrs.H:37:29: warning: statement has no effect [-Wunused-value] pisoFoam.C:67:33: error: ‘turbfast’ was not declared in this scope In file included from pisoFoam.C:169:0: continuityErrs.H:40:5: error: ‘cumulativeContErr’ was not declared in this scope pisoFoam.C:184:5: error: ‘turbines’ was not declared in this scope readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable] readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable] make: *** [Make/linuxGccDPOpt/pisoFoam.o] Error 1 rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver$ rmdepall removing all .dep files ... rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver$ wclean rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver$ cd fast/bin rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver/fast/bin$ rm * rm: cannot remove `*': No such file or directory rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver/fast/bin$ cd ../.. rp@rp-VirtualBox:/work/rp/OpenFOAM/rp-2.0.x/applications/solvers/windEnergy/fastPisoSolver$ wmake options:5:58: warning: backslash-newline at end of file [enabled by default] Making dependency list for source file pisoFoam.C SOURCE=pisoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/turbulenceModels/incompressible/turbulenceModel -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/transportModels -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/transportModels/incompressible/ -IlnInclude -I. -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/OpenFOAM/lnInclude -I/work/rp/OpenFOAM/OpenFOAM-2.0.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/pisoFoam.o In file included from pisoFoam.C:61:0: initContinuityErrs.H:33:29: warning: missing whitespace after the macro name [enabled by default] initContinuityErrs.H: In function ‘int main(int, char**)’: initContinuityErrs.H:37:1: error: expected ‘;’ before ‘scalar’ initContinuityErrs.H:37:29: warning: statement has no effect [-Wunused-value] pisoFoam.C:67:33: error: ‘turbfast’ was not declared in this scope In file included from pisoFoam.C:169:0: continuityErrs.H:40:5: error: ‘cumulativeContErr’ was not declared in this scope pisoFoam.C:184:5: error: ‘turbines’ was not declared in this scope readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable] readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable] make: *** [Make/linuxGccDPOpt/pisoFoam.o] Error 1 All the others can run now without problems, except this one. In my bashrc file WM_PROJECT_USER_DIR is defined as: # Location of user files # ~~~~~~~~~~~~~~~~~~~~~~ export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION However, when installing OpenFoam, I set it here: # Location of the OpenFOAM installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ foamInstall=/work/$USER/$WM_PROJECT Could that be a reason of why I'm having such an error? Thanks in advance! Ruben |
|
Tags |
nrel, of211, permission denied |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam 4.1: interDyMFoam LES Simulation for hydro turbine in river | pi__sec | OpenFOAM Running, Solving & CFD | 13 | July 19, 2017 05:08 |
wind turbine running error | Ruchi | SU2 | 1 | May 31, 2016 15:48 |
6dof for rotation of turbine: unable to fix the center | Havinh | Fluent UDF and Scheme Programming | 0 | August 5, 2015 06:35 |
Wrong power coefficient prediction in CFX for hydrokinetic turbine | Iggy | CFX | 6 | August 1, 2015 03:56 |
BEM Analysis of NREL phase VI turbine | er_ijaz | Main CFD Forum | 11 | April 17, 2013 09:04 |