quadgrid 0.1
simple cartesian quad grid with particles for c++/octave
particle_remove_example.cpp File Reference
#include <algorithm>
#include <random>
#include <quadgrid_cpp.h>
#include <particles.h>
#include <map>
#include <fstream>
#include <iostream>

Typedefs

using idx_t = quadgrid_t< std::vector< double > >::idx_t
 

Functions

static bool inside (double x, double y)
 
int main (int argc, char *argv[])
 

Variables

static constexpr double radius = .1
 
static constexpr double xc = .5
 
static constexpr double yc = .5
 
static constexpr idx_t initial_num_particles = 1000000
 

Typedef Documentation

◆ idx_t

using idx_t = quadgrid_t<std::vector<double> >::idx_t

Function Documentation

◆ inside()

static bool inside ( double  x,
double  y 
)
static

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ initial_num_particles

constexpr idx_t initial_num_particles = 1000000
staticconstexpr

◆ radius

constexpr double radius = .1
staticconstexpr

◆ xc

constexpr double xc = .5
staticconstexpr

◆ yc

constexpr double yc = .5
staticconstexpr