Go to the documentation of this file.
21 #ifndef __shapeMixture_hpp__
22 #define __shapeMixture_hpp__
90 return makeUnique<shapeMixture>(*
this);
124 #endif //__shapeMixture_hpp__
wordVector names_
List of shape names.
auto totalInserted() const
Total number inserted particles.
~shapeMixture()=default
Destructor.
shapeMixture & operator=(const shapeMixture &)=default
Copy assignment.
auto size() const
Size of the vector.
Defines a mixture of particles for particle insertion.
bool write(dictionary &dict) const
uint32Vector number_
Number composition.
uint32Vector current_
Current number of inserted.
uniquePtr< shapeMixture > clone() const
Polymorphic copy.
T sum(const Vector< T, Allocator > &v)
void getNextShapeNameN(size_t n, wordVector &names)
The name of the n next shapes that should be inserted.
bool read(const dictionary &dict)
uint32Vector numberInserted_
Number of inserted particles of each shape.
TypeInfoNV("shapeMixture")
Type info.
word getNextShapeName()
The name of the next shape that should be inserted.
shapeMixture(const dictionary &dict, const wordList &validNames)
Construct from dictionary.
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
auto size() const
Size of mixture (names)