CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

olaFlow - Errors in compiling and tutorial running

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2020, 15:10
Default olaFlow - Errors in compiling and tutorial running
  #1
Member
 
Grivalszki Péter
Join Date: Mar 2019
Location: Budapest, Hungary
Posts: 39
Rep Power: 7
GrivalszkiP is on a distinguished road
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;

...
...
...
After it, I tried to run a simulation case (wavemakerFlap) but it crashes with this error:

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
I use OpenFOAM v2006 under Ubuntu bash on Windows 10 (compiled OF manually, NOT pre-compiled version - what is also had been tried).

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
GrivalszkiP is offline   Reply With Quote

Old   October 14, 2020, 18:50
Default
  #2
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
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
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Reply

Tags
compile, error, install, olaflow

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
[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


All times are GMT -4. The time now is 12:46.