GitHunt
CA

Collaborative Coupling Applications

cocoa

CoCoA - Collaborative Coupling Applications

how to install

spack installation

Currently, ProXPDE and FEMuS are not yet available in mainstream spack, clone our fork

git clone https://github.com/capitalaslash/spack.git -b 0.22_femus

setup spack environment

  • copy spack-env/spack-template.yaml in spack/spack.yaml, edit packages and install them
cp spack-env/spack-template.yaml spack-env/spack.yaml
edit spack-env/spack.yaml
spack env activate spack-env
spack concretize -f
spack install

setup OpenFOAM (optional)

source <FOAM_DIR>/etc/bashrc

setup cocoa

  • copy run_cmake-template.bash in run_cmake.bash edit options and run it
cp run_cmake-template.bash run_cmake.bash
edit run_cmake.bash
bash ./run_cmake.bash
  • compile library and app
cd build
ninja

how to run

  • set up environment
spack env activate spack-env
  • copy/link configuration files in build directory
cd build
ln -s ../data/fd1d_heat.dat
ln -s ../data/fd1d_hc.dat
  • run app
cd build
./main
  • plot results of fd1d
./fd1dplot.py build/fd1d_heat.dat

Languages

C++87.2%Python9.1%CMake3.5%Shell0.2%

Contributors

GNU General Public License v3.0
Created August 30, 2024
Updated October 6, 2025
capitalaslash/cocoa | GitHunt