mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
Merge remote-tracking branch 'origin/main' into coupling
This commit is contained in:
121
DEMSystems/sphereDEMSystem/sphereDEMSystem.hpp
Normal file
121
DEMSystems/sphereDEMSystem/sphereDEMSystem.hpp
Normal file
@ -0,0 +1,121 @@
|
||||
/*------------------------------- 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 __sphereDEMSystem_hpp__
|
||||
#define __sphereDEMSystem_hpp__
|
||||
|
||||
#include <array>
|
||||
|
||||
#include "systemControl.hpp"
|
||||
#include "property.hpp"
|
||||
#include "uniquePtr.hpp"
|
||||
#include "geometry.hpp"
|
||||
#include "sphereParticles.hpp"
|
||||
#include "interaction.hpp"
|
||||
#include "Insertions.hpp"
|
||||
#include "readControlDict.hpp"
|
||||
|
||||
|
||||
|
||||
|
||||
namespace pFlow
|
||||
{
|
||||
|
||||
class sphereDEMSystem
|
||||
{
|
||||
protected:
|
||||
|
||||
readControlDict ControlDict_;
|
||||
|
||||
uniquePtr<systemControl> Control_ = nullptr;
|
||||
|
||||
uniquePtr<property> property_ = nullptr;
|
||||
|
||||
uniquePtr<geometry> geometry_ = nullptr;
|
||||
|
||||
uniquePtr<sphereParticles> particles_ = nullptr;
|
||||
|
||||
uniquePtr<sphereInsertion> insertion_ = nullptr;
|
||||
|
||||
uniquePtr<interaction> interaction_ = nullptr;
|
||||
|
||||
|
||||
int32 numDomains_;
|
||||
|
||||
VectorDual<box> domains_;
|
||||
|
||||
Vector<int32Vector_H> parIndexInDomain_;
|
||||
|
||||
|
||||
auto& Control()
|
||||
{
|
||||
return Control_();
|
||||
}
|
||||
|
||||
auto& Property()
|
||||
{
|
||||
return property_();
|
||||
}
|
||||
|
||||
auto& Geometry()
|
||||
{
|
||||
return geometry_();
|
||||
}
|
||||
|
||||
auto& Particles()
|
||||
{
|
||||
return particles_();
|
||||
}
|
||||
|
||||
auto& Interaction()
|
||||
{
|
||||
return interaction_();
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
sphereDEMSystem(int argc, char* argv[]);
|
||||
|
||||
~sphereDEMSystem();
|
||||
|
||||
sphereDEMSystem(const sphereDEMSystem&)=delete;
|
||||
|
||||
sphereDEMSystem& operator = (const sphereDEMSystem&)=delete;
|
||||
|
||||
|
||||
std::array<double,3> g()const
|
||||
{
|
||||
return {
|
||||
Control_->g().x(),
|
||||
Control_->g().y(),
|
||||
Control_->g().z()};
|
||||
}
|
||||
|
||||
bool inline usingDoulle()const
|
||||
{
|
||||
return pFlow::usingDouble__;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
} // pFlow
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user