This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/extend-bazaar/Allwmake

40 lines
1.1 KiB
Text
Raw Normal View History

2014-06-16 16:00:21 +00:00
#!/bin/bash
cd ${0%/*} || exit 1 # run from this directory
# Install Fluid-Structure Interaction package
if [ ! -d "FluidStructureInteraction" ]; then
wget http://openfoamwiki.net/images/5/52/Fsi_31.tar.gz
tar zxvf Fsi_31.tar.gz
rm Fsi_31.tar.gz
fi
2014-06-16 16:00:21 +00:00
2014-10-14 21:18:12 +00:00
(
cd FluidStructureInteraction/src
./Allwmake
)
2014-06-16 16:00:21 +00:00
# Install cfMesh mesh generation package
if [ ! -d "cfMesh-v1.0" ]; then
wget http://www.c-fields.com/Media/Default/Repository/cfMesh-v1.0.tgz
tar zxvf cfMesh-v1.0.tgz
rm cfMesh-v1.0.tgz
fi
2014-06-16 16:00:21 +00:00
# Change FOAM_LIBBIN to FOAM_USER_LIBBIN
find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_LIBBIN/FOAM_USER_LIBBIN/g
find cfMesh-v1.0/ -type f | grep "Make/files" | xargs sed -i "" -e s/FOAM_APPBIN/FOAM_USER_APPBIN/g
2014-06-16 16:00:21 +00:00
2014-10-14 21:18:12 +00:00
(
cd cfMesh-v1.0
./Allwmake
)
2014-06-16 16:00:21 +00:00
# Install the makeAxialMesh utilitiy
if [ ! -d "MakeAxialMesh" ]; then
svn export svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/utilities/mesh/manipulation/MakeAxialMesh MakeAxialMesh
fi
wmake MakeAxialMesh/makeAxialMesh
2014-06-16 16:00:21 +00:00
# ----------------------------------------------------------------- end-of-file