CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] Compling in OpenFOAM-v1912 faceSetToSTL fatal error (https://www.cfd-online.com/Forums/openfoam-community-contributions/225886-compling-openfoam-v1912-facesettostl-fatal-error.html)

simucentral April 10, 2020 15:13

Compling in OpenFOAM-v1912 faceSetToSTL fatal error
 
Hi Sir,

I was trying to compile waves2Foam in OpenFOAM-v1912. While compiling, I encountered the following error.

At first I noticed in the OceanWave3D compiling section,

src/initialization/Initialize.f90:48:18:

WRITE(fileop(1),*),'Error: Problem with specified input file.'
1
Warning: Legacy Extension: Comma before i/o item list at (1)


And in this section,

=====================================
COMPILE PRE-PROCESSING
=====================================
wmake faceSetToSTL
...
Making dependency list for source file faceSetToSTL.C
wmkdepend: could not open 'foamTime.H' for source file 'faceSetToSTL.C': No such file or directory
wmkdepend: could not open 'faceTriangulation.H' for source file 'faceSetToSTL.C': No such file or directory
wmkdepend: could not open 'triSurface.H' for source file 'faceSetToSTL.C': No such file or directory

faceSetToSTL.C:56:10: fatal error: faceTriangulation.H: No such file or directory
#include "faceTriangulation.H"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/simucentral/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/faceSetToSTL.o' failed

And in the end, it showed this,

=====================================
COMPILE BREEDER
=====================================

Nothing available for compilation in the breeder
directory.


=====================================
COMPILATION DONE
=====================================

Is this normal? Do I have a successful completion of waves2Foam now?

Sorry, I am an absolute beginner.
Can you please enlighten me on this?

Can I make simulations on irregular waves using this version?

Thank you so much.

simucentral April 11, 2020 00:39

I tried to do the step again. This is the full log.


v1912

=====================================
ENVIRONMENTAL VARIABLES
=====================================
EXTBRANCH=0
FOAMEXTENDPROJECT=0
OFPLUSBRANCH=1
WAVES_APPBIN=/home/simucentral/OpenFOAM/simucentral-v1912/platforms/linux64GccDPInt32Opt/bin
WAVES_DIR=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam
WAVES_GSL_INCLUDE=/usr/include
WAVES_GSL_LIB=/usr/lib64
WAVES_LIBBIN=/home/simucentral/OpenFOAM/simucentral-v1912/platforms/linux64GccDPInt32Opt/lib
WAVES_POST=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/utilities/postProcessing
WAVES_PRE=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing
WAVES_SOL=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/solvers/solvers1912_PLUS
WAVES_SRC=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/src
WAVES_TUT=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/tutorials
WAVES_UTIL=/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/utilities
WAVES_XVERSION=0
WM_PROJECT_VERSION_NUMBER=1912

=====================================
COMPILE LAPACK-3.3.1
=====================================

lapack-3.3.1 has already been compiled

=====================================
COMPILE SPARSKIT2
=====================================

SPARSKIT2 has already been compiled

=====================================
COMPILE OCEANWAVE3D
=====================================

Pull changes from the OceanWave3D git repository ...
Saved working directory and index state WIP on master: bb7d99e bug fix for calling OceanWave3D
Already up to date.
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified: common.mk
modified: makefile

no changes added to commit (use "git add" and/or "git commit -a")
Dropped refs/stash@{0} (7938bab451ff38c15143839641b4d8b763466cb0)

OceanWave3D has already been compiled

/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/ThirdParty
=====================================
COMPILE FENTON4FOAM
=====================================

fenton4Foam has already been compiled

=====================================
COMPILE LIBRARY
=====================================
v1912
wmake libso (waves2Foam)
wmake libso (waves2FoamProcessing)
wmake libso (waves2FoamSamplingNew)
wmake libso (waves2FoamPorosity)

=====================================
COMPILE SOLVERS
=====================================

=====================================
COMPILE PRE-PROCESSING
=====================================
wmake faceSetToSTL
make[1]: Entering directory '/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
g++ -std=c++11 -m64 -DOPENFOAM=1912 -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 -I/home/simucentral/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/simucentral/OpenFOAM/OpenFOAM-v1912/src/triSurface/lnInclude -I/home/simucentral/OpenFOAM/OpenFOAM-v1912/src/finiteVolume/lnInclude -DOFVERSION=1912 -DEXTBRANCH=0 -IlnInclude -I. -I/home/simucentral/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude -I/home/simucentral/OpenFOAM/OpenFOAM-v1912/src/OSspecific/POSIX/lnInclude -fPIC -c faceSetToSTL.C -o Make/linux64GccDPInt32Opt/faceSetToSTL.o
faceSetToSTL.C:56:10: fatal error: faceTriangulation.H: No such file or directory
#include "faceTriangulation.H"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/simucentral/OpenFOAM/OpenFOAM-v1912/wmake/rules/General/transform:34: recipe for target 'Make/linux64GccDPInt32Opt/faceSetToSTL.o' failed
make[1]: *** [Make/linux64GccDPInt32Opt/faceSetToSTL.o] Error 1
make[1]: Leaving directory '/home/simucentral/OpenFOAM/simucentral-v1912/applications/utilities/waves2Foam/applications/utilities/preProcessing/faceSetToSTL'
/home/simucentral/OpenFOAM/OpenFOAM-v1912/wmake/makefiles/apps:29: recipe for target 'faceSetToSTL' failed
make: *** [faceSetToSTL] Error 2

=====================================
COMPILE POST-PROCESSING
=====================================

=====================================
COMPILE BREEDER
=====================================

Nothing available for compilation in the breeder
directory.


=====================================
COMPILATION DONE
=====================================


Posting this update in the hope that it will provide more info.

simucentral April 26, 2020 06:17

With this setup, I tried to run the 3DWave tutorial problem. However, I couldn't run the case. In the log.faceSet and the subsequent log files, it says..

/home/simucentral/OpenFOAM/OpenFOAM-v1912/bin/tools/RunFunctions: line 228: faceSet: command not found

Any advice on how to proceed?

ngj April 26, 2020 15:27

Hallo,


I just tried compiling under 1912 with a clean check-out from the repository. It compiled without any problems.


The missing faceSet is due to a obsolete functionality in OpenFoam. Please adjust by using topoSet instead.


Kind regards


Niels

simucentral April 27, 2020 17:43

1 Attachment(s)
Hi Niels,

Thank you so much for your quick response. :)

As advised, I did a clean up and did a fresh check out and compiled again. I ran the 3Dwaves tutorial problem again. The faceSet showed the same error.

However, the waveFoam completed the run. This is the first look.

https://1.bp.blogspot.com/-Lcow1VGap...3Dwaves_01.png

I will try with topoSet instead of faceSet, then I will need the topoSetDict.I will have to study more to get that right.

I was going to compile v1812 actually.

Thank you Niels.

Warm Regards,
Akram


All times are GMT -4. The time now is 08:49.