SPH
Public Member Functions | List of all members
ImpactCone Class Reference

#include <Functions.h>

Public Member Functions

 ImpactCone (const AffineMatrix &frame, const Float cutoffVelocity)
 
void getFragments (const Float m_tot, const Size N, Array< Vector > &r, Array< Vector > &v, Array< Float > &m)
 Generates fragments at the impact point. More...
 

Detailed Description

Definition at line 143 of file Functions.h.

Constructor & Destructor Documentation

◆ ImpactCone()

ImpactCone::ImpactCone ( const AffineMatrix frame,
const Float  cutoffVelocity 
)
inlineexplicit

Definition at line 151 of file Functions.h.

Member Function Documentation

◆ getFragments()

void ImpactCone::getFragments ( const Float  m_tot,
const Size  N,
Array< Vector > &  r,
Array< Vector > &  v,
Array< Float > &  m 
)
inline

Generates fragments at the impact point.

Particles are added into provided buffers, keeping the existing content untouched.

Parameters
m_totTotal mass of ejected fragments
NTotal number of fragments.
rOutput array of particle positions.
rOutput array of particle velocities.
rOutput array of particle masses.
Todo:
sample velocity from power law

Definition at line 163 of file Functions.h.


The documentation for this class was generated from the following file: