# PhasicFlow: src/phasicFlow/setFieldList/setFieldEntry.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.

setFieldEntry.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 __setFieldEntry_hpp__
#define __setFieldEntry_hpp__
#include "twoPartEntry.hpp"
#include "pointFields.hpp"
#include "repository.hpp"
#include "indexContainer.hpp"
namespace pFlow
{
class setFieldEntry
{
protected:
twoPartEntry entry_;
public:
setFieldEntry(const dataEntry& entry);
setFieldEntry(const setFieldEntry&) = default;
setFieldEntry(setFieldEntry&&) = default;
setFieldEntry& operator=(const setFieldEntry&) = default;
setFieldEntry& operator=(setFieldEntry&&) = default;
~setFieldEntry()=default;
word fieldName()const;
template <typename Type>
bool checkForType()const;
template <typename Type>
bool checkForTypeAndValue()const;
bool checkForTypeAndValueAll()const;
template <typename Type>
uniquePtr<pointField_H<Type>>
setPointFieldDefaultValueNew
(
pointStructure& pStruct,
bool verbose = false
);
uniquePtr<IOobject>
setPointFieldDefaultValueNewAll
(
pointStructure& pStruct,
bool verbose = false
);
template <typename Type>
bool setPointFieldSelected
(
repository& owner,
uint32IndexContainer& selected,
bool verbose = false
);
bool setPointFieldSelectedAll
(
repository& owner,
uint32IndexContainer& selected,
bool verbose = false
);
};
} // pFlow
#include "setFieldEntryTemplates.cpp"
#endif
twoPartEntry.hpp
pFlow::setFieldEntry::checkForTypeAndValueAll
bool checkForTypeAndValueAll() const
Definition: setFieldEntry.cpp:37
pFlow::setFieldEntry::setPointFieldSelectedAll
bool setPointFieldSelectedAll(repository &owner, uint32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntry.cpp:124
setFieldEntryTemplates.cpp
pFlow::setFieldEntry::operator=
setFieldEntry & operator=(const setFieldEntry &)=default
pFlow::twoPartEntry
Definition: twoPartEntry.hpp:36
pFlow::setFieldEntry::setPointFieldDefaultValueNew
uniquePtr< pointField_H< Type > > setPointFieldDefaultValueNew(pointStructure &pStruct, bool verbose=false)
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pointFields.hpp
pFlow::setFieldEntry::setPointFieldSelected
bool setPointFieldSelected(repository &owner, uint32IndexContainer &selected, bool verbose=false)
Definition: setFieldEntryTemplates.cpp:76
pFlow
Definition: demGeometry.hpp:27
pFlow::setFieldEntry::fieldName
word fieldName() const
Definition: setFieldEntry.cpp:32
repository.hpp
pFlow::pointStructure
Definition: pointStructure.hpp:34
pFlow::dataEntry
Data entry to be used in dictionries.
Definition: dataEntry.hpp:48
pFlow::setFieldEntry::~setFieldEntry
~setFieldEntry()=default
pFlow::setFieldEntry::checkForType
bool checkForType() const
Definition: setFieldEntryTemplates.cpp:23
pStruct
auto & pStruct
Definition: setPointStructure.hpp:24
pFlow::setFieldEntry::checkForTypeAndValue
bool checkForTypeAndValue() const
Definition: setFieldEntryTemplates.cpp:30
pFlow::setFieldEntry
Definition: setFieldEntry.hpp:33
pFlow::uniquePtr
Definition: uniquePtr.hpp:42
pFlow::setFieldEntry::setPointFieldDefaultValueNewAll
uniquePtr< IOobject > setPointFieldDefaultValueNewAll(pointStructure &pStruct, bool verbose=false)
Definition: setFieldEntry.cpp:64
pFlow::setFieldEntry::entry_
twoPartEntry entry_
Definition: setFieldEntry.hpp:37
pFlow::repository
Definition: repository.hpp:34
pFlow::setFieldEntry::setFieldEntry
setFieldEntry(const dataEntry &entry)
Definition: setFieldEntry.cpp:25
indexContainer.hpp
pFlow::indexContainer
It holds two vectors of indecis on Host and Device.
Definition: indexContainer.hpp:39