SPH
Classes | Functions
Tests Namespace Reference

Classes

struct  SingleDerivativeMaker
 

Functions

Storage getStorage (const Size particleCnt)
 
Storage getGassStorage (const Size particleCnt, BodySettings settings, const IDomain &domain)
 Returns a storage with ideal gas particles, having pressure, energy and sound speed. More...
 
Storage getGassStorage (const Size particleCnt, BodySettings settings=BodySettings::getDefaults(), const Float radius=1.f)
 Returns a storage with ideal gas particles, filling a spherical domain of given radius. More...
 
Storage getSolidStorage (const Size particleCnt, BodySettings settings, const IDomain &domain)
 Returns a storage with stress tensor. More...
 
Storage getSolidStorage (const Size particleCnt, BodySettings settings=BodySettings::getDefaults(), const Float radius=1._f)
 Returns a storage with stress tensor. More...
 
Size getClosestParticle (const Storage &storage, const Vector &p)
 Returns the index to the particle closest to given point. More...
 
template<typename TSolver , typename TLambda >
void computeField (Storage &storage, EquationHolder &&equations, TLambda &&lambda, const Size repeatCnt=1)
 
template<typename TDerivative , typename TSolver , typename TLambda >
void computeField (Storage &storage, TLambda &&lambda, const Size repeatCnt=1)
 Computes only a single derivative. More...
 

Function Documentation

◆ computeField() [1/2]

template<typename TSolver , typename TLambda >
void Tests::computeField ( Storage storage,
EquationHolder &&  equations,
TLambda &&  lambda,
const Size  repeatCnt = 1 
)

Computes velocity derivatives for given set of equations. Velocity field is defined by given lambda.

Definition at line 47 of file Setup.h.

◆ computeField() [2/2]

template<typename TDerivative , typename TSolver , typename TLambda >
void Tests::computeField ( Storage storage,
TLambda &&  lambda,
const Size  repeatCnt = 1 
)

Computes only a single derivative.

Definition at line 83 of file Setup.h.

◆ getClosestParticle()

Size Tests::getClosestParticle ( const Storage storage,
const Vector p 
)

Returns the index to the particle closest to given point.

Definition at line 94 of file Setup.cpp.

◆ getGassStorage() [1/2]

Storage Tests::getGassStorage ( const Size  particleCnt,
BodySettings  settings,
const IDomain domain 
)

Returns a storage with ideal gas particles, having pressure, energy and sound speed.

Definition at line 29 of file Setup.cpp.

◆ getGassStorage() [2/2]

Storage Tests::getGassStorage ( const Size  particleCnt,
BodySettings  settings = BodySettings::getDefaults(),
const Float  radius = 1.f 
)

Returns a storage with ideal gas particles, filling a spherical domain of given radius.

Definition at line 55 of file Setup.cpp.

◆ getSolidStorage() [1/2]

Storage Tests::getSolidStorage ( const Size  particleCnt,
BodySettings  settings,
const IDomain domain 
)

Returns a storage with stress tensor.

Definition at line 59 of file Setup.cpp.

◆ getSolidStorage() [2/2]

Storage Tests::getSolidStorage ( const Size  particleCnt,
BodySettings  settings = BodySettings::getDefaults(),
const Float  radius = 1._f 
)

Returns a storage with stress tensor.

Definition at line 90 of file Setup.cpp.

◆ getStorage()

NAMESPACE_SPH_BEGIN Storage Tests::getStorage ( const Size  particleCnt)

Creates a particle storage with positions, density and masses, filling sphere of radius 1. Particles have no material and the density is 1.

Definition at line 12 of file Setup.cpp.