# PhasicFlow: src/Interaction/interaction/interactionBase.hpp Source File

interactionBase.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 __interactionBase_hpp__
#define __interactionBase_hpp__
#include "interactionTypes.hpp"
#include "particles.hpp"
#include "geometry.hpp"
namespace pFlow
{
class interactionBase
{
public:
using IndexType = CELL_INDEX_TYPE;
using IdType = ID_TYPE;
using ExecutionSpace = DefaultExecutionSpace;
protected:
const particles& particles_;
const geometry& geometry_;
public:
interactionBase(
const particles& prtcl,
const geometry& geom)
:
particles_(prtcl),
geometry_(geom)
{}
inline
const auto& pStruct()const
{
return particles_.pStruct();
}
inline
const auto& surface()const
{
return geometry_.surface();
}
inline
const auto& Particles()const
{
return particles_;
}
inline auto& Geometry()const
{
return geometry_;
}
};
}
#endif //__interactionBase_hpp__
pFlow::interactionBase::pStruct
const auto & pStruct() const
Definition: interactionBase.hpp:58
pFlow::geometry::surface
auto & surface()
Definition: geometry.hpp:160
pFlow::interactionBase::IndexType
CELL_INDEX_TYPE IndexType
Definition: interactionBase.hpp:35
pFlow::interactionBase::particles_
const particles & particles_
Definition: interactionBase.hpp:43
pFlow::interactionBase::interactionBase
interactionBase(const particles &prtcl, const geometry &geom)
Definition: interactionBase.hpp:49
pFlow::interactionBase::IdType
ID_TYPE IdType
Definition: interactionBase.hpp:37
pFlow::interactionBase::Particles
const auto & Particles() const
Definition: interactionBase.hpp:70
pFlow::ID_TYPE
int32 ID_TYPE
Definition: interactionTypes.hpp:36
pFlow::interactionBase::Geometry
auto & Geometry() const
Definition: interactionBase.hpp:75
pFlow::CELL_INDEX_TYPE
int32 CELL_INDEX_TYPE
Definition: interactionTypes.hpp:34
particles.hpp
pFlow::DefaultExecutionSpace
Kokkos::DefaultExecutionSpace DefaultExecutionSpace
Definition: KokkosTypes.hpp:47
pFlow::interactionBase::surface
const auto & surface() const
Definition: interactionBase.hpp:64
pFlow::interactionBase::geometry_
const geometry & geometry_
Definition: interactionBase.hpp:45
pFlow::interactionBase::ExecutionSpace
DefaultExecutionSpace ExecutionSpace
Definition: interactionBase.hpp:39
pFlow
Definition: demComponent.hpp:28
pFlow::particles
Definition: particles.hpp:33
pFlow::particles::pStruct
const auto & pStruct() const
Definition: particles.hpp:118
interactionTypes.hpp
geometry.hpp
pFlow::interactionBase
Definition: interactionBase.hpp:31
pFlow::geometry
Definition: geometry.hpp:37