PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
function.h File Reference
#include "point.h"
#include <vector>
Include dependency graph for function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  util
 Collection of methods useful in simulation.
 

Macros

#define COMPARE_EPS   1e-5
 

Functions

bool util::isGreater (const double &a, const double &b)
 Returns true if a > b.
 
bool util::isLess (const double &a, const double &b)
 Returns true if a < b.
 
double util::hatFunction (const double &x, const double &x_min, const double &x_max)
 Computes hat function at given point.
 
double util::hatFunctionQuick (const double &x, const double &x_min, const double &x_max)
 Computes hat function at given point.
 
double util::linearStepFunc (const double &x, const double &x1, const double &x2)
 Compute linear step function.
 
double util::gaussian (const double &r, const double &a, const double &beta)
 Compute gaussian function in 1-d.
 
double util::gaussian2d (const util::Point &x, const size_t &dof, const std::vector< double > &params)
 Compute gaussian function in 2-d.
 
double util::doubleGaussian2d (const util::Point &x, const size_t &dof, const std::vector< double > &params)
 Compute sum of two gaussian function in 2-d.
 
double util::equivalentMass (const double &m1, const double &m2)
 Compute harmonic mean of m1 and m2.
 

Macro Definition Documentation

◆ COMPARE_EPS

#define COMPARE_EPS   1e-5

Definition at line 18 of file function.h.