Skip to content

Commit 438d96c

Browse files
committed
Remove unused enum and re-enable solid-to-solid-surface-contact as legacy
1 parent b3e08d3 commit 438d96c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/cubitpy/cubitpy_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ class BoundaryConditionType(Enum):
287287
beam_to_solid_surface_meshtying = auto()
288288
beam_to_solid_surface_contact = auto()
289289
solid_to_solid_surface_contact = auto()
290-
solid_to_solid_curve_contact = auto()
291290
solid_to_solid_contact = auto()
292291

293292
# fluid
@@ -326,9 +325,10 @@ def get_dat_bc_section_header(self, geometry_type):
326325
return "BEAM INTERACTION/BEAM TO SOLID SURFACE CONTACT SURFACE"
327326
elif self == self.point_coupling and (geometry_type == GeometryType.vertex):
328327
return "DESIGN POINT COUPLING CONDITIONS"
329-
elif self == self.solid_to_solid_contact and (
330-
geometry_type == GeometryType.surface
331-
):
328+
elif (
329+
self == self.solid_to_solid_contact
330+
or self == self.solid_to_solid_surface_contact
331+
) and (geometry_type == GeometryType.surface):
332332
return "DESIGN SURF MORTAR CONTACT CONDITIONS 3D"
333333
elif self == self.solid_to_solid_contact and (
334334
geometry_type == GeometryType.curve

tests/test_cubitpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ def test_contact_condition_surface_to_surface():
906906
cubit.add_node_set(
907907
solid.surfaces()[0],
908908
name="block1_contact_side",
909-
bc_type=cupy.bc_type.solid_to_solid_contact,
909+
bc_type=cupy.bc_type.solid_to_solid_surface_contact,
910910
bc_description={"InterfaceID": 0, "Side": "Master"},
911911
)
912912
cubit.add_node_set(

0 commit comments

Comments
 (0)