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

interaction.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 __interaction_hpp__
#define __interaction_hpp__
#include "demInteraction.hpp"
#include "eventObserver.hpp"
#include "interactionBase.hpp"
#include "contactSearch.hpp"
namespace pFlow
{
class interaction
:
public demInteraction,
public eventObserver,
public interactionBase
{
public:
using IdType = typename interactionBase::IdType;
using IndexType = typename interactionBase::IndexType;
using ExecutionSpace = typename interactionBase::ExecutionSpace;
protected:
dictionary& fileDict_;
uniquePtr<contactSearch> contactSearch_ = nullptr;
public:
TypeInfo("interaction");
interaction(
systemControl& control,
const particles& prtcl,
const geometry& geom );
virtual ~interaction() = default;
create_vCtor(
interaction,
systemControl,
(
systemControl& control,
const particles& prtcl,
const geometry& geom
),
(control, prtcl, geom)
);
auto& contactSearchPtr()
{
return contactSearch_;
}
auto& contactSearchRef()
{
return contactSearch_();
}
const auto& fileDict()const
{
return fileDict_;
}
static
uniquePtr<interaction> create(
systemControl& control,
const particles& prtcl,
const geometry& geom);
};
}
#endif //__interaction_hpp__
pFlow::interactionBase::IndexType
CELL_INDEX_TYPE IndexType
Definition: interactionBase.hpp:35
pFlow::interactionBase::IdType
ID_TYPE IdType
Definition: interactionBase.hpp:37
pFlow::demComponent::control
const auto & control() const
Definition: demComponent.hpp:57
pFlow::interaction::contactSearchPtr
auto & contactSearchPtr()
Definition: interaction.hpp:83
pFlow::interaction::create
static uniquePtr< interaction > create(systemControl &control, const particles &prtcl, const geometry &geom)
Definition: interaction.cpp:56
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::interaction::ExecutionSpace
typename interactionBase::ExecutionSpace ExecutionSpace
Definition: interaction.hpp:46
eventObserver.hpp
pFlow::interaction::TypeInfo
TypeInfo("interaction")
pFlow::eventObserver
Definition: eventObserver.hpp:33
pFlow::interactionBase::ExecutionSpace
DefaultExecutionSpace ExecutionSpace
Definition: interactionBase.hpp:39
interactionBase.hpp
pFlow
Definition: demComponent.hpp:28
pFlow::interaction::create_vCtor
create_vCtor(interaction, systemControl,(systemControl &control, const particles &prtcl, const geometry &geom),(control, prtcl, geom))
pFlow::demInteraction
Definition: demInteraction.hpp:32
pFlow::particles
Definition: particles.hpp:33
demInteraction.hpp
pFlow::interactionBase
Definition: interactionBase.hpp:31
pFlow::interaction::IndexType
typename interactionBase::IndexType IndexType
Definition: interaction.hpp:44
pFlow::interaction::contactSearchRef
auto & contactSearchRef()
Definition: interaction.hpp:88
pFlow::interaction::~interaction
virtual ~interaction()=default
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::geometry
Definition: geometry.hpp:37
pFlow::interaction::contactSearch_
uniquePtr< contactSearch > contactSearch_
contact search object for pp and pw interactions
Definition: interaction.hpp:54
contactSearch.hpp
pFlow::interaction::interaction
interaction(systemControl &control, const particles &prtcl, const geometry &geom)
Definition: interaction.cpp:25
pFlow::interaction::fileDict_
dictionary & fileDict_
interaction file dictionary
Definition: interaction.hpp:51
pFlow::interaction::IdType
typename interactionBase::IdType IdType
Definition: interaction.hpp:42
pFlow::interaction::fileDict
const auto & fileDict() const
Definition: interaction.hpp:93
pFlow::interaction
Definition: interaction.hpp:34
pFlow::dictionary
Definition: dictionary.hpp:38