vem_sim_2d is a minimal example that should only depend on gptoolbox... So see if that runs!
- GPToolbox
- OpenMP (OPTIONAL)
- Libigl https://github.com/libigl/libigl
- Eigen >= 3.2 (uses the libigl Eigen install)
To get started: Clone this repository and all its submodule dependencies using:
git clone --recursive https://github.com/tytrusty/virtual-element-method.git
To let MATLAB recognize the scripts, we need to add this folder and all the project's subfolders to the MATLAB path. Assuming your installation directory /usr/local/virtual-element-method/
, then you could issue the following command in the MATLAB command prompt:
addpath(genpath('/usr/local/virtual-element-method/'))
savepath
Costly functions are implemented in C++ and executed from Matlab via the C++ MEX API. Compiling these is required for the NURBs simulation example. The following steps may be used to compile the C++ files:
cd ${SOURCE_DIRECTORY}/matlab
mkdir build
cd build
cmake ..
make all