# PhasicFlow: src/Particles/Insertion/InsertionRegion/InsertionRegion.hpp Source File

InsertionRegion.hpp
Go to the documentation of this file.
/*------------------------------- phasicFlow ---------------------------------
O C enter of
O O E ngineering and
O O M ultiscale modeling of
OOOOOOO F luid flow
------------------------------------------------------------------------------
Copyright (C): www.cemf.ir
email: hamid.r.norouzi AT gmail.com
------------------------------------------------------------------------------
Licence:
This file is part of phasicFlow code. It is a free software for simulating
granular and multiphase flows. You can redistribute it and/or modify it under
the terms of GNU General Public License v3 or any other later versions.
phasicFlow is distributed to help others in their research in the field of
granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-----------------------------------------------------------------------------*/
#ifndef __InsertionRegion_hpp__
#define __InsertionRegion_hpp__
#include "insertionRegion.hpp"
#include "dictionary.hpp"
namespace pFlow
{
template<typename ShapeType>
class InsertionRegion
:
public insertionRegion
{
protected:
// - type of particle shapes
const ShapeType& shapes_;
static bool checkForContact(
const realx3Vector& pos,
const realVector& diams,
const realx3& p,
const real& d);
public:
// - type info
TypeInfoTemplateNV("insertionRegion", ShapeType);
InsertionRegion(const dictionary& dict, const ShapeType& shapes);
InsertionRegion(const InsertionRegion<ShapeType>& ) = default;
InsertionRegion(InsertionRegion<ShapeType>&&) = default;
InsertionRegion<ShapeType>& operator=(const InsertionRegion<ShapeType>& ) = default;
InsertionRegion<ShapeType>& operator=(InsertionRegion<ShapeType>&&) = default;
auto clone()const
{
return makeUnique<InsertionRegion<ShapeType>>(*this);
}
auto clonePtr()const
{
return new InsertionRegion<ShapeType>(*this);
}
bool insertParticles
(
real currentTime,
real dt,
wordVector& names,
realx3Vector& pos,
bool& insertionOccured
);
//bool read(const dictionary& dict);
//bool write(dictionary& dict)const;
};
} // pFlow
#include "InsertionRegion.cpp"
#endif
pFlow::InsertionRegion::operator=
InsertionRegion< ShapeType > & operator=(const InsertionRegion< ShapeType > &)=default
pFlow::InsertionRegion::shapes_
const ShapeType & shapes_
Definition: InsertionRegion.hpp:38
pFlow::real
float real
Definition: builtinTypes.hpp:46
pFlow::InsertionRegion::insertParticles
bool insertParticles(real currentTime, real dt, wordVector &names, realx3Vector &pos, bool &insertionOccured)
Definition: InsertionRegion.cpp:55
pFlow::InsertionRegion::checkForContact
static bool checkForContact(const realx3Vector &pos, const realVector &diams, const realx3 &p, const real &d)
Definition: InsertionRegion.cpp:23
pFlow::InsertionRegion
Definition: InsertionRegion.hpp:32
pFlow::insertionRegion
Definition: insertionRegion.hpp:34
pFlow
Definition: demComponent.hpp:28
pFlow::InsertionRegion::clone
auto clone() const
Definition: InsertionRegion.hpp:62
dictionary.hpp
insertionRegion.hpp
pFlow::InsertionRegion::clonePtr
auto clonePtr() const
Definition: InsertionRegion.hpp:67
InsertionRegion.cpp
pFlow::InsertionRegion::InsertionRegion
InsertionRegion(const dictionary &dict, const ShapeType &shapes)
Definition: InsertionRegion.cpp:41
pFlow::triple< real >
pFlow::InsertionRegion::TypeInfoTemplateNV
TypeInfoTemplateNV("insertionRegion", ShapeType)
pFlow::Vector< realx3 >
pFlow::dictionary
Definition: dictionary.hpp:38