|
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,74 @@ 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) -> field.Field: |
| 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 | +
|
| 319 | + """ |
| 320 | + |
| 321 | + cs = self._api.cyclic_support_get_cs(self) |
| 322 | + return field.Field(field=cs, server=self._server) |
| 323 | + |
| 324 | + def low_high_map(self, stage_num: int = 0) -> property_field.PropertyField: |
| 325 | + """Retrieve a property field containing node map from low to high |
| 326 | + base sector of the given stage. |
| 327 | +
|
| 328 | + Parameters |
| 329 | + ---------- |
| 330 | + stage_num: |
| 331 | + Number of the stage required (from 0 to num_stages). |
| 332 | +
|
| 333 | + Returns |
| 334 | + ------- |
| 335 | + low_high_map: |
| 336 | + Node correspondence between low to high in the base sector of the given stage. |
| 337 | +
|
| 338 | + Examples |
| 339 | + -------- |
| 340 | + >>> from ansys.dpf.core import Model |
| 341 | + >>> from ansys.dpf.core import examples |
| 342 | + >>> multi_stage = examples.download_multi_stage_cyclic_result() |
| 343 | + >>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support |
| 344 | + >>> low_high_map = cyc_support.low_high_map(0) |
| 345 | +
|
| 346 | + """ |
| 347 | + low_high_map = self._api.cyclic_support_get_low_high_map(self, stage_num) |
| 348 | + return property_field.PropertyField(property_field=low_high_map, server=self._server) |
| 349 | + |
| 350 | + def high_low_map(self, stage_num: int = 0) -> property_field.PropertyField: |
| 351 | + """Retrieve a property field containing node map from high to low |
| 352 | + base sector of the given stage. |
| 353 | +
|
| 354 | + Parameters |
| 355 | + ---------- |
| 356 | + stage_num: |
| 357 | + Number of the stage required (from 0 to num_stages). |
| 358 | +
|
| 359 | + Returns |
| 360 | + ------- |
| 361 | + low_high_map: |
| 362 | + Node correspondence between high to low in the base sector of the given stage. |
| 363 | +
|
| 364 | + Examples |
| 365 | + -------- |
| 366 | + >>> from ansys.dpf.core import Model |
| 367 | + >>> from ansys.dpf.core import examples |
| 368 | + >>> multi_stage = examples.download_multi_stage_cyclic_result() |
| 369 | + >>> cyc_support = Model(multi_stage).metadata.result_info.cyclic_support |
| 370 | + >>> high_low_map = cyc_support.high_low_map(0) |
| 371 | +
|
| 372 | + """ |
| 373 | + high_low_map = self._api.cyclic_support_get_high_low_map(self, stage_num) |
| 374 | + return property_field.PropertyField(property_field=high_low_map, server=self._server) |
| 375 | + |
307 | 376 | def __del__(self): |
308 | 377 | try: |
309 | 378 | self._deleter_func[0](self._deleter_func[1](self)) |
|
0 commit comments