CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM CC Toolkits for Fluid-Structure Interaction (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/)
-   -   [solids4Foam] solids4foam with waves2foam (https://www.cfd-online.com/Forums/openfoam-cc-toolkits-fluid-structure-interaction/237122-solids4foam-waves2foam.html)

Elstro July 1, 2021 10:07

solids4foam with waves2foam
 
Hello,

I have successfully installed the solids4foam-toolbox with foam extend 4.0 on Ubuntu 18.04. Normal FSI tutorials work without errors.

Now I am trying to add the waves2foam-toolbox to simulate some waves und running the FSI tutorial 'wavesOnDam'. The tutorial was running till 0.06 s...
In the log.setWaveField.fluid was the following error message:

Code:


/home/.../foam/foam-extend-4.0/bin/tools/RunFunctions: line 55: setWaveField: command not found

When installing waves2foam I get the following attached error. It's the same error as in the log file.

Code:


=====================================
    COMPILE PRE-PROCESSING
=====================================
make[1]: '/home/.../foam/.../applications/bin/linux64GccDPOpt/faceSetToSTL' is up to date.
make[1]: '/home/.../foam/.../applications/bin/linux64GccDPOpt/setWaveParameters' is up to date.
make[1]: '/home/.../foam/.../applications/bin/linux64GccDPOpt/waveGaugesNProbes' is up to date.
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/.../foam/foam-extend-4.0/src/meshTools/lnInclude    -I/home/.../foam/foam-extend-4.0/src/finiteVolume/lnInclude    -DOFVERSION=400    -DEXTBRANCH=1    -I/home/.../foam/.../applications/utilities/waves2Foam/src/waves2Foam/lnInclude    -I/usr/include -IlnInclude -I. -I/home/.../foam/foam-extend-4.0/src/foam/lnInclude -I/home/.../foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/setWaveField.o -L/home/.../foam/foam-extend-4.0/lib/linux64GccDPOpt \
    -lfiniteVolume    -L/home/.../foam/.../lib/linux64GccDPOpt    -lwaves2Foam    -lwaves2FoamGABC    -L/usr/lib64    -lgsl    -lgslcblas -lfoam -ldl  -lrt -lm -o /home/.../foam/.../applications/bin/linux64GccDPOpt/setWaveField
SOURCE=sampleIncidentWaveField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/.../foam/foam-extend-4.0/src/meshTools/lnInclude    -I/home/.../foam/foam-extend-4.0/src/finiteVolume/lnInclude    -DOFVERSION=400    -DEXTBRANCH=1    -I/home/.../foam/.../applications/utilities/waves2Foam/src/waves2Foam/lnInclude    -I/home/.../foam/.../applications/utilities/waves2Foam/src/waves2FoamProcessing/lnInclude    -I/usr/include -IlnInclude -I. -I/home/.../foam/foam-extend-4.0/src/foam/lnInclude -I/home/.../foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sampleIncidentWaveField.o
make[1]: '/home/.../foam/.../applications/bin/linux64GccDPOpt/relaxationZoneLayout' is up to date.
sampleIncidentWaveField.C:37:10: fatal error: Time.H: No such file or directory
 #include "Time.H"
          ^~~~~~~~
compilation terminated.
sampleIncidentWaveField.dep:702: recipe for target 'Make/linux64GccDPOpt/sampleIncidentWaveField.o' failed
make[1]: *** [Make/linux64GccDPOpt/sampleIncidentWaveField.o] Error 1
make[1]: Target '/home/.../foam/.../applications/bin/linux64GccDPOpt/sampleIncidentWaveField' not remade because of errors.
/home/.../foam/foam-extend-4.0/wmake/MakefileApps:39: recipe for target 'sampleIncidentWaveField' failed
make: *** [sampleIncidentWaveField] Error 2
/usr/bin/ld: cannot find -lwaves2FoamGABC
collect2: error: ld returned 1 exit status
/home/.../foam/foam-extend-4.0/wmake/Makefile:159: recipe for target '/home/.../foam/.../applications/bin/linux64GccDPOpt/setWaveField' failed
make[1]: *** [/home/.../foam/.../applications/bin/linux64GccDPOpt/setWaveField] Error 1
/home/.../foam/foam-extend-4.0/wmake/MakefileApps:39: recipe for target 'setWaveField' failed
make: *** [setWaveField] Error 2
make: Target 'application' not remade because of errors.

I don't know how to fix it. I would be very grateful for help.

Thank you!

Elstro July 8, 2021 11:18

1 Attachment(s)
I have additionally attached my log file with the error message.


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