2022-09-05 01:56:29 +04:30
|
|
|
/*------------------------------- 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.
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------*/
|
|
|
|
|
2022-12-10 01:32:54 +03:30
|
|
|
#ifndef __insertionRegion_hpp__
|
|
|
|
#define __insertionRegion_hpp__
|
2022-09-05 01:56:29 +04:30
|
|
|
|
2022-12-10 01:32:54 +03:30
|
|
|
#include "timeFlowControl.hpp"
|
|
|
|
#include "shapeMixture.hpp"
|
|
|
|
#include "peakableRegions.hpp"
|
|
|
|
#include "setFieldList.hpp"
|
2022-09-05 01:56:29 +04:30
|
|
|
|
|
|
|
namespace pFlow
|
|
|
|
{
|
|
|
|
|
|
|
|
class dictionary;
|
|
|
|
|
|
|
|
class insertionRegion
|
|
|
|
:
|
|
|
|
public timeFlowControl
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
|
|
|
|
// - name of the region
|
|
|
|
word name_;
|
|
|
|
|
|
|
|
// - type of insertion region
|
|
|
|
word type_;
|
|
|
|
|
|
|
|
// peakable region of points
|
|
|
|
uniquePtr<peakableRegion> pRegion_ = nullptr;
|
|
|
|
|
|
|
|
// mixture of shapes
|
|
|
|
uniquePtr<shapeMixture> mixture_ = nullptr;
|
|
|
|
|
|
|
|
// setFields for insertion region
|
|
|
|
uniquePtr<setFieldList> setFields_ = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
bool readInsertionRegion(const dictionary& dict);
|
|
|
|
|
|
|
|
bool writeInsertionRegion(dictionary& dict) const;
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2022-12-10 01:32:54 +03:30
|
|
|
TypeInfoNV("insertionRegion");
|
2022-09-05 01:56:29 +04:30
|
|
|
|
|
|
|
//// - Constructors
|
|
|
|
|
|
|
|
insertionRegion(const dictionary& dict);
|
|
|
|
|
|
|
|
insertionRegion(const insertionRegion& src);
|
|
|
|
|
|
|
|
insertionRegion(insertionRegion&&) = default;
|
|
|
|
|
|
|
|
insertionRegion& operator=(const insertionRegion&);
|
|
|
|
|
|
|
|
insertionRegion& operator=(insertionRegion&&) = default;
|
|
|
|
|
|
|
|
|
|
|
|
~insertionRegion() = default;
|
|
|
|
|
|
|
|
|
|
|
|
//// - Methods
|
|
|
|
const auto& setFields()const
|
|
|
|
{
|
|
|
|
return setFields_();
|
|
|
|
}
|
|
|
|
|
|
|
|
const auto& name()const
|
|
|
|
{
|
|
|
|
return name_;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//// - IO operation
|
|
|
|
|
|
|
|
bool read(const dictionary& dict)
|
|
|
|
{
|
|
|
|
if(!timeFlowControl::read(dict))return false;
|
|
|
|
|
|
|
|
return readInsertionRegion(dict);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool write(dictionary& dict)const
|
|
|
|
{
|
|
|
|
if(!timeFlowControl::write(dict)) return false;
|
|
|
|
|
|
|
|
return writeInsertionRegion(dict);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} //pFlow
|
|
|
|
|
2022-12-10 01:32:54 +03:30
|
|
|
#endif //__insertionRegion_hpp__
|