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

subDomain.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 __subDomain_hpp__
#define __subDomain_hpp__
#include "domain.hpp"
namespace pFlow
{
class subDomain
{
protected:
const domain& globalDomain_;
const dictionary& boundaryDict_;
domain thisDomain_;
public:
// - type info
TypeInfo("subDomain");
subDomain(
const domain& gDomain,
const domain& thisD,
const dictionary& bDicts)
:
globalDomain_(gDomain),
thisDomain_(thisD),
boundaryDict_(bDicts)
{}
const auto& thisDomain()const
{
return thisDomain_;
}
const dictionary& leftDict()const
{
return boundaryDict_.subDict("left");
}
const dictionary& rightDict()const
{
return boundaryDict_.subDict("right");
}
const dictionary& bottomDict()const
{
return boundaryDict_.subDict("bottom");;
}
const dictionary& topDict()const
{
return boundaryDict_.subDict("top");;
}
const dictionary& rearDict()const
{
return boundaryDict_.subDict("rear");;
}
const dictionary& frontDict()const
{
return boundaryDict_.subDict("front");;
}
}; // subDomain
}
#endif //__subDomain_hpp__
pFlow::subDomain::thisDomain
const auto & thisDomain() const
Definition: subDomain.hpp:62
pFlow::subDomain::thisDomain_
domain thisDomain_
the actual limits of this processor domain
Definition: subDomain.hpp:42
pFlow::subDomain::leftDict
const dictionary & leftDict() const
Definition: subDomain.hpp:67
domain.hpp
pFlow::subDomain::topDict
const dictionary & topDict() const
Definition: subDomain.hpp:82
pFlow::subDomain::TypeInfo
TypeInfo("subDomain")
pFlow::subDomain::rightDict
const dictionary & rightDict() const
Definition: subDomain.hpp:72
pFlow
Definition: demGeometry.hpp:27
pFlow::subDomain::globalDomain_
const domain & globalDomain_
the actual limits of global domain
Definition: subDomain.hpp:35
pFlow::subDomain::boundaryDict_
const dictionary & boundaryDict_
dictionary of boundaries
Definition: subDomain.hpp:38
pFlow::dictionary::subDict
dictionary & subDict(const word &keyword)
ref to a subdictioanry fatalExit if not found
Definition: dictionary.cpp:560
pFlow::subDomain
Definition: subDomain.hpp:30
pFlow::subDomain::bottomDict
const dictionary & bottomDict() const
Definition: subDomain.hpp:77
pFlow::domain
Definition: domain.hpp:31
pFlow::subDomain::subDomain
subDomain(const domain &gDomain, const domain &thisD, const dictionary &bDicts)
Definition: subDomain.hpp:52
pFlow::subDomain::frontDict
const dictionary & frontDict() const
Definition: subDomain.hpp:92
pFlow::dictionary
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
Definition: dictionary.hpp:67
pFlow::subDomain::rearDict
const dictionary & rearDict() const
Definition: subDomain.hpp:87