Go to the documentation of this file.
21 #ifndef __InsertionRegion_hpp__
22 #define __InsertionRegion_hpp__
41 template<
typename ShapeType>
68 const ShapeType& shapes
85 bool& insertionOccured
const ShapeType & shapes_
Ref to Shapes.
TypeInfoTemplateNV11("insertionRegion", ShapeType)
Type info.
static bool checkForContact(const realx3Vector &pos, const realVector &diams, const realx3 &p, const real &d)
This manages insertion of particles from a region based on the ShapeType.
This class defines all the necessary enteties for defining an insertion region.
const auto & name() const
Const ref to name of the region.
~InsertionRegion()=default
InsertionRegion(const word &name, const insertion &instn, const ShapeType &shapes)
Construct from dictionary.
bool insertParticles(uint32 iter, real t, real dt, wordVector &names, realx3Vector &pos, bool &insertionOccured)
Insert particles at current time t Check if currentTime is the right moment for particle insertion.
Base class for particle insertion.