# PhasicFlow: utilities/Utilities/geometryPhasicFlow/Wall/Wall.hpp Source File

Wall.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 __Wall_hpp__
#define __Wall_hpp__
#include <vector>
#include "virtualConstructor.hpp"
#include "dictionary.hpp"
namespace pFlow
{
bool checkNormalVec(
const realx3 &p1,
const realx3 &p2,
const realx3 &p3,
realx3& norm );
class Wall
{
protected:
std::vector<realx3x3> triangles_;
word name_;
word materialName_;
word motionName_;
bool readCommon(const dictionary& ditc);
public:
// - type info
TypeInfo("Wall");
// - empty
Wall(){}
// - from dictionary
Wall(const dictionary& dict);
virtual ~Wall()=default;
create_vCtor
(
Wall,
dictionary,
(const dictionary& dict),
(dict)
);
// -
const auto& triangles()const
{
return triangles_;
}
word name()const
{
return name_;
}
word materialName()const
{
return materialName_;
}
word motionName()const
{
return motionName_;
}
static
bool checkTrianlge(const realx3& p1, const realx3& p2, const realx3& p3);
static
uniquePtr<Wall> create(const dictionary& dict);
};
}
#endif
pFlow::Wall::triangles_
std::vector< realx3x3 > triangles_
Definition: Wall.hpp:45
pFlow::Wall::materialName
word materialName() const
Definition: Wall.hpp:92
pFlow::Wall::materialName_
word materialName_
Definition: Wall.hpp:49
pFlow::Wall::readCommon
bool readCommon(const dictionary &ditc)
Definition: Wall.cpp:24
pFlow::Wall::name
word name() const
Definition: Wall.hpp:87
pFlow::Wall::triangles
const auto & triangles() const
Definition: Wall.hpp:82
pFlow::word
std::string word
Definition: builtinTypes.hpp:63
pFlow::checkNormalVec
bool checkNormalVec(const realx3 &p1, const realx3 &p2, const realx3 &p3, realx3 &norm)
Definition: Wall.cpp:88
pFlow::realx3
triple< real > realx3
Definition: types.hpp:48
pFlow
Definition: demComponent.hpp:28
pFlow::Wall::create
static uniquePtr< Wall > create(const dictionary &dict)
Definition: Wall.cpp:61
dictionary.hpp
pFlow::Wall::~Wall
virtual ~Wall()=default
virtualConstructor.hpp
pFlow::Wall::motionName_
word motionName_
Definition: Wall.hpp:51
pFlow::Wall::name_
word name_
Definition: Wall.hpp:47
pFlow::Wall::motionName
word motionName() const
Definition: Wall.hpp:97
pFlow::uniquePtr
Definition: uniquePtr.hpp:44
pFlow::Wall::checkTrianlge
static bool checkTrianlge(const realx3 &p1, const realx3 &p2, const realx3 &p3)
Definition: Wall.cpp:46
pFlow::Wall::TypeInfo
TypeInfo("Wall")
pFlow::triple< real >
pFlow::Wall::create_vCtor
create_vCtor(Wall, dictionary,(const dictionary &dict),(dict))
pFlow::Wall
Definition: Wall.hpp:41
pFlow::dictionary
Definition: dictionary.hpp:38
pFlow::Wall::Wall
Wall()
Definition: Wall.hpp:63