/*------------------------------- 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 "box.hpp" #include "virtualConstructor.hpp" #include "uniquePtr.hpp" #include "systemControl.hpp" #include "readControlDict.hpp" namespace pFlow { class DEMSystem { protected: readControlDict ControlDict_; uniquePtr Control_ = nullptr; uniquePtr timers_; public: TypeInfo("DEMSystem"); DEMSystem( word demSystemName, const std::vector& domains, int argc, char* argv[]); virtual ~DEMSystem(); DEMSystem(const DEMSystem&)=delete; /// @brief no assignment 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(); } // methods auto& Control() { return Control_(); } const auto& Control()const { return Control_(); } auto inline constexpr usingDoulle()const { return pFlow::usingDouble__; } Timers& timers() { return Control_->timers(); } virtual bool updateParticleDistribution(real extentFraction, const std::vector domains) = 0; virtual int32 numParInDomain(int32 di)const = 0; virtual std::vector numParInDomains()const = 0; virtual span parIndexInDomain(int32 domIndx)const = 0; virtual span diameter() = 0; virtual span courseGrainFactor() = 0; virtual span acceleration()=0; virtual span velocity() = 0; virtual span position() = 0; virtual span rAcceleration()=0; virtual span rVelocity() = 0; virtual span rPosition() = 0; virtual span parFluidForce() = 0; virtual span parFluidTorque() = 0; virtual bool sendFluidForceToDEM() = 0; virtual bool sendFluidTorqueToDEM() = 0; virtual real maxBounndingSphereSize()const = 0; virtual bool beforeIteration() = 0; virtual bool iterate( real upToTime, real timeToWrite, word timeName) = 0; virtual bool iterate(real upToTime) = 0; static uniquePtr create( word demSystemName, const std::vector& domains, int argc, char* argv[]); }; } // pFlow #endif // __DEMSystem_hpp__