Peano
Loading...
Searching...
No Matches
Springs.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
6#include "tarch/la/Vector.h"
7
8namespace toolbox {
9 namespace particles {
10 namespace potentials {
39 );
40 } // namespace potentials
41 } // namespace particles
42} // namespace toolbox
tarch::la::Vector< Dimensions, double > springPotential(const tarch::la::Vector< Dimensions, double > &p1, const tarch::la::Vector< Dimensions, double > &p2, double h)
Assumes that there is no force in-between two particles p1 and p2 if they are h away from each other.
Simple vector class.
Definition Vector.h:159