PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
modelData.cpp
Go to the documentation of this file.
1/*
2 * -------------------------------------------
3 * Copyright (c) 2021 - 2024 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#include "modelData.h"
13
15 return d_particlesListTypeAll[d_ptId[i]]->getDensity();
16};
18 return d_particlesListTypeAll[d_ptId[i]]->getHorizon();
19};
double getHorizon(size_t i)
Get horizon of particle.
Definition modelData.cpp:17
std::vector< particle::BaseParticle * > d_particlesListTypeAll
List of particles + walls.
Definition modelData.h:592
std::vector< size_t > d_ptId
Global node to particle id (walls are assigned id after last particle id)
Definition modelData.h:652
double getDensity(size_t i)
Get density of particle.
Definition modelData.cpp:14