Files
phasicFlow/src/MotionModel/rotatingAxisMotion/rotatingAxisMotion.hpp

90 lines
2.2 KiB
C++
Raw Normal View History

2022-09-05 01:56:29 +04:30
/*------------------------------- 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.
-----------------------------------------------------------------------------*/
2022-12-10 01:32:54 +03:30
#ifndef __rotatingAxisMotion_hpp__
#define __rotatingAxisMotion_hpp__
2022-09-05 01:56:29 +04:30
#include "MotionModel.hpp"
2022-12-10 01:32:54 +03:30
#include "rotatingAxis.hpp"
#include "fileDictionary.hpp"
2022-09-05 01:56:29 +04:30
namespace pFlow
{
2023-04-02 09:17:16 -07:00
/**
* Rotating axis motion model for walls
*
* This class is used for simulaiton that at least one wall components
* is moving according to rotatingAxis motion mode. One or more than one
* motion components can be defined in rotatingAxisMotionInfo dictionary
*
\verbatim
// In geometryDict file, this will defines rotating walls during simulation
...
motionModel rotatingAxis;
2023-04-02 09:17:16 -07:00
rotatingAxisInfo
2023-04-02 09:17:16 -07:00
{
rotationAxis1
{
// the definition based on class rotatingAxis
}
rotatoinAxis2
{
// the definition based on calss rotatingAxis
}
}
...
\endverbatim
*
*/
2022-09-05 01:56:29 +04:30
class rotatingAxisMotion
:
public fileDictionary,
public MotionModel<rotatingAxisMotion, rotatingAxis>
2022-09-05 01:56:29 +04:30
{
protected:
bool impl_isMoving()const
{
return true;
}
2022-09-05 01:56:29 +04:30
public:
2022-09-05 01:56:29 +04:30
TypeInfo("rotatingAxisMotion");
2022-09-05 01:56:29 +04:30
rotatingAxisMotion(const objectFile& objf, repository* owner);
2022-09-05 01:56:29 +04:30
bool write(iOstream& os, const IOPattern& iop)const override;
2022-09-05 01:56:29 +04:30
static
auto noneComponent()
{
return rotatingAxis({0,0,0}, {1,0,0}, 0.0);
}
2022-09-05 01:56:29 +04:30
};
} // pFlow
#endif // __rotatingAxisMotion_hpp__