# PhasicFlow: src/Interaction/sphereInteraction/boundaries/periodicBoundarySphereInteraction/periodicBoundarySphereInteraction.hpp Source File
PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.

periodicBoundarySphereInteraction.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 __periodicBoundarySphereInteraction_hpp__
#define __periodicBoundarySphereInteraction_hpp__
#include "boundarySphereInteraction.hpp"
namespace pFlow
{
template<typename contactForceModel,typename geometryMotionModel>
class periodicBoundarySphereInteraction
:
public boundarySphereInteraction<contactForceModel, geometryMotionModel>
{
public:
using PBSInteractionType =
periodicBoundarySphereInteraction<contactForceModel,geometryMotionModel>;
using BSInteractionType =
boundarySphereInteraction<contactForceModel, geometryMotionModel>;
using GeometryMotionModel = typename BSInteractionType::GeometryMotionModel;
using ContactForceModel = typename BSInteractionType::ContactForceModel;
using MotionModel = typename geometryMotionModel::MotionModel;
using ModelStorage = typename ContactForceModel::contactForceStorage;
using IdType = typename BSInteractionType::IdType;
using IndexType = typename BSInteractionType::IndexType;
using ContactListType = typename BSInteractionType::ContactListType;
private:
realx3 transferVec_;
bool masterInteraction_;
public:
TypeInfoTemplate22("boundarySphereInteraction", "periodic",ContactForceModel, MotionModel);
periodicBoundarySphereInteraction(
const boundaryBase& boundary,
const sphereParticles& sphPrtcls,
const GeometryMotionModel& geomMotion
);
add_vCtor
(
BSInteractionType,
PBSInteractionType,
boundaryBase
);
~periodicBoundarySphereInteraction()override = default;
bool sphereSphereInteraction(
real dt,
const ContactForceModel& cfModel,
uint32 step)override;
};
}
#include "periodicBoundarySphereInteraction.cpp"
#endif //__periodicBoundarySphereInteraction_hpp__
pFlow::periodicBoundarySphereInteraction
Definition: periodicBoundarySphereInteraction.hpp:30
pFlow::periodicBoundarySphereInteraction::sphereSphereInteraction
bool sphereSphereInteraction(real dt, const ContactForceModel &cfModel, uint32 step) override
Definition: periodicBoundarySphereInteraction.cpp:46
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::boundarySphereInteraction::ContactForceModel
contactForceModel ContactForceModel
Definition: boundarySphereInteraction.hpp:43
pFlow::periodicBoundarySphereInteraction::masterInteraction_
bool masterInteraction_
Definition: periodicBoundarySphereInteraction.hpp:60
pFlow::boundarySphereInteraction::IdType
uint32 IdType
Definition: boundarySphereInteraction.hpp:49
boundarySphereInteraction.hpp
pFlow::periodicBoundarySphereInteraction::TypeInfoTemplate22
TypeInfoTemplate22("boundarySphereInteraction", "periodic", ContactForceModel, MotionModel)
pFlow::boundarySphereInteraction::IndexType
uint32 IndexType
Definition: boundarySphereInteraction.hpp:51
pFlow::periodicBoundarySphereInteraction::periodicBoundarySphereInteraction
periodicBoundarySphereInteraction(const boundaryBase &boundary, const sphereParticles &sphPrtcls, const GeometryMotionModel &geomMotion)
Definition: periodicBoundarySphereInteraction.cpp:24
pFlow::boundarySphereInteraction
Definition: boundarySphereInteraction.hpp:32
periodicBoundarySphereInteraction.cpp
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow
Definition: demGeometry.hpp:27
pFlow::sphereParticles
Class for managing spherical particles.
Definition: sphereParticles.hpp:42
pFlow::periodicBoundarySphereInteraction::transferVec_
realx3 transferVec_
Definition: periodicBoundarySphereInteraction.hpp:58
pFlow::boundarySphereInteraction::GeometryMotionModel
geometryMotionModel GeometryMotionModel
Definition: boundarySphereInteraction.hpp:41
pFlow::periodicBoundarySphereInteraction::add_vCtor
add_vCtor(BSInteractionType, PBSInteractionType, boundaryBase)
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::periodicBoundarySphereInteraction::~periodicBoundarySphereInteraction
~periodicBoundarySphereInteraction() override=default
pFlow::sortedContactList
Definition: sortedContactList.hpp:30
pFlow::generalBoundary::boundary
const auto & boundary() const
Definition: generalBoundary.hpp:108
pFlow::boundarySphereInteraction::MotionModel
typename geometryMotionModel::MotionModel MotionModel
Definition: boundarySphereInteraction.hpp:45
pFlow::triple< real >
pFlow::boundarySphereInteraction::ModelStorage
typename ContactForceModel::contactForceStorage ModelStorage
Definition: boundarySphereInteraction.hpp:47
pFlow::boundarySphereInteraction::ContactListType
sortedContactList< ModelStorage, DefaultExecutionSpace, IdType > ContactListType
Definition: boundarySphereInteraction.hpp:54