MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / addParticle

Method addParticle

SRC/element/PFEMElement/ParticleGroup.cpp:372–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void ParticleGroup::addParticle(const VDouble &coord, const VDouble &vel, double p) {
373 Particle *particle = new Particle;
374 particles.push_back(particle);
375
376 particle->moveTo(coord, 0.0);
377 particle->setVelOnly(vel);
378 particle->setPressure(p);
379 VDouble accel = vel;
380 accel *= 0.0;
381 particle->setAccel(accel);
382
383 particle->setGroupTag(this->getTag());
384}
385
386void ParticleGroup::addParticle(const VDouble &coord,
387 const VDouble &vel,

Callers 3

lineMethod · 0.95
pointlistMethod · 0.95
triMethod · 0.95

Calls 7

push_backMethod · 0.80
moveToMethod · 0.80
setVelOnlyMethod · 0.80
setGroupTagMethod · 0.80
setPressureMethod · 0.45
setAccelMethod · 0.45
getTagMethod · 0.45

Tested by

no test coverage detected