# PhasicFlow: src/phasicFlow/structuredData/peakableRegion/sphereRegion/sphereRegion.hpp Source File

sphereRegion.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 __sphereRegion_hpp__
#define __sphereRegion_hpp__
#include "types.hpp"
#include "sphere.hpp"
#include "uniformRandomReal.hpp"
namespace pFlow
{
class dictionary;
class sphereRegion
{
protected:
sphere sphere_;
mutable uniformRandomReal random_;
public:
// - type info
TypeInfoNV("sphereRegion");
sphereRegion(const dictionary& dict);
~sphereRegion() = default;
bool isInside(const realx3& p) const;
realx3 peek()const;
bool read(const dictionary& dict);
bool write(dictionary& dict)const;
};
}
#endif
pFlow::sphereRegion::TypeInfoNV
TypeInfoNV("sphereRegion")
types.hpp
pFlow::sphereRegion::sphere_
sphere sphere_
Definition: sphereRegion.hpp:37
pFlow::sphereRegion::isInside
bool isInside(const realx3 &p) const
Definition: sphereRegion.cpp:36
pFlow
Definition: demComponent.hpp:28
pFlow::uniformRandomReal
Definition: uniformRandomReal.hpp:32
pFlow::sphereRegion::write
bool write(dictionary &dict) const
Definition: sphereRegion.cpp:72
uniformRandomReal.hpp
pFlow::sphereRegion::random_
uniformRandomReal random_
Definition: sphereRegion.hpp:39
sphere.hpp
pFlow::sphereRegion::~sphereRegion
~sphereRegion()=default
pFlow::sphereRegion::peek
realx3 peek() const
Definition: sphereRegion.cpp:43
pFlow::sphere
Definition: sphere.hpp:32
pFlow::triple< real >
pFlow::sphereRegion
Definition: sphereRegion.hpp:33
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::sphereRegion::read
bool read(const dictionary &dict)
Definition: sphereRegion.cpp:62
pFlow::sphereRegion::sphereRegion
sphereRegion(const dictionary &dict)
Definition: sphereRegion.cpp:25