carlodefalco / quadgrid

simple cartesian quad grid for c++/octave
https://carlodefalco.github.io/quadgrid/
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

quadgrid - a simple c++ library for particles in a cartesian quad grid

This library provides simple (template) classes that for a useful starting point for the implementation of MPM/PIC methods

License

Most of the code is ditributed under a permissive BSD-2-Clause license. As an exception the GNU Octave interface, which links to GNU Octave libraries is under a GPL (v3 or later) copyleft license.

Contents

The repository consists of the following folders :

Building the examples

To build the examples move to the test directory and run

mpicxx -std=c++17 -I../include -o particle_sort_example particle_sort_example.cpp ../src/particles.cpp

Main methods in the particles_t class

$$ u_i = \sum_p N_i(x_p) U_p $$

$$ U_p = \sum_i N_i(x_p) u_i
$$