Skip to content

Commit 715e383

Browse files
oparrenorafacanton
andauthored
Fix to avoid checking duplicate ids for cyclic expansion (#829)
* fix + debug * delete debug * styling * styling * Small chane * Remove change * revert --------- Co-authored-by: Rafael Canton <[email protected]>
1 parent 86c9540 commit 715e383

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/ansys/dpf/post/dpf_solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def get_result_info(self):
8989
Physics Type: ...
9090
Available results:
9191
- displacement: Nodal Displacement
92-
- reaction_force: Nodal Force
93-
- stress: ElementalNodal Stress
92+
- reaction_force: Nodal Force
93+
- stress: ElementalNodal Stress
9494
- elemental_volume: Elemental Volume
9595
- stiffness_matrix_energy: Elemental Energy-stiffness matrix
9696
- artificial_hourglass_energy: Elemental Hourglass Energy

tests/test_simulation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,10 @@ def test_cyclic(self, simple_cyclic):
24392439

24402440
displacement = simulation.displacement(expand_cyclic=True)
24412441
assert "base_sector" not in displacement.columns.names
2442-
assert len(displacement.mesh_index) == 408
2442+
if SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0:
2443+
assert len(displacement.mesh_index) == 304
2444+
else:
2445+
assert len(displacement.mesh_index) == 408
24432446

24442447
with pytest.raises(
24452448
ValueError,

0 commit comments

Comments
 (0)