# PhasicFlow: src/phasicFlow/containers/pointField/boundaryField/exitBoundaryField/exitBoundaryField.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.

exitBoundaryField.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 __exitBoundaryField_hpp__
#define __exitBoundaryField_hpp__
#include "boundaryField.hpp"
namespace pFlow
{
template< class T, class MemorySpace = void>
class exitBoundaryField
:
public boundaryField<T, MemorySpace>
{
public:
using ExitBoundaryFieldType = exitBoundaryField<T, MemorySpace>;
using BoundaryFieldType = boundaryField<T, MemorySpace>;
using InternalFieldType = typename BoundaryFieldType::InternalFieldType;
using memory_space = typename BoundaryFieldType::memory_space;
using execution_space = typename BoundaryFieldType::execution_space;
public:
TypeInfoTemplate211("boundaryField","exit", T, memory_space::name());
exitBoundaryField(
const boundaryBase& boundary,
const pointStructure& pStruct,
InternalFieldType& internal);
add_vCtor
(
BoundaryFieldType,
ExitBoundaryFieldType,
boundaryBase
);
bool hearChanges
(
real t,
real dt,
uint32 iter,
const message& msg,
const anyList& varList
) override
{
BoundaryFieldType::hearChanges(t,dt,iter, msg,varList);
if(msg.equivalentTo(message::BNDR_DELETE))
{
// do nothing;
}
return true;
}
};
}
#include "exitBoundaryField.cpp"
#endif
pFlow::boundaryField::execution_space
typename InternalFieldType::execution_space execution_space
Definition: boundaryField.hpp:54
pFlow::message::equivalentTo
bool equivalentTo(EVENT evnt) const
Definition: message.hpp:131
pFlow::boundaryField
Definition: boundaryField.hpp:42
pFlow::exitBoundaryField::hearChanges
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
Definition: exitBoundaryField.hpp:66
pFlow::message
Definition: message.hpp:33
pFlow::real
float real
Definition: builtinTypes.hpp:45
boundaryField.hpp
pFlow::boundaryField::InternalFieldType
internalField< T, MemorySpace > InternalFieldType
Definition: boundaryField.hpp:50
pFlow::exitBoundaryField::TypeInfoTemplate211
TypeInfoTemplate211("boundaryField","exit", T, memory_space::name())
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::exitBoundaryField
Definition: exitBoundaryField.hpp:29
pFlow::exitBoundaryField::execution_space
typename BoundaryFieldType::execution_space execution_space
Definition: exitBoundaryField.hpp:43
pFlow::generalBoundary::pStruct
const auto & pStruct() const
Definition: generalBoundary.hpp:138
pFlow
Definition: demGeometry.hpp:27
pFlow::boundaryField::memory_space
typename InternalFieldType::memory_space memory_space
Definition: boundaryField.hpp:52
exitBoundaryField.cpp
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::anyList
Definition: anyList.hpp:35
pFlow::boundaryBase
Definition: boundaryBase.hpp:42
pFlow::exitBoundaryField::exitBoundaryField
exitBoundaryField(const boundaryBase &boundary, const pointStructure &pStruct, InternalFieldType &internal)
Definition: exitBoundaryField.cpp:23
pFlow::boundaryField::hearChanges
bool hearChanges(real t, real dt, uint32 iter, const message &msg, const anyList &varList) override
Definition: boundaryField.hpp:104
pFlow::exitBoundaryField::memory_space
typename BoundaryFieldType::memory_space memory_space
Definition: exitBoundaryField.hpp:41
pFlow::generalBoundary::boundary
const auto & boundary() const
Definition: generalBoundary.hpp:108
pFlow::message::BNDR_DELETE
@ BNDR_DELETE
Definition: message.hpp:49
pFlow::exitBoundaryField::InternalFieldType
typename BoundaryFieldType::InternalFieldType InternalFieldType
Definition: exitBoundaryField.hpp:39
pFlow::exitBoundaryField::add_vCtor
add_vCtor(BoundaryFieldType, ExitBoundaryFieldType, boundaryBase)