# PhasicFlow: utilities/postprocessPhasicFlow/countField.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.

countField.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 __countField_hpp__
#define __countField_hpp__
#include "virtualConstructor.hpp"
#include "dictionary.hpp"
#include "readFromTimeFolder.hpp"
#include "includeMask.hpp"
namespace pFlow
{
class repository;
class countField
{
protected:
dictionary dict_;
mutable readFromTimeFolder timeFolder_;
uniquePtr<includeMask> includeMask_ = nullptr;
bool static getFieldType(
const dictionary& dict,
readFromTimeFolder& timeFolder,
word& fieldName,
word& fieldType);
public:
TypeInfo("countField");
countField(const dictionary& dict, repository& rep);
auto& dict()
{
return dict_;
}
const auto& dict()const
{
return dict_;
}
auto& timeFolderRepository()
{
return timeFolder_.db();
}
auto& timeFolder()
{
return timeFolder_;
}
word variableName()const
{
return dict_.name();
}
// requires a class to read pointField from timefolder
bool process(uint32& countedValue);
//virtual bool writeToFile(iOstream& is) const = 0;
/*static
uniquePtr<countField> create(
const dictionary& dict,
repository& rep);*/
};
}
#endif //__countField_hpp__
includeMask.hpp
pFlow::countField::timeFolder
auto & timeFolder()
Definition: countField.hpp:75
pFlow::countField::getFieldType
static bool getFieldType(const dictionary &dict, readFromTimeFolder &timeFolder, word &fieldName, word &fieldType)
Definition: countField.cpp:25
pFlow::readFromTimeFolder
Definition: readFromTimeFolder.hpp:31
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
readFromTimeFolder.hpp
pFlow::countField::variableName
word variableName() const
Definition: countField.hpp:80
pFlow::readFromTimeFolder::db
auto & db()
Definition: readFromTimeFolder.hpp:52
pFlow::countField::process
bool process(uint32 &countedValue)
Definition: countField.cpp:78
pFlow
Definition: demGeometry.hpp:27
pFlow::countField::dict
auto & dict()
Definition: countField.hpp:59
pFlow::countField::TypeInfo
TypeInfo("countField")
dictionary.hpp
pFlow::countField::countField
countField(const dictionary &dict, repository &rep)
Definition: countField.cpp:63
virtualConstructor.hpp
pFlow::countField
Definition: countField.hpp:36
pFlow::countField::dict_
dictionary dict_
Definition: countField.hpp:40
pFlow::iEntry::name
virtual word name() const
name/keyword of entry
Definition: iEntry.hpp:100
pFlow::countField::includeMask_
uniquePtr< includeMask > includeMask_
Definition: countField.hpp:44
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::repository
Definition: repository.hpp:34
pFlow::countField::timeFolder_
readFromTimeFolder timeFolder_
Definition: countField.hpp:42
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::countField::dict
const auto & dict() const
Definition: countField.hpp:64
pFlow::countField::timeFolderRepository
auto & timeFolderRepository()
Definition: countField.hpp:69
pFlow::timeFolder
Definition: timeFolder.hpp:32