# PhasicFlow: src/phasicFlow/structuredData/domain/regularSimulationDomain.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.

regularSimulationDomain.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 __regularSimulationDomain_hpp__
#define __regularSimulationDomain_hpp__
#include "simulationDomain.hpp"
namespace pFlow
{
class regularSimulationDomain
:
public simulationDomain
{
private:
domain thisDomain_;
uint32 initialNumPoints_ = 0;
bool createBoundaryDicts() final;
bool setThisDomain() final;
public:
TypeInfo("simulationDomain<regular>");
explicit regularSimulationDomain(systemControl& control);
~regularSimulationDomain() final = default;
add_vCtor(simulationDomain, regularSimulationDomain, systemControl);
bool initialUpdateDomains(span<realx3> pointPos) final;
uint32 initialNumberInThis() const final;
uint32 numberToBeImported() const final;
uint32 numberToBeExported() const final;
bool domainActive() const final;
const domain& thisDomain() const final;
bool initialTransferBlockData(
span<char> src,
span<char> dst,
size_t sizeOfElement
) const final;
bool initialTransferBlockData(span<realx3> src, span<realx3> dst)
const final;
bool initialTransferBlockData(span<real> src, span<real> dst)
const final;
bool initialTransferBlockData(span<uint32> src, span<uint32> dst)
const final;
bool initialTransferBlockData(span<int32> src, span<int32> dst)
const final;
};
}
#endif //__regularSimulationDomain_hpp__
pFlow::span
Definition: span.hpp:31
pFlow::regularSimulationDomain::domainActive
bool domainActive() const final
Is this domain active? Active mean, there is particle in it and boundaries and other entities of simu...
Definition: regularSimulationDomain.cpp:112
pFlow::regularSimulationDomain::initialUpdateDomains
bool initialUpdateDomains(span< realx3 > pointPos) final
Definition: regularSimulationDomain.cpp:81
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::systemControl
Definition: systemControl.hpp:41
pFlow::regularSimulationDomain::thisDomain_
domain thisDomain_
Definition: regularSimulationDomain.hpp:35
pFlow::regularSimulationDomain::thisDomain
const domain & thisDomain() const final
return the simulation domain of this processor
Definition: regularSimulationDomain.cpp:118
pFlow::regularSimulationDomain::numberToBeExported
uint32 numberToBeExported() const final
Definition: regularSimulationDomain.cpp:106
pFlow::regularSimulationDomain::setThisDomain
bool setThisDomain() final
Definition: regularSimulationDomain.cpp:67
simulationDomain.hpp
pFlow::regularSimulationDomain
Definition: regularSimulationDomain.hpp:29
pFlow
Definition: demGeometry.hpp:27
pFlow::regularSimulationDomain::add_vCtor
add_vCtor(simulationDomain, regularSimulationDomain, systemControl)
pFlow::int32
int int32
Definition: builtinTypes.hpp:50
pFlow::regularSimulationDomain::initialTransferBlockData
bool initialTransferBlockData(span< char > src, span< char > dst, size_t sizeOfElement) const final
Definition: regularSimulationDomain.cpp:124
pFlow::regularSimulationDomain::createBoundaryDicts
bool createBoundaryDicts() final
Definition: regularSimulationDomain.cpp:25
pFlow::regularSimulationDomain::numberToBeImported
uint32 numberToBeImported() const final
Number of points to be imported after updating domains.
Definition: regularSimulationDomain.cpp:101
pFlow::regularSimulationDomain::TypeInfo
TypeInfo("simulationDomain<regular>")
pFlow::simulationDomain
Definition: simulationDomain.hpp:38
pFlow::domain
Definition: domain.hpp:31
pFlow::regularSimulationDomain::initialNumberInThis
uint32 initialNumberInThis() const final
Definition: regularSimulationDomain.cpp:89
pFlow::triple< real >
pFlow::regularSimulationDomain::initialNumPoints_
uint32 initialNumPoints_
Definition: regularSimulationDomain.hpp:37