Tong-RuiLiu / Shape-Matching-Element-Method

Shape Matching Virtual Element Method for direct simulation on CAD models!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shape Matching Element Method

vem_sim_2d is a minimal example that should only depend on gptoolbox... So see if that runs!

Project Page

External Dependencies

  1. GPToolbox
  2. OpenMP (OPTIONAL)

Included Submodules (Installed Automatically)

  1. Libigl https://github.com/libigl/libigl
  2. 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

MATLAB Setup

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

C++ MEX Compilation

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

About

Shape Matching Virtual Element Method for direct simulation on CAD models!


Languages

Language:C 46.1%Language:MATLAB 36.1%Language:C++ 8.4%Language:TeX 6.5%Language:CMake 2.9%Language:Shell 0.0%