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
4 changes: 2 additions & 2 deletions docs/source/_static/dpf_entry.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/source/_static/dpf_premium.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ class cyclic_expanded_acceleration(Operator):
Data sources containing the result file.
bool_rotate_to_global : bool, optional
Default is true
all_dofs : bool, optional
If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.
sector_mesh : MeshedRegion or MeshesContainer, optional
Mesh of the base sector (can be a skin).
requested_location : str, optional
Expand Down Expand Up @@ -67,6 +72,8 @@ class cyclic_expanded_acceleration(Operator):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand All @@ -90,6 +97,7 @@ class cyclic_expanded_acceleration(Operator):
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... all_dofs=my_all_dofs,
... sector_mesh=my_sector_mesh,
... requested_location=my_requested_location,
... read_cyclic=my_read_cyclic,
Expand All @@ -112,6 +120,7 @@ def __init__(
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
all_dofs=None,
sector_mesh=None,
requested_location=None,
read_cyclic=None,
Expand All @@ -137,6 +146,8 @@ def __init__(
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if all_dofs is not None:
self.inputs.all_dofs.connect(all_dofs)
if sector_mesh is not None:
self.inputs.sector_mesh.connect(sector_mesh)
if requested_location is not None:
Expand Down Expand Up @@ -197,6 +208,15 @@ def _spec():
optional=True,
document="""Default is true""",
),
6: PinSpecification(
name="all_dofs",
type_names=["bool"],
optional=True,
document="""If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.""",
),
7: PinSpecification(
name="sector_mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -320,6 +340,8 @@ class InputsCyclicExpandedAcceleration(_Inputs):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand Down Expand Up @@ -362,6 +384,10 @@ def __init__(self, op: Operator):
cyclic_expanded_acceleration._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._all_dofs = Input(
cyclic_expanded_acceleration._spec().input_pin(6), 6, op, -1
)
self._inputs.append(self._all_dofs)
self._sector_mesh = Input(
cyclic_expanded_acceleration._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -508,6 +534,29 @@ def bool_rotate_to_global(self):
"""
return self._bool_rotate_to_global

@property
def all_dofs(self):
"""Allows to connect all_dofs input to the operator.

If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.

Parameters
----------
my_all_dofs : bool

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.cyclic_expanded_acceleration()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> # or
>>> op.inputs.all_dofs(my_all_dofs)
"""
return self._all_dofs

@property
def sector_mesh(self):
"""Allows to connect sector_mesh input to the operator.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class cyclic_expanded_displacement(Operator):
Data sources containing the result file.
bool_rotate_to_global : bool, optional
Default is true
all_dofs : bool, optional
If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.
sector_mesh : MeshedRegion or MeshesContainer, optional
Mesh of the base sector (can be a skin).
requested_location : str, optional
Expand Down Expand Up @@ -68,6 +73,8 @@ class cyclic_expanded_displacement(Operator):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand All @@ -91,6 +98,7 @@ class cyclic_expanded_displacement(Operator):
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... all_dofs=my_all_dofs,
... sector_mesh=my_sector_mesh,
... requested_location=my_requested_location,
... read_cyclic=my_read_cyclic,
Expand All @@ -113,6 +121,7 @@ def __init__(
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
all_dofs=None,
sector_mesh=None,
requested_location=None,
read_cyclic=None,
Expand All @@ -138,6 +147,8 @@ def __init__(
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if all_dofs is not None:
self.inputs.all_dofs.connect(all_dofs)
if sector_mesh is not None:
self.inputs.sector_mesh.connect(sector_mesh)
if requested_location is not None:
Expand Down Expand Up @@ -197,6 +208,15 @@ def _spec():
optional=True,
document="""Default is true""",
),
6: PinSpecification(
name="all_dofs",
type_names=["bool"],
optional=True,
document="""If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.""",
),
7: PinSpecification(
name="sector_mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -320,6 +340,8 @@ class InputsCyclicExpandedDisplacement(_Inputs):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand Down Expand Up @@ -362,6 +384,10 @@ def __init__(self, op: Operator):
cyclic_expanded_displacement._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._all_dofs = Input(
cyclic_expanded_displacement._spec().input_pin(6), 6, op, -1
)
self._inputs.append(self._all_dofs)
self._sector_mesh = Input(
cyclic_expanded_displacement._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -508,6 +534,29 @@ def bool_rotate_to_global(self):
"""
return self._bool_rotate_to_global

@property
def all_dofs(self):
"""Allows to connect all_dofs input to the operator.

If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.

Parameters
----------
my_all_dofs : bool

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.cyclic_expanded_displacement()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> # or
>>> op.inputs.all_dofs(my_all_dofs)
"""
return self._all_dofs

@property
def sector_mesh(self):
"""Allows to connect sector_mesh input to the operator.
Expand Down
49 changes: 49 additions & 0 deletions src/ansys/dpf/core/operators/result/cyclic_expanded_el_strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class cyclic_expanded_el_strain(Operator):
Data sources containing the result file.
bool_rotate_to_global : bool, optional
Default is true
all_dofs : bool, optional
If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.
sector_mesh : MeshedRegion or MeshesContainer, optional
Mesh of the base sector (can be a skin).
requested_location : str, optional
Expand Down Expand Up @@ -68,6 +73,8 @@ class cyclic_expanded_el_strain(Operator):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand All @@ -91,6 +98,7 @@ class cyclic_expanded_el_strain(Operator):
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... all_dofs=my_all_dofs,
... sector_mesh=my_sector_mesh,
... requested_location=my_requested_location,
... read_cyclic=my_read_cyclic,
Expand All @@ -113,6 +121,7 @@ def __init__(
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
all_dofs=None,
sector_mesh=None,
requested_location=None,
read_cyclic=None,
Expand All @@ -138,6 +147,8 @@ def __init__(
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if all_dofs is not None:
self.inputs.all_dofs.connect(all_dofs)
if sector_mesh is not None:
self.inputs.sector_mesh.connect(sector_mesh)
if requested_location is not None:
Expand Down Expand Up @@ -197,6 +208,15 @@ def _spec():
optional=True,
document="""Default is true""",
),
6: PinSpecification(
name="all_dofs",
type_names=["bool"],
optional=True,
document="""If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.""",
),
7: PinSpecification(
name="sector_mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -320,6 +340,8 @@ class InputsCyclicExpandedElStrain(_Inputs):
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_all_dofs = bool()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> my_sector_mesh = dpf.MeshedRegion()
>>> op.inputs.sector_mesh.connect(my_sector_mesh)
>>> my_requested_location = str()
Expand Down Expand Up @@ -362,6 +384,10 @@ def __init__(self, op: Operator):
cyclic_expanded_el_strain._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._all_dofs = Input(
cyclic_expanded_el_strain._spec().input_pin(6), 6, op, -1
)
self._inputs.append(self._all_dofs)
self._sector_mesh = Input(
cyclic_expanded_el_strain._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -506,6 +532,29 @@ def bool_rotate_to_global(self):
"""
return self._bool_rotate_to_global

@property
def all_dofs(self):
"""Allows to connect all_dofs input to the operator.

If this pin is set to true, all the dofs are
retrieved. by default this pin is set
to false and only the translational
dofs are retrieved.

Parameters
----------
my_all_dofs : bool

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.cyclic_expanded_el_strain()
>>> op.inputs.all_dofs.connect(my_all_dofs)
>>> # or
>>> op.inputs.all_dofs(my_all_dofs)
"""
return self._all_dofs

@property
def sector_mesh(self):
"""Allows to connect sector_mesh input to the operator.
Expand Down
Loading