Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _validate_enclosed_box_only_in_beta_mesher(cls, values):
The current prefix is 'rotatingBlock-' with 14 characters.
"""
validation_info = get_validation_info()
if validation_info is None:
if validation_info is None or values is None:
return values
if validation_info.is_beta_mesher:
return values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,3 +475,21 @@ def test_enforced_half_model_only_in_beta_mesher():
):
with ValidationContext(VOLUME_MESH, non_gai_context):
AutomatedFarfield(domain_type="full_body")


def test_enclosed_entities_none_does_not_raise():
with CGS_unit_system:
cylinder = Cylinder(
name="cylinder",
outer_radius=1,
height=12,
axis=(0, 1, 0),
center=(0, 5, 0),
)
# Should not raise even when enclosed_entities is explicitly None
_ = RotationVolume(
entities=[cylinder],
spacing_axial=20,
spacing_radial=0.2,
spacing_circumferential=20,
)
Loading