|
[Sponsors] |
August 2, 2018, 08:31 |
SOWFA installation problems
|
#1 |
New Member
So Anon
Join Date: Jun 2014
Posts: 28
Rep Power: 12 |
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 Code:
# The wind plant solver with the standard actuator line. cd applications/solvers/incompressible/windEnergy/windPlantSolver.ALM wmake cd ../../../../../ Code:
-I$(WM_PROJECT_USER_DIR)/src/turbineModels/turbineModelsStandard/lnInclude \ Code:
-I$(WM_PROJECT_USER_DIR) ... 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. Last edited by redbullah; August 2, 2018 at 08:38. Reason: wrong conclusion |
|
March 28, 2019, 05:48 |
|
#2 |
New Member
Join Date: Feb 2018
Posts: 1
Rep Power: 0 |
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/ 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 |
|
Tags |
compilation, openfoam, sowfa, wmake |
|
|
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 |