@@ -298,7 +298,7 @@ def test_wall_function_type_interface():
298298 # True is converted to WallFunction() with default BoundaryLayer and logs deprecation warning
299299 wall = Wall (surfaces = [surface ], use_wall_function = True )
300300 assert wall .use_wall_function == WallFunction ()
301- assert wall .use_wall_function .type_name == "BoundaryLayer"
301+ assert wall .use_wall_function .wall_function_type == "BoundaryLayer"
302302
303303 # False is converted to None and logs deprecation warning
304304 wall = Wall (surfaces = [surface ], use_wall_function = False )
@@ -308,26 +308,26 @@ def test_wall_function_type_interface():
308308 wall = Wall (surfaces = [surface ])
309309 assert wall .use_wall_function is None
310310
311- # WallFunction with default type_name
311+ # WallFunction with default wall_function_type
312312 wall = Wall (surfaces = [surface ], use_wall_function = WallFunction ())
313- assert wall .use_wall_function .type_name == "BoundaryLayer"
313+ assert wall .use_wall_function .wall_function_type == "BoundaryLayer"
314314
315315 # WallFunction with InnerLayer
316- wall = Wall (surfaces = [surface ], use_wall_function = WallFunction (type_name = "InnerLayer" ))
317- assert wall .use_wall_function .type_name == "InnerLayer"
316+ wall = Wall (surfaces = [surface ], use_wall_function = WallFunction (wall_function_type = "InnerLayer" ))
317+ assert wall .use_wall_function .wall_function_type == "InnerLayer"
318318
319319 # SlaterPorousBleed conflict applies to all wall function types
320320 message = "Using `SlaterPorousBleed` with wall function is not supported currently."
321321 with SI_unit_system , pytest .raises (ValueError , match = re .escape (message )):
322322 Wall (
323323 velocity = SlaterPorousBleed (porosity = 0.2 , static_pressure = 1e5 * u .Pa ),
324324 surfaces = [surface ],
325- use_wall_function = WallFunction (type_name = "InnerLayer" ),
325+ use_wall_function = WallFunction (wall_function_type = "InnerLayer" ),
326326 )
327327
328- # Invalid type_name should be rejected by pydantic
328+ # Invalid wall_function_type should be rejected by pydantic
329329 with pytest .raises (pd .ValidationError ):
330- Wall (surfaces = [surface ], use_wall_function = WallFunction (type_name = "InvalidType" ))
330+ Wall (surfaces = [surface ], use_wall_function = WallFunction (wall_function_type = "InvalidType" ))
331331
332332
333333def test_low_mach_preconditioner_validator (
0 commit comments