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
210 changes: 126 additions & 84 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class accu_eqv_creep_strain(Operator):
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required.
shell_layer: int, optional
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.
extend_to_mid_nodes: bool, optional
Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
Expand Down Expand Up @@ -191,6 +193,8 @@ class accu_eqv_creep_strain(Operator):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)

>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.result.accu_eqv_creep_strain(
Expand All @@ -205,6 +209,7 @@ class accu_eqv_creep_strain(Operator):
... read_beams=my_read_beams,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )

>>> # Get output data
Expand All @@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
extend_to_mid_nodes=None,
config=None,
server=None,
):
Expand Down Expand Up @@ -252,6 +258,8 @@ def __init__(
self.inputs.split_shells.connect(split_shells)
if shell_layer is not None:
self.inputs.shell_layer.connect(shell_layer)
if extend_to_mid_nodes is not None:
self.inputs.extend_to_mid_nodes.connect(extend_to_mid_nodes)

@staticmethod
def _spec() -> Specification:
Expand Down Expand Up @@ -446,6 +454,12 @@ def _spec() -> Specification:
optional=True,
document=r"""If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.""",
),
28: PinSpecification(
name="extend_to_mid_nodes",
type_names=["bool"],
optional=True,
document=r"""Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True""",
),
},
map_output_pin_spec={
0: PinSpecification(
Expand Down Expand Up @@ -532,6 +546,8 @@ class InputsAccuEqvCreepStrain(_Inputs):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
"""

def __init__(self, op: Operator):
Expand Down Expand Up @@ -578,6 +594,10 @@ def __init__(self, op: Operator):
accu_eqv_creep_strain._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
self._extend_to_mid_nodes = Input(
accu_eqv_creep_strain._spec().input_pin(28), 28, op, -1
)
self._inputs.append(self._extend_to_mid_nodes)

@property
def time_scoping(self) -> Input:
Expand Down Expand Up @@ -810,6 +830,27 @@ def shell_layer(self) -> Input:
"""
return self._shell_layer

@property
def extend_to_mid_nodes(self) -> Input:
r"""Allows to connect extend_to_mid_nodes input to the operator.

Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
input:
An Input instance for this pin.

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.accu_eqv_creep_strain()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
>>> # or
>>> op.inputs.extend_to_mid_nodes(my_extend_to_mid_nodes)
"""
return self._extend_to_mid_nodes


class OutputsAccuEqvCreepStrain(_Outputs):
"""Intermediate class used to get outputs from
Expand Down
41 changes: 41 additions & 0 deletions src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ class accu_eqv_plastic_strain(Operator):
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required.
shell_layer: int, optional
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.
extend_to_mid_nodes: bool, optional
Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
Expand Down Expand Up @@ -191,6 +193,8 @@ class accu_eqv_plastic_strain(Operator):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)

>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.result.accu_eqv_plastic_strain(
Expand All @@ -205,6 +209,7 @@ class accu_eqv_plastic_strain(Operator):
... read_beams=my_read_beams,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )

>>> # Get output data
Expand All @@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
extend_to_mid_nodes=None,
config=None,
server=None,
):
Expand Down Expand Up @@ -252,6 +258,8 @@ def __init__(
self.inputs.split_shells.connect(split_shells)
if shell_layer is not None:
self.inputs.shell_layer.connect(shell_layer)
if extend_to_mid_nodes is not None:
self.inputs.extend_to_mid_nodes.connect(extend_to_mid_nodes)

@staticmethod
def _spec() -> Specification:
Expand Down Expand Up @@ -446,6 +454,12 @@ def _spec() -> Specification:
optional=True,
document=r"""If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.""",
),
28: PinSpecification(
name="extend_to_mid_nodes",
type_names=["bool"],
optional=True,
document=r"""Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True""",
),
},
map_output_pin_spec={
0: PinSpecification(
Expand Down Expand Up @@ -532,6 +546,8 @@ class InputsAccuEqvPlasticStrain(_Inputs):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
"""

def __init__(self, op: Operator):
Expand Down Expand Up @@ -578,6 +594,10 @@ def __init__(self, op: Operator):
accu_eqv_plastic_strain._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
self._extend_to_mid_nodes = Input(
accu_eqv_plastic_strain._spec().input_pin(28), 28, op, -1
)
self._inputs.append(self._extend_to_mid_nodes)

@property
def time_scoping(self) -> Input:
Expand Down Expand Up @@ -810,6 +830,27 @@ def shell_layer(self) -> Input:
"""
return self._shell_layer

@property
def extend_to_mid_nodes(self) -> Input:
r"""Allows to connect extend_to_mid_nodes input to the operator.

Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
input:
An Input instance for this pin.

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.accu_eqv_plastic_strain()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
>>> # or
>>> op.inputs.extend_to_mid_nodes(my_extend_to_mid_nodes)
"""
return self._extend_to_mid_nodes


class OutputsAccuEqvPlasticStrain(_Outputs):
"""Intermediate class used to get outputs from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ class contact_fluid_penetration_pressure(Operator):
If true, this pin forces the results to be split by element shape, indicated by the presence of the 'elshape' label in the output. If false, the results for all elements shapes are combined. Default value is false if averaging is not required and true if averaging is required.
shell_layer: int, optional
If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.
extend_to_mid_nodes: bool, optional
Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
Expand Down Expand Up @@ -207,6 +209,8 @@ class contact_fluid_penetration_pressure(Operator):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)

>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.result.contact_fluid_penetration_pressure(
Expand All @@ -225,6 +229,7 @@ class contact_fluid_penetration_pressure(Operator):
... read_beams=my_read_beams,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )

>>> # Get output data
Expand All @@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
extend_to_mid_nodes=None,
config=None,
server=None,
):
Expand Down Expand Up @@ -284,6 +290,8 @@ def __init__(
self.inputs.split_shells.connect(split_shells)
if shell_layer is not None:
self.inputs.shell_layer.connect(shell_layer)
if extend_to_mid_nodes is not None:
self.inputs.extend_to_mid_nodes.connect(extend_to_mid_nodes)

@staticmethod
def _spec() -> Specification:
Expand Down Expand Up @@ -502,6 +510,12 @@ def _spec() -> Specification:
optional=True,
document=r"""If connected, this pin allows you to extract the result only on the selected shell layer(s). The available values are: 0: Top, 1: Bottom, 2: TopBottom, 3: Mid, 4: TopBottomMid.""",
),
28: PinSpecification(
name="extend_to_mid_nodes",
type_names=["bool"],
optional=True,
document=r"""Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True""",
),
},
map_output_pin_spec={
0: PinSpecification(
Expand Down Expand Up @@ -596,6 +610,8 @@ class InputsContactFluidPenetrationPressure(_Inputs):
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
>>> op.inputs.shell_layer.connect(my_shell_layer)
>>> my_extend_to_mid_nodes = bool()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
"""

def __init__(self, op: Operator):
Expand Down Expand Up @@ -660,6 +676,10 @@ def __init__(self, op: Operator):
contact_fluid_penetration_pressure._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
self._extend_to_mid_nodes = Input(
contact_fluid_penetration_pressure._spec().input_pin(28), 28, op, -1
)
self._inputs.append(self._extend_to_mid_nodes)

@property
def time_scoping(self) -> Input:
Expand Down Expand Up @@ -976,6 +996,27 @@ def shell_layer(self) -> Input:
"""
return self._shell_layer

@property
def extend_to_mid_nodes(self) -> Input:
r"""Allows to connect extend_to_mid_nodes input to the operator.

Compute mid nodes (when available) by averaging the neighbour corner nodes. Default: True

Returns
-------
input:
An Input instance for this pin.

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.contact_fluid_penetration_pressure()
>>> op.inputs.extend_to_mid_nodes.connect(my_extend_to_mid_nodes)
>>> # or
>>> op.inputs.extend_to_mid_nodes(my_extend_to_mid_nodes)
"""
return self._extend_to_mid_nodes


class OutputsContactFluidPenetrationPressure(_Outputs):
"""Intermediate class used to get outputs from
Expand Down
Loading