/*------------------------------- 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 __DEMSystem_hpp__ #define __DEMSystem_hpp__ #include #include "types.hpp" #include "span.hpp" #include "virtualConstructor.hpp" #include "uniquePtr.hpp" #include "systemControl.hpp" #include "readControlDict.hpp" namespace pFlow { class DEMSystem { protected: readControlDict ControlDict_; uniquePtr Control_ = nullptr; std::vector domains_; uniquePtr timers_; // methods auto& Control() { return Control_(); } public: TypeInfo("DEMSystem"); DEMSystem( word demSystemName, const std::vector& domains, int argc, char* argv[]); virtual ~DEMSystem(); DEMSystem(const DEMSystem&)=delete; DEMSystem& operator = (const DEMSystem&)=delete; create_vCtor( DEMSystem, word, ( word demSystemName, const std::vector& domains, int argc, char* argv[] ), ( demSystemName, domains, argc, argv )); realx3 g()const { return Control_->g(); } auto inline constexpr usingDoulle()const { return pFlow::usingDouble__; } Timers& timers() { return Control_->timers(); } virtual int32 numParInDomain(int32 di)const = 0; virtual std::vector numParInDomain()const = 0; virtual span parIndexInDomain(int32 di)const = 0; virtual bool changeDomainsSizeUpdateParticles(const std::vector& domains) = 0; virtual bool updateParticles() = 0; virtual real maxBounndingSphereSize()const = 0; virtual bool iterate(int32 n, real timeToWrite, word timeName) = 0; static uniquePtr create( word demSystemName, const std::vector& domains, int argc, char* argv[]); }; } // pFlow #endif // __DEMSystem_hpp__