https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Functions
WaterTightTest.C File Reference

Go to the source code of this file.

Functions

 TEST (WaterTightTest, TwoDGeoOpenAndClose)
 
 TEST (WaterTightTest, ThreeDGeoOpenAndClose)
 

Function Documentation

◆ TEST() [1/2]

TEST ( WaterTightTest  ,
ThreeDGeoOpenAndClose   
)

Definition at line 98 of file WaterTightTest.C.

99{
100 libMesh::Parallel::Communicator comm(MPI_COMM_SELF);
101 const std::vector<Point> points = {
102 Point(0.0, 0.0, 0.0), Point(1.0, 0.0, 0.0), Point(1.0, 1.0, 0.0), Point(0.0, 1.0, 0.0)};
103
104 EXPECT_FALSE(triSurfaceIsWatertight(comm, points, {{{0, 1, 2}}, {{0, 1, 3}}, {{1, 2, 3}}}));
105 EXPECT_TRUE(
106 triSurfaceIsWatertight(comm, points, {{{0, 1, 2}}, {{0, 1, 3}}, {{1, 2, 3}}, {{0, 2, 3}}}));
107}

◆ TEST() [2/2]

TEST ( WaterTightTest  ,
TwoDGeoOpenAndClose   
)

Definition at line 86 of file WaterTightTest.C.

87{
88 libMesh::Parallel::Communicator comm(MPI_COMM_SELF);
89 const std::vector<Point> points = {
90 Point(0.0, 0.0, 0.0), Point(1.0, 0.0, 0.0), Point(1.0, 1.0, 0.0), Point(0.0, 1.0, 0.0)};
91
92 EXPECT_FALSE(edgeLoopIsWatertight(comm, points, {{0, 1}, {1, 2}, {2, 3}}));
93 EXPECT_TRUE(edgeLoopIsWatertight(comm, points, {{0, 1}, {1, 2}, {2, 3}, {3, 0}}));
94}