diff --git a/src/cubitpy/cubitpy_types.py b/src/cubitpy/cubitpy_types.py index adc5b07..f70691a 100644 --- a/src/cubitpy/cubitpy_types.py +++ b/src/cubitpy/cubitpy_types.py @@ -22,7 +22,6 @@ """This module contains ENums for types used in cubitpy as well as functions to convert them to strings for cubit or 4C commands or the wrapper.""" -import warnings from enum import Enum, auto @@ -286,10 +285,6 @@ class BoundaryConditionType(Enum): beam_to_solid_volume_meshtying = auto() beam_to_solid_surface_meshtying = auto() beam_to_solid_surface_contact = auto() - # The following value "solid_to_solid_surface_contact" is deprecated and - # only kept for legacy reasons. - # Please use "solid_to_solid_contact" instead. - solid_to_solid_surface_contact = auto() solid_to_solid_contact = auto() periodic_rve_surface = auto() periodic_rve_edge = auto() @@ -330,17 +325,6 @@ def get_dat_bc_section_header(self, geometry_type): return "BEAM INTERACTION/BEAM TO SOLID SURFACE CONTACT SURFACE" elif self == self.point_coupling and (geometry_type == GeometryType.vertex): return "DESIGN POINT COUPLING CONDITIONS" - elif self == self.solid_to_solid_surface_contact and ( - geometry_type == GeometryType.surface - ): - warnings.warn( - "The 'solid_to_solid_surface_contact' boundary condition enum is deprecated " - "and will be removed in a future version. " - "Use 'solid_to_solid_contact' instead.", - category=DeprecationWarning, - stacklevel=2, - ) - return "DESIGN SURF MORTAR CONTACT CONDITIONS 3D" elif self == self.solid_to_solid_contact and ( geometry_type == GeometryType.surface ): diff --git a/tests/test_cubitpy.py b/tests/test_cubitpy.py index 6b00441..b0a40be 100644 --- a/tests/test_cubitpy.py +++ b/tests/test_cubitpy.py @@ -999,7 +999,7 @@ def test_contact_condition_surface_to_surface(): cubit.add_node_set( solid.surfaces()[0], name="block1_contact_side", - bc_type=cupy.bc_type.solid_to_solid_surface_contact, + bc_type=cupy.bc_type.solid_to_solid_contact, bc_description={"InterfaceID": 0, "Side": "Master"}, ) cubit.add_node_set(