Ideas on the back burner - wyldckat/wyldckat.github.io GitHub Wiki

Ideas on the back burner

This page is where I keep a record of ideas that have been partially tested but don't seem mature yet for production. Mostly they're related to OpenFOAM.

Building PV4FoamReader with the system ParaView

This still doesn't work, because the development packages are missing several vtk files for building ParaView and VTK files. At least on Ubuntu 14.04. Nonetheless, it might work on Fedora 20.

sudo apt-get install paraview paraview-python paraview-dev

echo export ParaView_VERSION=4.0.1 > ~/.OpenFOAM/2.3.0/config/paraview.sh
echo export ParaView_DIR=/usr >> ~/.OpenFOAM/2.3.0/config/paraview.sh
echo export ParaView_INCLUDE_DIR=/usr/include/paraview >> ~/.OpenFOAM/2.3.0/config/paraview.sh
echo export PV_PLUGIN_PATH=\$FOAM_LIBBIN/paraview-4.0.1 >> ~/.OpenFOAM/2.3.0/config/paraview.sh

Building with the system's Scotch, Metis and Boost+CGAL on Ubuntu

It works, but it still feels a bit clunky to explain...

apt-get install libscotch-5.1 libscotch-dev libptscotch-5.1 libptscotch-dev libmetis-dev libmetis5 libcgal-dev

ln -s /usr/lib/x86_64-linux-gnu/libmetis.so /usr/lib/libmetis.so


mkdir -p ~/.OpenFOAM/2.3.0/config

echo export SCOTCH_VERSION=scotch_5.1 > ~/.OpenFOAM/2.3.0/config/scotch.sh
echo export SCOTCH_ARCH_PATH=\$WM_PROJECT_DIR/scotch >> ~/.OpenFOAM/2.3.0/config/scotch.sh

echo export METIS_VERSION=metis-5.1.0 > ~/.OpenFOAM/2.3.0/config/metis.sh
echo export METIS_ARCH_PATH=/usr >> ~/.OpenFOAM/2.3.0/config/metis.sh

echo export BOOST_ARCH_PATH=/usr > ~/.OpenFOAM/2.3.0/config/CGAL.sh
echo export CGAL_ARCH_PATH=/usr >> ~/.OpenFOAM/2.3.0/config/CGAL.sh


mkdir -p scotch/include/openmpi-system
mkdir scotch/lib
cp /usr/include/scotch/* scotch/include/openmpi-system/
cp /usr/include/scotch/* scotch/include/
⚠️ **GitHub.com Fallback** ⚠️