Ejemplo n.º 1
0
 def test_dofset_inplace(self):
     dof1 = DofSet(Dx=True,Dy=True,Dz=True)
     dof2 = DofSet(Dx=True,Dy=True,Dz=True,Rx=True,Ry=True,Rz=True)
     dof1 &= dof2
     self.assertTrue(dof1.count() == 3)
     self.assertTrue(dof1.is3DSolid())
     self.assertTrue(not dof1.is3DShell())
     self.assertTrue(dof1.elementDimension() == 3)
     
     dof1 = DofSet(Dx=True,Dy=True,Dz=True)
     dof2 = DofSet(Dx=True,Dy=True,Dz=True,Rx=True,Ry=True,Rz=True)
     dof1 |= dof2
     self.assertTrue(dof1.count() == 6)
     self.assertTrue(not dof1.is3DSolid())
     self.assertTrue(dof1.is3DShell())
     self.assertTrue(dof1.elementDimension() == 3)
Ejemplo n.º 2
0
    def test_dofset_inplace(self):
        dof1 = DofSet(Dx=True, Dy=True, Dz=True)
        dof2 = DofSet(Dx=True, Dy=True, Dz=True, Rx=True, Ry=True, Rz=True)
        dof1 &= dof2
        self.assertTrue(dof1.count() == 3)
        self.assertTrue(dof1.is3DSolid())
        self.assertTrue(not dof1.is3DShell())
        self.assertTrue(dof1.elementDimension() == 3)

        dof1 = DofSet(Dx=True, Dy=True, Dz=True)
        dof2 = DofSet(Dx=True, Dy=True, Dz=True, Rx=True, Ry=True, Rz=True)
        dof1 |= dof2
        self.assertTrue(dof1.count() == 6)
        self.assertTrue(not dof1.is3DSolid())
        self.assertTrue(dof1.is3DShell())
        self.assertTrue(dof1.elementDimension() == 3)
Ejemplo n.º 3
0
 def test_dofset_3d(self):
     dof1 = DofSet(Dx=True,Dy=True,Dz=True)
     self.assertTrue(dof1.count() == 3)
     self.assertTrue(dof1.is3DSolid())
     self.assertTrue(not dof1.is3DShell())
     self.assertTrue(dof1.elementDimension() == 3)
     
     dof2 = DofSet(Dx=True,Dy=True,Dz=True,Rx=True,Ry=True,Rz=True)
     self.assertTrue(dof2.count() == 6)
     self.assertTrue(not dof2.is3DSolid())
     self.assertTrue(dof2.is3DShell())
     self.assertTrue(dof2.elementDimension() == 3)
     
     dofa = dof1 & dof2
     self.assertTrue(dofa.count() == 3)
     self.assertTrue(dofa.is3DSolid())
     self.assertTrue(not dofa.is3DShell())
     self.assertTrue(dofa.elementDimension() == 3)
     
     dofo = dof1 | dof2
     self.assertTrue(dofo.count() == 6)
     self.assertTrue(not dofo.is3DSolid())
     self.assertTrue(dofo.is3DShell())
     self.assertTrue(dofo.elementDimension() == 3)
Ejemplo n.º 4
0
    def test_dofset_3d(self):
        dof1 = DofSet(Dx=True, Dy=True, Dz=True)
        self.assertTrue(dof1.count() == 3)
        self.assertTrue(dof1.is3DSolid())
        self.assertTrue(not dof1.is3DShell())
        self.assertTrue(dof1.elementDimension() == 3)

        dof2 = DofSet(Dx=True, Dy=True, Dz=True, Rx=True, Ry=True, Rz=True)
        self.assertTrue(dof2.count() == 6)
        self.assertTrue(not dof2.is3DSolid())
        self.assertTrue(dof2.is3DShell())
        self.assertTrue(dof2.elementDimension() == 3)

        dofa = dof1 & dof2
        self.assertTrue(dofa.count() == 3)
        self.assertTrue(dofa.is3DSolid())
        self.assertTrue(not dofa.is3DShell())
        self.assertTrue(dofa.elementDimension() == 3)

        dofo = dof1 | dof2
        self.assertTrue(dofo.count() == 6)
        self.assertTrue(not dofo.is3DSolid())
        self.assertTrue(dofo.is3DShell())
        self.assertTrue(dofo.elementDimension() == 3)