# PhasicFlow: src/MotionModel/stationaryWall/stationaryWall.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.

stationaryWall.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 __stationaryWall_hpp__
#define __stationaryWall_hpp__
#include "MotionModel.hpp"
#include "stationary.hpp"
#include "fileDictionary.hpp"
namespace pFlow
{
class stationaryWall
:
public fileDictionary,
public MotionModel<stationaryWall, stationary>
{
protected:
friend MotionModel<stationaryWall, stationary>;
bool impl_isMoving()const
{
return false;
}
bool impl_move(uint32, real, real)const
{
return true;
}
void impl_setTime(uint32 ,real ,real )const
{}
public:
TypeInfo("stationaryWall");
stationaryWall(const objectFile& objf, repository* owner);
stationaryWall(
const objectFile& objf,
const dictionary& dict,
repository* owner);
using fileDictionary::write;
bool write(iOstream& os, const IOPattern& iop)const override;
static
auto noneComponent()
{
return stationary();
}
};
} // pFlow
#endif // __stationaryWall_hpp__
pFlow::real
float real
Definition: builtinTypes.hpp:45
pFlow::uint32
unsigned int uint32
Definition: builtinTypes.hpp:56
pFlow::stationaryWall::stationaryWall
stationaryWall(const objectFile &objf, repository *owner)
Definition: stationaryWall.cpp:25
pFlow::stationaryWall::impl_isMoving
bool impl_isMoving() const
Definition: stationaryWall.hpp:62
pFlow::stationary
stationary model for a wall
Definition: stationary.hpp:40
pFlow
Definition: demGeometry.hpp:27
pFlow::stationaryWall::TypeInfo
TypeInfo("stationaryWall")
MotionModel.hpp
pFlow::stationaryWall::impl_move
bool impl_move(uint32, real, real) const
Definition: stationaryWall.hpp:67
pFlow::stationaryWall::noneComponent
static auto noneComponent()
Definition: stationaryWall.hpp:92
pFlow::dictionary::dict
virtual dictionary & dict()
ref to this dictionary, if it is a dictionary
Definition: dictionary.cpp:369
pFlow::IOPattern
Definition: IOPattern.hpp:32
pFlow::IOobject::owner
const repository * owner() const override
Definition: IOobject.hpp:76
pFlow::objectFile
Definition: objectFile.hpp:30
pFlow::stationaryWall::write
bool write(iOstream &os, const IOPattern &iop) const override
Definition: stationaryWall.cpp:57
pFlow::stationaryWall
stationary model for walls
Definition: stationaryWall.hpp:53
fileDictionary.hpp
pFlow::fileDictionary
Definition: fileDictionary.hpp:29
pFlow::stationaryWall::impl_setTime
void impl_setTime(uint32, real, real) const
Definition: stationaryWall.hpp:72
stationary.hpp
pFlow::MotionModel
Motion model abstract class (CRTP) for all the motion models.
Definition: MotionModel.hpp:39
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