2022-09-26 07:38:03 +00:00
|
|
|
/*------------------------------- 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-09 22:02:54 +00:00
|
|
|
#ifndef __includeMask_hpp__
|
|
|
|
#define __includeMask_hpp__
|
2022-09-26 07:38:03 +00:00
|
|
|
|
2022-12-09 22:02:54 +00:00
|
|
|
#include "virtualConstructor.hpp"
|
|
|
|
#include "readFromTimeFolder.hpp"
|
|
|
|
#include "dictionary.hpp"
|
2022-09-26 07:38:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace pFlow
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class includeMask
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
word fieldName_;
|
|
|
|
|
|
|
|
word fieldType_;
|
|
|
|
|
|
|
|
word operatorType_;
|
|
|
|
|
|
|
|
readFromTimeFolder& timeFolder_;
|
|
|
|
|
|
|
|
static
|
|
|
|
bool getFieldType(const dictionary& dict, readFromTimeFolder& timeFolder, word& fName, word& fType);
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2022-12-09 22:02:54 +00:00
|
|
|
TypeInfo("includeMask");
|
2022-09-26 07:38:03 +00:00
|
|
|
|
|
|
|
includeMask(const dictionary& dict, const word& opType, readFromTimeFolder& timeFolder);
|
|
|
|
|
|
|
|
virtual ~includeMask() = default;
|
|
|
|
|
|
|
|
create_vCtor(
|
|
|
|
includeMask,
|
|
|
|
dictionary,
|
|
|
|
(
|
|
|
|
const dictionary& dict,
|
|
|
|
const word& opType,
|
|
|
|
readFromTimeFolder& timeFolder
|
|
|
|
),
|
|
|
|
(dict, opType, timeFolder)
|
|
|
|
);
|
|
|
|
|
|
|
|
word fieldName()const
|
|
|
|
{
|
|
|
|
return fieldName_;
|
|
|
|
}
|
|
|
|
|
|
|
|
word fieldType()const
|
|
|
|
{
|
|
|
|
return fieldType_;
|
|
|
|
}
|
|
|
|
|
|
|
|
word operatorType()const
|
|
|
|
{
|
|
|
|
return operatorType_;
|
|
|
|
}
|
|
|
|
|
|
|
|
auto& timeFolder()
|
|
|
|
{
|
|
|
|
return timeFolder_;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool isIncluded(int32 n) const = 0;
|
|
|
|
|
2024-11-18 16:57:44 +00:00
|
|
|
virtual uint32 size()const = 0;
|
|
|
|
|
2022-09-26 07:38:03 +00:00
|
|
|
bool operator()(int32 n) const
|
|
|
|
{
|
|
|
|
return isIncluded(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
static
|
|
|
|
uniquePtr<includeMask> create(
|
|
|
|
const dictionary& dict,
|
|
|
|
const word& opType,
|
|
|
|
readFromTimeFolder& timeFolder);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // pFlow
|
|
|
|
|
2022-12-09 22:02:54 +00:00
|
|
|
#endif //__IncludeMask_hpp__
|
2022-09-26 07:38:03 +00:00
|
|
|
|
|
|
|
|