February 27, 2024, 21:32
|
SonicDyMFoam Installation issue
|
#1
|
New Member
Join Date: Sep 2023
Posts: 8
Rep Power: 3
|
I am trying to compile a solver in OpenFoam 2.4.0 but ran into "no such directory or file" issues. The solver is given to me by other people who is not available to answer my questions, but I have to use it and I really don't want to make change to it.
I ran a ./Allwmake file where it wmake the solver itself (I think it is itself because the first command in the file is just wmake), and also wmake two more items called sonicDyMFoam and sonicLiquidFoam. The solver itself compiles just fine:
Quote:
+ wmake
make: '/home/maxning/OpenFOAM/maxning-2.4.0/platforms/linux64GccDPOpt/bin/SDBD_PA_sonic_flowField' is up to date.
|
But the other two is not:
Quote:
+ wmake sonicDyMFoam
SOURCE=sonicDyMFoam.C ; g++-4.8 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I.. -I../../rhoPimpleFoam/rhoPimpleDyMFoam -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/transportModels/compressible/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/thermophysicalModels/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/turbulenceModels/compressible/turbulenceModel -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/cfdTools -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/fvOptions/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/dynamicFvMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sonicDyMFoam.o
sonicDyMFoam.C:54:30: fatal error: readControls.H: No such file or directory
#include "readControls.H"
^
compilation terminated.
sonicDyMFoam.dep:711: recipe for target 'Make/linux64GccDPOpt/sonicDyMFoam.o' failed
make: *** [Make/linux64GccDPOpt/sonicDyMFoam.o] Error 1
+ wmake sonicLiquidFoam
SOURCE=sonicLiquidFoam.C ; g++-4.8 -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/sonicLiquidFoam.o
In file included from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/ddtScheme.C:30:0,
from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/ddtScheme.H:325,
from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcDdt.C:28,
from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvcDdt.H:199,
from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvc.H:44,
from /opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/fvCFD.H:8,
from sonicLiquidFoam.C:33:
/opt/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude/cyclicAMIFvPatch.H:39:35: fatal error: cyclicAMILduInterface.H: No such file or directory
#include "cyclicAMILduInterface.H"
^
compilation terminated.
sonicLiquidFoam.dep:633: recipe for target 'Make/linux64GccDPOpt/sonicLiquidFoam.o' failed
make: *** [Make/linux64GccDPOpt/sonicLiquidFoam.o] Error 1
|
I found sonicLiquidFoam.C, sonicLiquidFoam.dep, and sonicDyMFoam.C in the folder I am given, but I cannot find readControls.H and cyclicAMILduInterface.H. Is there other solvers or something else I need to install to $FOAM_USER_APPBIN or LIBBIN? I remember that for another solver folder I received I need to install swak4Foam to the LIBBIN first.
|
|
|