mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-12 16:26:23 +00:00
cuboidWall
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
@ -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,
|
||||
|
Reference in New Issue
Block a user