MolSim
Loading...
Searching...
No Matches
Classes | Macros | Functions
Particle.h File Reference

Model of a single particle. More...

#include "utils/OMPWrapper.h"
#include <array>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  Particle
 Particle class modeling a particle's position, velocity, force, mass and type. More...
 

Macros

#define TYPE_DEFAULT   0
 
#define SIGMA_DEFAULT   1
 
#define EPSILON_DEFAULT   1
 
#define K_DEFAULT   0
 
#define R0_DEFAULT   0
 
#define FZUP_DEFAULT   0
 
#define MASS_ERROR   "The mass of a particle must be positive for the currently available simulations!"
 
#define DO_IF_NOT_WALL(_p, _expr)
 
#define SKIP_IF_WALL(_p)
 
#define CONTINUE_IF_INACTIVE(p)
 

Functions

std::ostream & operator<< (std::ostream &stream, const Particle &p)
 Overload of the << operator for output streams, used primarily with string streams or console output.
 

Detailed Description

Model of a single particle.

Author
eckhardw
Date
2010-02-23

Macro Definition Documentation

◆ CONTINUE_IF_INACTIVE

#define CONTINUE_IF_INACTIVE (   p)
Value:
if (!(p).isActive()) \
continue;

◆ DO_IF_NOT_WALL

#define DO_IF_NOT_WALL (   _p,
  _expr 
)
Value:
if ((_p).getType() != 1) { \
_expr; \
}

◆ EPSILON_DEFAULT

#define EPSILON_DEFAULT   1

◆ FZUP_DEFAULT

#define FZUP_DEFAULT   0

◆ K_DEFAULT

#define K_DEFAULT   0

◆ MASS_ERROR

#define MASS_ERROR   "The mass of a particle must be positive for the currently available simulations!"

◆ R0_DEFAULT

#define R0_DEFAULT   0

◆ SIGMA_DEFAULT

#define SIGMA_DEFAULT   1

◆ SKIP_IF_WALL

#define SKIP_IF_WALL (   _p)
Value:
if ((_p).getType() == 1) \
continue;

◆ TYPE_DEFAULT

#define TYPE_DEFAULT   0

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  stream,
const Particle p 
)

Overload of the << operator for output streams, used primarily with string streams or console output.

Parameters
streamThe output stream to pipe the Particle data into.
pA reference to the piped Particle.
Returns
The modified output stream, to allow chaining << operations.