api/aspherix_particle_interaction.h

This is the header file used to describe properties that are related to two particles in the vicinity of each other. The member functions are:


ParticleInteraction

Constructor

getNormal

Get the contact normal from particle i to particle j

getDelta

Get the overlap between two particles.

getDistance

Get the distance between the particles centers.

getMeff

Get the effective mass of the two particles.

getNormalVelocity

Get the velocity in contact normal direction.

getTangentialVelocity

Get the velocity in tangential direction.

getRelativeVelocity

Get the relative velocity (v_i - v_j)

getRelativeAngularVelocity

Get the relative angular velocity (\omega_i - \omega_j)

setForce

Set the force acting on these two particles (will be summed for different contacts) and the second particle will be assigned the force with opposite sign.

setTorqueI

Set the torque acting on particle i (the first particle).

setTorqueJ

Set the torque acting on particle j (the second particle).

getForce

Get the force acting on particle i due to the contact with particle j if previous contact models were used.

getTorqueI

Get the torque acting on particle i due to the contact with particle j if previous contact models were used.

getTorqueJ

Get the torque acting on particle j due to the contact with particle i if previous contact models were used.

isWall

Determine whether the contact is between a particle and a wall. In this case the particle is always i and j is the wall.

setHistoryValue

Set a previously registered history value.

getHistoryValue

Gets a previously registered history value.

setHistoryVector

Set a previously registered history vector.

getHistoryVector

Get a previously registered history vector.

getPairProperty

Get a material interaction property value according to the materials of the two particles.