CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   icoFsiFoam in OF1.6-ext does not work (https://www.cfd-online.com/Forums/openfoam/90360-icofsifoam-of1-6-ext-does-not-work.html)

mechy July 7, 2011 14:42

icoFsiFoam in OF1.6-ext does not work
 
Hi all

I add to "sources.list"
deb http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main


then I install openfoam-1.6-ext by synaptic
the solvers of openfoam is worked correctly
except icoFsiFoam solver
when I execute ./Allrun in (flappingConsoleSmall icoFsiFoam tuturial ) I encounter bellow error

blockMesh already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/fluid: remove log file to run
ln: creating symbolic link `solid/constant': File exists
ln: creating symbolic link `solid/0': File exists
blockMesh already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/solid: remove log file to run
/home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall
./Allrun: 23: makeFsiCaseLinks: not found
icoFsiFoam already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/fluid: remove log file to run
./Allrun: 27: makeFsiResultsLinks: not found


also I can not run ./Allwmake in application folder (cannot create directory `linux64GccDPOpt': Permission denied)
and when I use sudo ./Allwmake I enconter bellow error

Error: Current directory in not $WM_PROJECT_DIR/applications
The environment variable are not consistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.


how can I remove this error ?

Yasser

gascortado July 24, 2011 09:57

Quote:

Originally Posted by mechy (Post 315217)
Hi all

I add to "sources.list"
deb http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main


then I install openfoam-1.6-ext by synaptic
the solvers of openfoam is worked correctly
except icoFsiFoam solver
when I execute ./Allrun in (flappingConsoleSmall icoFsiFoam tuturial ) I encounter bellow error

blockMesh already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/fluid: remove log file to run
ln: creating symbolic link `solid/constant': File exists
ln: creating symbolic link `solid/0': File exists
blockMesh already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/solid: remove log file to run
/home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall
./Allrun: 23: makeFsiCaseLinks: not found
icoFsiFoam already run on /home/yas/OpenFOAM/yas-1.6-ext/run/tutorials/stressAnalysis/icoFsiFoam/flappingConsoleSmall/fluid: remove log file to run
./Allrun: 27: makeFsiResultsLinks: not found

how can I remove this error ?

Yasser

I have these same errors and I cannot make icoFsiFoam to run. Does anyone knows how to solve this issue? Thanks

mechy July 25, 2011 01:44

replace your RunFunctions (in bin/tools/) with the latest version at
http://openfoam-extend.svn.sourcefor...ext/bin/tools/

gascortado July 25, 2011 22:40

Hi Mechy, thanks for you reply.

I recently downloaded OF-1.6-ext. In bin/tools the RunFunctions file looks just like the one that your link has:

makeFsiCaseLinks ()
{
cd $1
cd system
ln -s ../../$2/system $2
cd ../constant
ln -s ../../$2/constant $2
cd ../0
ln -s ../../$2/0 $2
cd ../..
}

makeFsiResultsLinks ()
{
cd $1
TIME_DIRS=`foamInfoExec -times | sed '1,/constant/d'`
echo "makeFsiResultsLinks for" $TIME_DIRS
cd ../$2
for T in $TIME_DIRS
do
ln -s ../$1/${T}/solid ${T}
done
cd ..
}


however when I run /.allrun I get the error. I also tried to compile the solver with "wmake all" and I get the following error:

Making dependency list for source file tractionDisplacement/tractionDisplacementFvPatchVectorField.C
could not open file tetFemMatrices.H for source file icoFsiFoam.C
could not open file tetPointFields.H for source file icoFsiFoam.C
could not open file faceTetPolyPatch.H for source file icoFsiFoam.C
could not open file tetPolyPatchInterpolation.H for source file icoFsiFoam.C
could not open file fixedValueTetPolyPatchFields.H for source file icoFsiFoam.C
SOURCE=tractionDisplacement/tractionDisplacementFvPatchVectorField.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/tractionDisplacementFvPatchVectorField.o
SOURCE=icoFsiFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/icoFsiFoam.o
icoFsiFoam.C:38: fatal error: tetFemMatrices.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/icoFsiFoam.o] Error 1
make: *** Waiting for unfinished jobs....
santiago@santiago-laptop:~/OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/stressAnalysis/icoFsiFoam$ wmake all
SOURCE=icoFsiFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/icoFsiFoam.o
icoFsiFoam.C:38: fatal error: tetFemMatrices.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/icoFsiFoam.o] Error 1
santiago@santiago-laptop:~/OpenFOAM/OpenFOAM-1.6-ext/applications/solvers/stressAnalysis/icoFsiFoam$ cd
santiago@santiago-laptop:~$ cd $FOAM_RUN/Thesis/FSI/solverAndTestCaseFSI/testVorflexFoam
santiago@santiago-laptop:~/OpenFOAM/santiago-1.6-ext/run/Thesis/FSI/solverAndTestCaseFSI/testVorflexFoam$ ./Allrun
bash: ./Allrun: No such file or directory
santiago@santiago-laptop:~/OpenFOAM/santiago-1.6-ext/run/Thesis/FSI/solverAndTestCaseFSI/testVorflexFoam$ wmake all
SOURCE=testVorflexFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicFvMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/dynamicMesh/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/meshTools/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/turbulenceModels/incompressible/turbulenceModel -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels -I/usr/lib/OpenFOAM-1.6-ext/src/transportModels/incompressible/singlePhaseTransportModel -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -DFACE_DECOMP -I/usr/lib/OpenFOAM-1.6-ext/src/tetDecompositionFiniteElement/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/dynamicMesh/meshMotion/tetDecompositionMotionSolver/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/testVorflexFoam.o
testVorflexFoam.C:41: fatal error: tetFemMatrices.H: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/testVorflexFoam.o] Error 1


however, I looked into OpenFOAM-1.6-ext/SRC/tetDecompositionFiniteElement/tetFemMatrix and all of the files that are mentioned in the error above are there (e.g tetFemMatrices). I dont understand why is not reading the files. Is it possible that the compiler is not looking in the right folder for these files?

I would appreciate any help. Thanks man

mechy July 26, 2011 03:14

are you install OF-1.6-ext from source file ?
for installation follow the bellow steps

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0BD7612

add to your "sources.list" /etc/apt/sources.list.d/debian.list (on a real debian distribution)
deb http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main
deb-src http://ppa.launchpad.net/cae-team/ppa/ubuntu/ lucid main

#deb http://ftp.debian.org/debian/ sid main contrib non-free #non-free is needed for libparmetis3.1 (this line is only necessary on some debian based distibutions like SIDUX)

sudo apt-get install openfoam-1.6-ext openfoam-1.6-ext-dev

add the following line to your ~/.bashrc
alias startOF16ext='source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc'
startOF16ext
# source the OpenFOAM aliases (src, tut, sol, ...)
source $WM_PROJECT_DIR/etc/aliases.sh

in (settings.sh) change FOAM_TUTORIALS
export FOAM_TUTORIALS=/usr/share/doc/openfoam-1.6-ext/examples

# create $FOAM_RUN firectory
mkdir -p $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run

cp -r $FOAM_TUTORIALS $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run


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