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

fileDictionary.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 __fileDictionary_hpp__
#define __fileDictionary_hpp__
#include "dictionary.hpp"
#include "IOobject.hpp"
namespace pFlow
{
class fileDictionary
:
public IOobject,
public dictionary
{
public:
TypeInfo("fileDictionary");
fileDictionary(const objectFile & of, repository* owner = nullptr);
fileDictionary(const word& keyword, const fileSystem& file);
fileDictionary(
const objectFile& objf,
const dictionary& dict,
repository* owner=nullptr);
using dictionary::read;
using dictionary::write;
bool read(iIstream& is, const IOPattern& iop) override;
bool write(iOstream& os, const IOPattern& iop) const override;
};
}
#endif //__fileDictionary_hpp__
pFlow::fileDictionary::fileDictionary
fileDictionary(const objectFile &of, repository *owner=nullptr)
construct an empty dictionary with keyword and make it global/fileDictionary
Definition: fileDictionary.cpp:5
pFlow::fileDictionary::TypeInfo
TypeInfo("fileDictionary")
IOobject.hpp
pFlow::dictionary::read
bool read(iIstream &is) override
read from stream
Definition: dictionary.cpp:772
pFlow::word
std::string word
Definition: builtinTypes.hpp:64
pFlow::iEntry::keyword
virtual const word & keyword() const
return keyword
Definition: iEntry.hpp:88
pFlow
Definition: demGeometry.hpp:27
pFlow::fileDictionary::read
bool read(iIstream &is, const IOPattern &iop) override
read from stream
Definition: fileDictionary.cpp:70
pFlow::IOobject
Definition: IOobject.hpp:35
pFlow::fileSystem
Manages file pathes, manupulate and combines them.
Definition: fileSystem.hpp:71
pFlow::iIstream
Interface class for any input stream
Definition: iIstream.hpp:37
pFlow::dictionary::dict
virtual dictionary & dict()
ref to this dictionary, if it is a dictionary
Definition: dictionary.cpp:369
dictionary.hpp
pFlow::IOPattern
Definition: IOPattern.hpp:32
pFlow::IOobject::owner
const repository * owner() const override
Definition: IOobject.hpp:76
pFlow::dictionary::write
bool write(iOstream &os) const override
write to stream
Definition: dictionary.cpp:793
pFlow::objectFile
Definition: objectFile.hpp:30
pFlow::fileDictionary
Definition: fileDictionary.hpp:29
pFlow::repository
Definition: repository.hpp:34
pFlow::fileDictionary::write
bool write(iOstream &os, const IOPattern &iop) const override
write to stream
Definition: fileDictionary.cpp:75
pFlow::iOstream
Interface class for any output stream.
Definition: iOstream.hpp:59
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