CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] install fsiFoam on foam-extend-4.0 (https://www.cfd-online.com/Forums/openfoam-installation/231477-install-fsifoam-foam-extend-4-0-a.html)

W.Yan November 6, 2020 22:20

install fsiFoam on foam-extend-4.0
 
hi, everyone, I download and install foam-extend-4.0, then follow the website "http://openfoamwiki.net/index.php/Extend-bazaar/Toolkits/Fluid-structure_interaction" to install fsiFoam. foam-extend-4.0 has been tested to ensure true installation,but I can't install fsiFoam successfully, I guess there is something wrong with the vector, ld or else. Anyone can help me solve this problem? thank you so much!

the error log is showed as following.
*********************************************
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C: In member function 'virtual void Foam::RBFMeshMotionSolver::solve()':
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:297:5: error: 'vector' is not a member of 'std'
std::vector<unsigned int> movingControlPointLabelsVector;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:297:5: note: suggested alternatives:
In file included from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/point.H:35:0,
from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/pointField.H:3,
from /home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:41,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:10,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
typedef Vector<scalar> vector;
^
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
In file included from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:13:0,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFInterpolation.H:18:54: note: 'rbf::vector'
typedef Eigen::Matrix<scalar, Eigen::Dynamic, 1> vector;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:297:17: error: expected primary-expression before 'unsigned'
std::vector<unsigned int> movingControlPointLabelsVector;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:300:5: error: 'vector' is not a member of 'std'
std::vector<unsigned int> movingControlPointPatchIds;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:300:5: note: suggested alternatives:
In file included from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/point.H:35:0,
from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/pointField.H:3,
from /home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:41,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:10,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
typedef Vector<scalar> vector;
^
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
In file included from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:13:0,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFInterpolation.H:18:54: note: 'rbf::vector'
typedef Eigen::Matrix<scalar, Eigen::Dynamic, 1> vector;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:300:17: error: expected primary-expression before 'unsigned'
std::vector<unsigned int> movingControlPointPatchIds;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:301:5: error: 'vector' is not a member of 'std'
std::vector<unsigned int> movingControlPointIndices;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:301:5: note: suggested alternatives:
In file included from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/point.H:35:0,
from /home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/pointField.H:3,
from /home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicMesh/lnInclude/motionSolver.H:41,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:10,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
typedef Vector<scalar> vector;
^
/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude/vector.H:49:24: note: 'Foam::vecto'
In file included from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.H:13:0,
from fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C::
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFInterpolation.H:18:54: note: 'rbf::vector'
typedef Eigen::Matrix<scalar, Eigen::Dynamic, 1> vector;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:301:17: error: expected primary-expression before 'unsigned'
std::vector<unsigned int> movingControlPointIndices;
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:382:25: error: 'movingControlPointLabelsVector' was not declared in this scope
movingControlPointLabelsVector.push_back( meshPoints[j] );
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:383:25: error: 'movingControlPointPatchIds' was not declared in this scope
movingControlPointPatchIds.push_back( movingPatchIDs[patchI] );
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:384:25: error: 'movingControlPointIndices' was not declared in this scope
movingControlPointIndices.push_back( j );
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:390:35: error: 'movingControlPointLabelsVector' was not declared in this scope
nbMovingFaceCenters = movingControlPointLabelsVector.size();
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:467:43: error: 'movingControlPointLabelsVector' was not declared in this scope
for ( unsigned int i = 0; i < movingControlPointLabelsVector.size(); ++i )
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:470:79: error: 'movingControlPointPatchIds' was not declared in this scope
globalMovingPointsPatchIds[i + globalMovingOffsetNonUnique] = movingContro
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:471:78: error: 'movingControlPointIndices' was not declared in this scope
globalMovingPointsIndices[i + globalMovingOffsetNonUnique] = movingControl
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:529:61: error: 'movingControlPointLabelsVector' was not declared in this scope
if ( static_cast<unsigned int>(i) < movingControlPointLabelsVector
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:561:47: error: 'movingControlPointLabelsVector' was not declared in this scope
for ( unsigned int i = 0; i < movingControlPointLabelsVector.size(); ++i )
^
fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C:637:43: error: 'movingControlPointLabelsVector' was not declared in this scope
for ( unsigned int i = 0; i < movingControlPointLabelsVector.size(); ++i )
^
make: *** [Make/linux64GccDPOpt/RBFMeshMotionSolver.o] Error 1
+ wmake solvers/fsiFoam
g++ -m64 -Dlinux64 -DWM_DP -Wno-deprecated -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wunused-local-typedefs -Werror -Wredundant-decls -Wcast-align -Wmissing-declarations -Wswitch-enum -Winvalid-pch -Wredundant-decls -Wformat=2 -Wmissing-format-attribute -Wformat-nonliteral -O3 -DNoRepository -ftemplate-depth-200 -std=c++11 -I../../fluidSolidInteraction/lnInclude -I../../ThirdParty/eigen3 -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/meshTools/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fsiFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/fsiFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/fsiFoam] Error 1
+ wmake solvers/ampFsiFoam
g++ -m64 -Dlinux64 -DWM_DP -Wno-deprecated -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wunused-local-typedefs -Werror -Wredundant-decls -Wcast-align -Wmissing-declarations -Wswitch-enum -Winvalid-pch -Wredundant-decls -Wformat=2 -Wmissing-format-attribute -Wformat-nonliteral -O3 -DNoRepository -ftemplate-depth-200 -std=c++11 -I../../fluidSolidInteraction/lnInclude -I../../ThirdParty/eigen3 -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/ampFsiFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -ldynamicFvMesh -ldynamicMesh -lincompressibleTransportModels -lincompressibleTurbulenceModel -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/ampFsiFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/ampFsiFoam] Error 1
+ wmake solvers/weakFsiFoam
g++ -m64 -Dlinux64 -DWM_DP -Wno-deprecated -Wall -Wextra -Wno-unused-parameter -Wnon-virtual-dtor -Wunused-local-typedefs -Werror -Wredundant-decls -Wcast-align -Wmissing-declarations -Wswitch-enum -Winvalid-pch -Wredundant-decls -Wformat=2 -Wmissing-format-attribute -Wformat-nonliteral -O3 -DNoRepository -ftemplate-depth-200 -std=c++11 -I../../fluidSolidInteraction/lnInclude -I../../ThirdParty/eigen3 -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/meshTools/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/weakFsiFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/weakFsiFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/weakFsiFoam] Error 1
+ wmake solvers/fluidFoam
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I../../fluidSolidInteraction/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/finiteArea/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/meshTools/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fluidFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/fluidFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/fluidFoam] Error 1
+ wmake solvers/solidFoam
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I../../fluidSolidInteraction/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/meshTools/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/solidFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/solidFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/solidFoam] Error 1
+ wmake solvers/thermalSolidFoam
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-200 -I../../fluidSolidInteraction/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/finiteVolume/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/dynamicMesh/dynamicFvMesh/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/finiteArea/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/lagrangian/basic/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/meshTools/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/tetFiniteElement/lnInclude -IlnInclude -I. -I/home/wangyan/foam/foam-extend-4.0/src/foam/lnInclude -I/home/wangyan/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/thermalSolidFoam.o -L/home/wangyan/foam/foam-extend-4.0/lib/linux64GccDPOpt \
-lfiniteVolume -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -ldynamicFvMesh -ldynamicMesh -lmeshTools -L/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt -lfluidSolidInteraction -lfoam -ldl -lrt -lm -o /home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/thermalSolidFoam
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/applications/bin/linux64GccDPOpt/thermalSolidFoam] Error 1
+ wmake libso utilities/functionObjects/pointHistory
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt/libpointHistory.so] Error 1
+ wmake libso utilities/functionObjects/patchAvgTractionHistory
'/home/wangyan/foam/wangyan-4.0/lib/linux64GccDPOpt/libpatchAvgTractionHistory.so' is up to date.
+ wmake libso utilities/functionObjects/centrifugalBodyForce
/usr/bin/ld: unrecognized option '-plugin'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status


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