File mechanics/src/collision/native/bodies/DiskDiskR.hpp#

Go to the source code of this file

class DiskDiskR : public CircularR, public std::enable_shared_from_this<DiskDiskR>
#include <DiskDiskR.hpp>

Two disks relation - Inherits from LagrangianScleronomousR.

Public Functions

DiskDiskR(double disk1, double disk2)

Constructor.

Parameters:
  • disk1 – radius

  • disk2 – radius

~DiskDiskR() noexcept = default#
virtual double distance(double, double, double, double, double, double)#
void computeh(const BlockVector &q, BlockVector &z, SiconosVector &y)

to compute the output y = h(q,z) of the Relation

Parameters:
  • q – coordinates of the dynamical systems involved in the relation

  • z – user defined parameters (optional)

  • y – the resulting vector

void computeJachq(const BlockVector &q, BlockVector &z)

to compute the jacobian of h(…).

Set attribute _jachq (access: jacqhq())

Parameters:
  • q – coordinates of the dynamical systems involved in the relation

  • z – user defined parameters (optional)

ACCEPT_VISITORS()#

Private Functions

ACCEPT_SERIALIZATION(DiskDiskR)#

Private Members

double r1pr2#