Exemplo n.º 1
0
def test_rectangle_on_rectangle_without_merge(mapdl):
    subs = geo2d.Rectangle(mapdl, subs_width, subs_height, rotation_angle)
    subs.create()

    point = geo2d.Point2D(subs.points[1].x, subs.points[1].y)
    film = geo2d.Rectangle(mapdl, subs_width, subs_height, rotation_angle,
                           point)
    film.create()
    assert True
Exemplo n.º 2
0
 def test_set_element_type(self, mapdl):
     geometry = geo2d.Rectangle(mapdl, 2, 2)
     geometry.create()
     geometry.set_element_type(mapdl.et("", "PLANE183"))
     geometry.mesh_custom(2, 2, 2,
                          2)  # meshing causes exception, if no et set
     assert True
Exemplo n.º 3
0
def test_film_with_roi_merged_to_rectangle(mapdl):
    subs = geo2d.Rectangle(mapdl, subs_width, subs_height)
    subs.set_rotation(rotation_angle)
    subs.create()

    point = geo2d.Point2D(subs.points[1].x, subs.points[1].y)
    film = geo2d.FilmWithROI(mapdl, film_width, film_height, roi_width,
                             roi_height, rotation_angle, point)
    film.create_merged_to(subs)
    assert True
Exemplo n.º 4
0
 def test_mesh_custom(self, mapdl):
     rectangle = geo2d.Rectangle(mapdl, 2, 2)
     rectangle.create()
     mapdl.et("", "PLANE183")
     rectangle.mesh_custom(2, 2, 2, 2)
     assert True