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

setFieldList.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 __setFieldList_hpp__
#define __setFieldList_hpp__
#include "List.hpp"
#include "setFieldEntry.hpp"
#include "dictionary.hpp"
namespace pFlow
{
class setFieldList
:
public List<setFieldEntry>
{
protected:
// setFields dictionary
dictionary dict_;
bool readSetFieldList(const dictionary& dict);
bool writeSetFieldList(dictionary& dict)const;
public:
setFieldList(const dictionary& dict);
setFieldList(const setFieldList&) = default;
setFieldList(setFieldList&&) = default;
setFieldList& operator=(const setFieldList&) = default;
setFieldList& operator=(setFieldList&&) = default;
auto clone()const
{
return makeUnique<setFieldList>(*this);
}
setFieldList* clonePtr()const
{
return new setFieldList(*this);
}
~setFieldList() = default;
bool read(const dictionary& dict);
bool write(dictionary& dict)const;
};
}
#endif //__setFieldList_hpp__
pFlow::List
Definition: List.hpp:39
pFlow::setFieldList::clonePtr
setFieldList * clonePtr() const
Definition: setFieldList.hpp:63
pFlow::setFieldList::writeSetFieldList
bool writeSetFieldList(dictionary &dict) const
Definition: setFieldList.cpp:38
pFlow::setFieldList::setFieldList
setFieldList(const dictionary &dict)
Definition: setFieldList.cpp:47
setFieldEntry.hpp
List.hpp
pFlow::setFieldList::write
bool write(dictionary &dict) const
Definition: setFieldList.cpp:70
pFlow::setFieldList::~setFieldList
~setFieldList()=default
pFlow::setFieldList::clone
auto clone() const
Definition: setFieldList.hpp:58
pFlow::setFieldList::read
bool read(const dictionary &dict)
Definition: setFieldList.cpp:61
pFlow
Definition: demGeometry.hpp:27
pFlow::setFieldList::readSetFieldList
bool readSetFieldList(const dictionary &dict)
Definition: setFieldList.cpp:24
pFlow::setFieldList::dict_
dictionary dict_
Definition: setFieldList.hpp:39
pFlow::setFieldList
Definition: setFieldList.hpp:32
dictionary.hpp
pFlow::setFieldList::operator=
setFieldList & operator=(const setFieldList &)=default
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