|
36 | 36 | SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1, |
37 | 37 | SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0, |
38 | 38 | SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_0, |
| 39 | + SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_1, |
39 | 40 | ReferenceCsvFiles, |
40 | 41 | ) |
41 | 42 |
|
@@ -1193,19 +1194,9 @@ def test_skin_layer6(self, static_simulation: post.StaticMechanicalSimulation): |
1193 | 1194 | ], |
1194 | 1195 | ) |
1195 | 1196 | def test_skin_extraction(skin, result_name, mode, simulation_str, request): |
1196 | | - if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_0: |
1197 | | - # Before 8.0, the solid mesh cannot be connected to the solid_to_skin |
1198 | | - # operator. This yield incorrect results. Therefore we skip all the tests |
1199 | | - # for older versions. |
| 1197 | + if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_1: |
1200 | 1198 | return |
1201 | 1199 |
|
1202 | | - if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_0: |
1203 | | - if is_principal(mode) and result_name == "elastic_strain": |
1204 | | - # Principal results for elastic strain were wrong before version |
1205 | | - # 9_0 because the strain flag was not propagated correctly |
1206 | | - # by the skin to solid mapping operator |
1207 | | - return |
1208 | | - |
1209 | 1200 | time_id = 1 |
1210 | 1201 |
|
1211 | 1202 | simulation = request.getfixturevalue(simulation_str) |
@@ -3825,6 +3816,12 @@ def test_averaging_per_body_nodal( |
3825 | 3816 | ref_data = get_ref_per_body_results_mechanical(ref_files[result], mesh) |
3826 | 3817 |
|
3827 | 3818 | def get_expected_label_space_by_mat_id(mat_id: int): |
| 3819 | + # mapdl_element_type_id is not part of the label space before DPF 9.1 |
| 3820 | + if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_1: |
| 3821 | + return { |
| 3822 | + elemental_properties.material: mat_id, |
| 3823 | + "time": 1, |
| 3824 | + } |
3828 | 3825 | return { |
3829 | 3826 | elemental_properties.material: mat_id, |
3830 | 3827 | "mapdl_element_type_id": mat_id, |
|
0 commit comments