CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[SOWFA] SOWFA installation problems

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By redbullah

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2018, 08:31
Lightbulb SOWFA installation problems
  #1
New Member
 
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12
redbullah is on a distinguished road
Hello, this is probably caused by my lack of understanding on how .bash and wmake works, but since I couldn't figure out how to go through, here I am seeking for help.

The app I am trying to install is here: https://github.com/NREL/SOWFA. It works with OpenFOAM 2.4.0 and it is what I have currently.
Instructions on how to install SOWFA is given in this file. According to it, one has to configure the provided .bash_profile file according to their system.
First thing; I am not sure how to use that .bash_profile file. Should I copy the contents and append it to $HOME/.bash file, or "source" the file in some way? Some light on this will be appreciated.
After that configuration, the Allwmake script must be run. Now when I run it, I get the following error:

Code:
Making dependency list for source file windPlantSolver.C
could not open file horizontalAxisWindTurbinesALM.H for source file windPlantSolver.C due to No such file or directory
SOURCE=windPlantSolver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam240/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam240/src/transportModels -I/opt/openfoam240/src/transportModels/incompressible/singlePhaseTransportModel -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I/opt/openfoam240/src/fvOptions/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/home/canon/OpenFOAM/canon-2.4.0/src/turbineModels/turbineModelsStandard/lnInclude -I./interpolate2D -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/windPlantSolver.o
windPlantSolver.C:59:43: fatal error: horizontalAxisWindTurbinesALM.H: No such file or directory
 #include "horizontalAxisWindTurbinesALM.H"
                                           ^
compilation terminated.
make: *** [Make/linux64GccDPOpt/windPlantSolver.o] Error 1
and a series of errors after that complaining same/similar files are missing. This error is caused by the following lines in Allwmake file:

Code:
# The wind plant solver with the standard actuator line.
cd applications/solvers/incompressible/windEnergy/windPlantSolver.ALM
wmake
cd ../../../../../
in which the directory is changed to here. In here, options file for wmake is this and I am suspecting the following line it has:

Code:
    -I$(WM_PROJECT_USER_DIR)/src/turbineModels/turbineModelsStandard/lnInclude \
since the cannot-be-found horizontalAxisWindTurbinesALM.H file is supposed to be there. Now, how can I define this, I am not sure. Probably it has something to do with the line starting with

Code:
-I$(WM_PROJECT_USER_DIR) ...
in the Make/options file; which is a probable problem linking back to the .bash_profile file.

How am i supposed to use that .bash_profile file and the SOWFA-2.4.x() function in it? Or is the problem somewhere else?

Any help would be appreciated. Thanks in advance.
elvis likes this.

Last edited by redbullah; August 2, 2018 at 08:38. Reason: wrong conclusion
redbullah is offline   Reply With Quote

Old   March 28, 2019, 05:48
Default
  #2
New Member
 
Join Date: Feb 2018
Posts: 1
Rep Power: 0
yluan is on a distinguished road
Hi redbullah,


In case you or anyone else are still wondering, you can add
Code:
export WM_PROJECT_USER_DIR={your_dir_to_SOWFA}/SOWFA/
in Allwmake in your SOWFA directory so that horizontalAxisWindTurbinesALM.Hcan be located.


For those having $(SOWFA_DIR) in the Make/options file, it's better to look at SOWFA/.bash_profile and see how SOWFA_DIR is defined. Then you either modify and source the .bash_profile or export SOWFA_DIR yourself and make sure the export is done in SOWFA/Allwmake as shown above. From my experience, whenever such problem pops up during compiling, just look at its Make/options file and some path variables is probably not properly set.

Last edited by yluan; March 28, 2019 at 12:57. Reason: Update on newer SOWFA builds
yluan is offline   Reply With Quote

Reply

Tags
compilation, openfoam, sowfa, wmake

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[OpenFOAM.com] v1606+ problems with installation of foamyHexMesh mvee OpenFOAM Installation 11 October 26, 2016 12:07
[Other] Installation problems with OpenFOAM 2.3.x for Windows from cfdsupport.com Nkl OpenFOAM Installation 7 March 31, 2015 11:59
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 08:18
Problems with installation batta31 OpenFOAM Installation 2 September 4, 2012 08:01
installation problems on upgrade from win 3.26 to mic Siemens 5 June 20, 2007 10:40


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