|
[Sponsors] |
olaFlow - Errors in compiling and tutorial running |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 14, 2020, 15:10 |
olaFlow - Errors in compiling and tutorial running
|
#1 |
Member
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7 |
Hi!
I have issues with compiling and testing olaFlow. If I start compiling it writes several errors like in this lines (but it keeps working and at the end it writes that compiling was successfull): Code:
gpeter@DESKTOP-DKDTKSQ:~/olaFlow$ ./allMake wmake libso genAbs/waveGeneration ln: ./lnInclude Making dependency list for source file wavemakerMovement.C wmkdepend: parse error while scanning 'wavemakerMemberFun.H' ... perhaps missing a final newline wmkdepend: could not open 'PointPatchFieldMapper.H' for source file 'wavemakerMovement/wavemakerMovement.C': No such file or directory wmkdepend: parse error while scanning 'newWriting.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'classicWriting.H' ... perhaps missing a final newline Making dependency list for source file waveVelocityFvPatchVectorField.C wmkdepend: parse error while scanning 'memberFun.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'profileStokesI.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'profileStokesII.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'profileStokesIII.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'profileStreamFunction.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'newWriting.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'classicWriting.H' ... perhaps missing a final newline Making dependency list for source file waveAlphaFvPatchScalarField.C wmkdepend: parse error while scanning 'memberFun.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'newWriting.H' ... perhaps missing a final newline wmkdepend: parse error while scanning 'classicWriting.H' ... perhaps missing a final newline g++ -std=c++11 -m64 -pthread -DOPENFOAM=2006 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DOFVERSION=2006 -DOFFLAVOUR=2 -I/home/gpeter/OpenFOAM/OpenFOAM-v2006/src/finiteVolume/lnInclude -I./waveVelocity/velProfiles -I../common -I../common/checks -I../common/calculateWaterLevel -iquote. -IlnInclude -I/home/gpeter/OpenFOAM/OpenFOAM-v2006/src/OpenFOAM/lnInclude -I/home/gpeter/OpenFOAM/OpenFOAM-v2006/src/OSspecific/POSIX/lnInclude -fPIC -c waveAlpha/waveAlphaFvPatchScalarField.C -o Make/linux64GccDPInt32Opt/waveAlpha/waveAlphaFvPatchScalarField.o waveAlpha/waveAlphaFvPatchScalarField.C: In member function ‘virtual void Foam::waveAlphaFvPatchScalarField::updateCoeffs()’: waveAlpha/waveAlphaFvPatchScalarField.C:340:12: warning: variable ‘auxiliarTotal’ set but not used [-Wunused-but-set-variable] 340 | scalar auxiliarTotal = 0; | ^~~~~~~~~~~~~ waveAlpha/waveAlphaFvPatchScalarField.C:384:18: warning: unused variable ‘g’ [-Wunused-variable] 384 | const scalar g = 9.81; | ^ In file included from waveAlpha/waveAlphaFvPatchScalarField.C:576: ../common/calculateWaterLevel/calculatedLevelRegular.H:107:29: warning: ‘waveKy’ may be used uninitialized in this function [-Wmaybe-uninitialized] 107 | + waveKy*yGroup[it4] - waveOmega*currTime + wavePhase_)); waveAlpha/waveAlphaFvPatchScalarField.C:402:12: note: ‘waveKy’ was declared here 402 | scalar waveKy; ... ... ... Code:
gpeter@DESKTOP-DKDTKSQ:~/olaFlow/tutorials/wavemakerFlume$ ./runCaseFlap mkdir: cannot create directory ‘0’: File exists blockMesh meshing... Preparing 0 folder... Setting the fields... Creating flap wavemaker movement... Traceback (most recent call last): File "flapWaveGen.py", line 3, in <module> import numpy as np ImportError: No module named numpy Running... --> FOAM FATAL IO ERROR: Cannot open include file "/home/gpeter/olaFlow/tutorials/wavemakerFlume/constant/wavemakerMovement.txt" while reading dictionary "/home/gpeter/olaFlow/tutorials/wavemakerFlume/constant/wavemakerMovementDict" file: /home/gpeter/olaFlow/tutorials/wavemakerFlume/constant/wavemakerMovementDict at line 21. From static bool Foam::functionEntries::includeEntry::execute(bool, Foam::dictionary&, Foam::Istream&) in file db/dictionary/functionEntries/includeEntry/includeEntry.C at line 170. FOAM exiting What is the problem? Maybe olaFlow has compatibility problems with Ubuntu bash on Win 10 (Newline character or something like that)? Both error messages has "wavemakerMovement" part. Does it have any meaning? Thank you in advance! Peter |
|
October 14, 2020, 18:50 |
|
#2 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi Peter,
warnings are not errors ;-) The new issue has to do with Python dependencies. To generate the movement of the flap wavemaker you need to have the Numpy package installed for your Python distribution. This is usually very easy and can be sort out with a fast google search. Best, Pablo |
|
Tags |
compile, error, install, olaflow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] Problems compiling foam-extend-4.0 + fsiFoam on Ubuntu+WSL | JBrake | OpenFOAM Installation | 49 | November 5, 2021 12:00 |
Errors when compiling UDFs | minglis | Fluent UDF and Scheme Programming | 0 | May 16, 2017 09:54 |
errors after running (wmake ) command, please help!! | Salim | OpenFOAM | 1 | February 7, 2017 22:06 |
Tutorial on compiling new solvers, utilities, boundary conditions, etc. | lordvon | OpenFOAM Programming & Development | 2 | May 13, 2015 10:06 |
Compilation Error when running Tutorial 2.4 | zhihuali | Siemens | 7 | April 1, 2008 08:34 |