cuboidWall

This commit is contained in:
hamidrezanorouzi
2022-11-25 11:13:29 +03:30
parent 02f7f9af20
commit a9097ad286
5 changed files with 232 additions and 0 deletions

View File

@ -58,6 +58,7 @@ bool pFlow::planeWall::readPlaneWall
}
pFlow::planeWall::planeWall()
{}
@ -73,3 +74,31 @@ pFlow::planeWall::planeWall
fatalExit;
}
}
pFlow::planeWall::planeWall(
const realx3& p1,
const realx3& p2,
const realx3& p3,
const realx3& p4)
{
if( Wall::checkTrianlge(p1,p2,p3) )
{
triangles_.push_back(realx3x3(p1,p2,p3));
}else
{
fatalErrorInFunction <<
"points p1, p2 and p3 do not form a plane wall "<<endl;
fatalExit;
}
if( Wall::checkTrianlge(p3,p4,p1) )
{
triangles_.push_back(realx3x3(p3,p4,p1));
}else
{
fatalErrorInFunction <<
"points p3, p4 and p1 do not form a plane wallendl";
fatalExit;
}
}

View File

@ -45,6 +45,12 @@ public:
planeWall(const dictionary& dict);
planeWall(
const realx3& p1,
const realx3& p2,
const realx3& p3,
const realx3& p4);
add_vCtor
(
Wall,