GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Classes | Namespaces | Macros
ContactLaw.hpp File Reference
#include <iostream>
#include "GranOO3/DEM/DiscreteElement.hpp"
#include "GranOO3/Collision/Manager.hpp"
#include "GranOO3/Physic/CriticalTimeStep.hpp"

Go to the source code of this file.

Classes

class  GranOO3::DEM::ContactLaw< T >
 A class for managing contact with discrete elements (obsolete and not documented) More...
 

Namespaces

 GranOO3
 
 GranOO3::DEM
 This namespace group the entire DEM library.
 

Macros

#define APPLY_FORCE(F1, F2, energyLabel)
 
#define APPLY_TORQUE(T1, T2, energyLabel)
 

Macro Definition Documentation

◆ APPLY_FORCE

#define APPLY_FORCE (   F1,
  F2,
  energyLabel 
)
Value:
de1.force() += F1; \
de2.force() += F2; \
if (Physic::EnergyBalance::get().is_enable()) \
{ \
Physic::EnergyBalance& energy = Physic::EnergyBalance::get(); \
energy.add_force_on(de1, energyLabel, F1); \
energy.add_force_on(de2, energyLabel, F2); \
}

◆ APPLY_TORQUE

#define APPLY_TORQUE (   T1,
  T2,
  energyLabel 
)
Value:
de1.torque() += T1; \
de2.torque() += T2; \
if (Physic::EnergyBalance::get().is_enable()) \
{ \
Physic::EnergyBalance& energy = Physic::EnergyBalance::get(); \
energy.add_torque_on(de1, energyLabel, T1); \
energy.add_torque_on(de2, energyLabel, T2); \
}
const T1
Definition: Exprtk.hpp:16489
const T1 const T2
Definition: Exprtk.hpp:16511