|
32 | 32 |
|
33 | 33 | from ansys.dpf.core import server as server_module |
34 | 34 | from ansys.dpf.core.scoping import Scoping |
| 35 | +from ansys.dpf.core import field, property_field |
35 | 36 |
|
36 | 37 |
|
37 | 38 | class CyclicSupport: |
@@ -304,6 +305,75 @@ def expand_element_id(self, element_id, sectors=None, stage_num=0): |
304 | 305 | ) |
305 | 306 | return Scoping(scoping=expanded_ids, server=self._server) |
306 | 307 |
|
| 308 | + def cs(self): |
| 309 | + """Coordinate system of the cyclic support. |
| 310 | +
|
| 311 | + Examples |
| 312 | + -------- |
| 313 | + >>> from ansys.dpf.core import Model |
| 314 | + >>> from ansys.dpf.core import examples |
| 315 | + >>> multi_stage = examples.download_multi_stage_cyclic_result() |
| 316 | + >>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support |
| 317 | + >>> cs = cyc_support.cs() |
| 318 | + >>> print(expanded_scoping.ids) |
| 319 | + [12] |
| 320 | + """ |
| 321 | + |
| 322 | + cs = self._api.cyclic_support_get_cs(self) |
| 323 | + return field.Field(field=cs, server=self._server) |
| 324 | + |
| 325 | + def low_high_map(self, stage_num=0): |
| 326 | + """Retrieve a property field containing node map from low to high |
| 327 | + base sector of the given stage. |
| 328 | +
|
| 329 | + Parameters |
| 330 | + ---------- |
| 331 | + stage_num : int, optional |
| 332 | + Number of the stage required (from 0 to num_stages). |
| 333 | +
|
| 334 | + Returns |
| 335 | + ------- |
| 336 | + low_high_map : PropertyField |
| 337 | + Node correspondance between low to high in the base sector of the given stage. |
| 338 | +
|
| 339 | + Examples |
| 340 | + -------- |
| 341 | + >>> from ansys.dpf.core import Model |
| 342 | + >>> from ansys.dpf.core import examples |
| 343 | + >>> multi_stage = examples.download_multi_stage_cyclic_result() |
| 344 | + >>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support |
| 345 | + >>> low_high_map = cyc_support.low_high_map(0) |
| 346 | +
|
| 347 | + """ |
| 348 | + low_high_map = self._api.cyclic_support_get_low_high_map(self, stage_num) |
| 349 | + return property_field.PropertyField(property_field=low_high_map, server=self._server) |
| 350 | + |
| 351 | + def high_low_map(self, stage_num=0): |
| 352 | + """Retrieve a property field containing node map from high to low |
| 353 | + base sector of the given stage. |
| 354 | +
|
| 355 | + Parameters |
| 356 | + ---------- |
| 357 | + stage_num : int, optional |
| 358 | + Number of the stage required (from 0 to num_stages). |
| 359 | +
|
| 360 | + Returns |
| 361 | + ------- |
| 362 | + low_high_map : PropertyField |
| 363 | + Node correspondance between high to low in the base sector of the given stage. |
| 364 | +
|
| 365 | + Examples |
| 366 | + -------- |
| 367 | + >>> from ansys.dpf.core import Model |
| 368 | + >>> from ansys.dpf.core import examples |
| 369 | + >>> multi_stage = examples.download_multi_stage_cyclic_result() |
| 370 | + >>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support |
| 371 | + >>> high_low_map = cyc_support.high_low_map(0) |
| 372 | +
|
| 373 | + """ |
| 374 | + high_low_map = self._api.cyclic_support_get_high_low_map(self, stage_num) |
| 375 | + return property_field.PropertyField(property_field=high_low_map, server=self._server) |
| 376 | + |
307 | 377 | def __del__(self): |
308 | 378 | try: |
309 | 379 | self._deleter_func[0](self._deleter_func[1](self)) |
|
0 commit comments