Fields container already allocated modified inplace
diff --git a/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py b/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py
index 5c149930a9a..a586ee53d9f 100644
--- a/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py
+++ b/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py
@@ -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
-------
@@ -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(
@@ -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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -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):
@@ -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:
@@ -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
diff --git a/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py b/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py
index fd47ac6fbb6..a46d516a5e0 100644
--- a/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py
+++ b/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py
@@ -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
-------
@@ -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(
@@ -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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -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):
@@ -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:
@@ -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
diff --git a/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py b/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py
index 41bdf9854da..ff181d39fb9 100644
--- a/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py
+++ b/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py
@@ -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
-------
@@ -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(
@@ -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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -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):
@@ -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:
@@ -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
diff --git a/src/ansys/dpf/core/operators/result/contact_friction_stress.py b/src/ansys/dpf/core/operators/result/contact_friction_stress.py
index 62e5b817223..5d1243ff233 100644
--- a/src/ansys/dpf/core/operators/result/contact_friction_stress.py
+++ b/src/ansys/dpf/core/operators/result/contact_friction_stress.py
@@ -164,6 +164,8 @@ class contact_friction_stress(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
-------
@@ -207,6 +209,8 @@ class contact_friction_stress(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_friction_stress(
@@ -225,6 +229,7 @@ class contact_friction_stress(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactFrictionStress(_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):
@@ -656,6 +672,10 @@ def __init__(self, op: Operator):
contact_friction_stress._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_friction_stress._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -972,6 +992,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_friction_stress()
+ >>> 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 OutputsContactFrictionStress(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_gap_distance.py b/src/ansys/dpf/core/operators/result/contact_gap_distance.py
index baba8952b9a..398535645f4 100644
--- a/src/ansys/dpf/core/operators/result/contact_gap_distance.py
+++ b/src/ansys/dpf/core/operators/result/contact_gap_distance.py
@@ -164,6 +164,8 @@ class contact_gap_distance(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
-------
@@ -207,6 +209,8 @@ class contact_gap_distance(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_gap_distance(
@@ -225,6 +229,7 @@ class contact_gap_distance(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactGapDistance(_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):
@@ -648,6 +664,10 @@ def __init__(self, op: Operator):
contact_gap_distance._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_gap_distance._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -964,6 +984,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_gap_distance()
+ >>> 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 OutputsContactGapDistance(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_penetration.py b/src/ansys/dpf/core/operators/result/contact_penetration.py
index ab4c2cb4d52..e9b7e072ee4 100644
--- a/src/ansys/dpf/core/operators/result/contact_penetration.py
+++ b/src/ansys/dpf/core/operators/result/contact_penetration.py
@@ -164,6 +164,8 @@ class contact_penetration(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
-------
@@ -207,6 +209,8 @@ class contact_penetration(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_penetration(
@@ -225,6 +229,7 @@ class contact_penetration(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactPenetration(_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):
@@ -644,6 +660,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(contact_penetration._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_penetration._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -960,6 +980,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_penetration()
+ >>> 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 OutputsContactPenetration(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_pressure.py b/src/ansys/dpf/core/operators/result/contact_pressure.py
index fd06c47ceaf..839d732ea49 100644
--- a/src/ansys/dpf/core/operators/result/contact_pressure.py
+++ b/src/ansys/dpf/core/operators/result/contact_pressure.py
@@ -164,6 +164,8 @@ class contact_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
-------
@@ -207,6 +209,8 @@ class contact_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_pressure(
@@ -225,6 +229,7 @@ class contact_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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactPressure(_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):
@@ -640,6 +656,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(contact_pressure._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_pressure._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -956,6 +976,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_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 OutputsContactPressure(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_sliding_distance.py b/src/ansys/dpf/core/operators/result/contact_sliding_distance.py
index cd6049d46e3..98e3d02326b 100644
--- a/src/ansys/dpf/core/operators/result/contact_sliding_distance.py
+++ b/src/ansys/dpf/core/operators/result/contact_sliding_distance.py
@@ -164,6 +164,8 @@ class contact_sliding_distance(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
-------
@@ -207,6 +209,8 @@ class contact_sliding_distance(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_sliding_distance(
@@ -225,6 +229,7 @@ class contact_sliding_distance(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactSlidingDistance(_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):
@@ -656,6 +672,10 @@ def __init__(self, op: Operator):
contact_sliding_distance._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_sliding_distance._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -972,6 +992,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_sliding_distance()
+ >>> 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 OutputsContactSlidingDistance(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_status.py b/src/ansys/dpf/core/operators/result/contact_status.py
index 6f3ac0b807a..f5914612a63 100644
--- a/src/ansys/dpf/core/operators/result/contact_status.py
+++ b/src/ansys/dpf/core/operators/result/contact_status.py
@@ -164,6 +164,8 @@ class contact_status(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
-------
@@ -207,6 +209,8 @@ class contact_status(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_status(
@@ -225,6 +229,7 @@ class contact_status(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactStatus(_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):
@@ -636,6 +652,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(contact_status._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_status._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -952,6 +972,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_status()
+ >>> 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 OutputsContactStatus(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py b/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py
index 88e5b0f1b66..6429213bdea 100644
--- a/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py
+++ b/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py
@@ -164,6 +164,8 @@ class contact_surface_heat_flux(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
-------
@@ -207,6 +209,8 @@ class contact_surface_heat_flux(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_surface_heat_flux(
@@ -225,6 +229,7 @@ class contact_surface_heat_flux(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactSurfaceHeatFlux(_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):
@@ -656,6 +672,10 @@ def __init__(self, op: Operator):
contact_surface_heat_flux._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_surface_heat_flux._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -972,6 +992,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_surface_heat_flux()
+ >>> 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 OutputsContactSurfaceHeatFlux(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/contact_total_stress.py b/src/ansys/dpf/core/operators/result/contact_total_stress.py
index fc587ac3607..ed110c0c9f6 100644
--- a/src/ansys/dpf/core/operators/result/contact_total_stress.py
+++ b/src/ansys/dpf/core/operators/result/contact_total_stress.py
@@ -164,6 +164,8 @@ class contact_total_stress(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
-------
@@ -207,6 +209,8 @@ class contact_total_stress(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_total_stress(
@@ -225,6 +229,7 @@ class contact_total_stress(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsContactTotalStress(_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):
@@ -648,6 +664,10 @@ def __init__(self, op: Operator):
contact_total_stress._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ contact_total_stress._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -964,6 +984,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_total_stress()
+ >>> 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 OutputsContactTotalStress(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/creep_strain.py b/src/ansys/dpf/core/operators/result/creep_strain.py
index 03eba292c96..2cebe178400 100644
--- a/src/ansys/dpf/core/operators/result/creep_strain.py
+++ b/src/ansys/dpf/core/operators/result/creep_strain.py
@@ -156,6 +156,8 @@ class 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
-------
@@ -191,6 +193,8 @@ class 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.creep_strain(
@@ -205,6 +209,7 @@ class 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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsCreepStrain(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(creep_strain._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ creep_strain._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.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 OutputsCreepStrain(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py b/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py
index 5b033dff657..1e5a215d745 100644
--- a/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py
+++ b/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py
@@ -156,6 +156,8 @@ class creep_strain_energy_density(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
-------
@@ -191,6 +193,8 @@ class creep_strain_energy_density(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.creep_strain_energy_density(
@@ -205,6 +209,7 @@ class creep_strain_energy_density(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsCreepStrainEnergyDensity(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
creep_strain_energy_density._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ creep_strain_energy_density._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -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.creep_strain_energy_density()
+ >>> 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 OutputsCreepStrainEnergyDensity(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/creep_strain_eqv.py b/src/ansys/dpf/core/operators/result/creep_strain_eqv.py
index 1eb4e411c5d..54ec9e23e47 100644
--- a/src/ansys/dpf/core/operators/result/creep_strain_eqv.py
+++ b/src/ansys/dpf/core/operators/result/creep_strain_eqv.py
@@ -156,6 +156,8 @@ class creep_strain_eqv(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
-------
@@ -191,6 +193,8 @@ class creep_strain_eqv(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.creep_strain_eqv(
@@ -205,6 +209,7 @@ class creep_strain_eqv(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsCreepStrainEqv(_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):
@@ -564,6 +580,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(creep_strain_eqv._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ creep_strain_eqv._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -796,6 +816,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.creep_strain_eqv()
+ >>> 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 OutputsCreepStrainEqv(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/elastic_strain.py b/src/ansys/dpf/core/operators/result/elastic_strain.py
index 70c728bc119..937655bb6e0 100644
--- a/src/ansys/dpf/core/operators/result/elastic_strain.py
+++ b/src/ansys/dpf/core/operators/result/elastic_strain.py
@@ -164,6 +164,8 @@ class elastic_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
-------
@@ -207,6 +209,8 @@ class elastic_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.elastic_strain(
@@ -225,6 +229,7 @@ class elastic_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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsElasticStrain(_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):
@@ -636,6 +652,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(elastic_strain._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ elastic_strain._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -952,6 +972,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.elastic_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 OutputsElasticStrain(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py b/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py
index cb3bad4c22e..4b1871421eb 100644
--- a/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py
+++ b/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py
@@ -156,6 +156,8 @@ class elastic_strain_energy_density(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
-------
@@ -191,6 +193,8 @@ class elastic_strain_energy_density(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.elastic_strain_energy_density(
@@ -205,6 +209,7 @@ class elastic_strain_energy_density(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsElasticStrainEnergyDensity(_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):
@@ -580,6 +596,10 @@ def __init__(self, op: Operator):
elastic_strain_energy_density._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ elastic_strain_energy_density._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -812,6 +832,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.elastic_strain_energy_density()
+ >>> 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 OutputsElasticStrainEnergyDensity(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py b/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py
index 9801ec3a336..0e2158137fb 100644
--- a/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py
+++ b/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py
@@ -156,6 +156,8 @@ class elastic_strain_eqv(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
-------
@@ -191,6 +193,8 @@ class elastic_strain_eqv(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.elastic_strain_eqv(
@@ -205,6 +209,7 @@ class elastic_strain_eqv(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsElasticStrainEqv(_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):
@@ -566,6 +582,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(elastic_strain_eqv._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ elastic_strain_eqv._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -798,6 +818,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.elastic_strain_eqv()
+ >>> 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 OutputsElasticStrainEqv(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/electric_field.py b/src/ansys/dpf/core/operators/result/electric_field.py
index c9be72782b1..ca699b73cb3 100644
--- a/src/ansys/dpf/core/operators/result/electric_field.py
+++ b/src/ansys/dpf/core/operators/result/electric_field.py
@@ -156,6 +156,8 @@ class electric_field(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
-------
@@ -191,6 +193,8 @@ class electric_field(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.electric_field(
@@ -205,6 +209,7 @@ class electric_field(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsElectricField(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(electric_field._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ electric_field._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.electric_field()
+ >>> 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 OutputsElectricField(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/electric_flux_density.py b/src/ansys/dpf/core/operators/result/electric_flux_density.py
index c292fa9e524..44635794270 100644
--- a/src/ansys/dpf/core/operators/result/electric_flux_density.py
+++ b/src/ansys/dpf/core/operators/result/electric_flux_density.py
@@ -156,6 +156,8 @@ class electric_flux_density(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
-------
@@ -191,6 +193,8 @@ class electric_flux_density(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.electric_flux_density(
@@ -205,6 +209,7 @@ class electric_flux_density(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsElectricFluxDensity(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
electric_flux_density._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ electric_flux_density._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -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.electric_flux_density()
+ >>> 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 OutputsElectricFluxDensity(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/element_nodal_forces.py b/src/ansys/dpf/core/operators/result/element_nodal_forces.py
index 0a3bcec2a37..73fca05aecc 100644
--- a/src/ansys/dpf/core/operators/result/element_nodal_forces.py
+++ b/src/ansys/dpf/core/operators/result/element_nodal_forces.py
@@ -164,6 +164,8 @@ class element_nodal_forces(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
split_force_components: bool, optional
If this pin is set to true, the output fields container splits the ENF by degree of freedom ("dof" label, 0 for translation, 1 for rotation, 2 for temperature) and derivative order ("derivative_order" label, 0 for stiffness terms, 1 for damping terms and 2 for inertial terms). Default is false.
@@ -209,6 +211,8 @@ class element_nodal_forces(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)
>>> my_split_force_components = bool()
>>> op.inputs.split_force_components.connect(my_split_force_components)
@@ -229,6 +233,7 @@ class element_nodal_forces(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,
... split_force_components=my_split_force_components,
... )
@@ -253,6 +258,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
split_force_components=None,
config=None,
server=None,
@@ -290,6 +296,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)
if split_force_components is not None:
self.inputs.split_force_components.connect(split_force_components)
@@ -510,6 +518,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""",
+ ),
200: PinSpecification(
name="split_force_components",
type_names=["bool"],
@@ -610,6 +624,8 @@ class InputsElementNodalForces(_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)
>>> my_split_force_components = bool()
>>> op.inputs.split_force_components.connect(my_split_force_components)
"""
@@ -664,6 +680,10 @@ def __init__(self, op: Operator):
element_nodal_forces._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ element_nodal_forces._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
self._split_force_components = Input(
element_nodal_forces._spec().input_pin(200), 200, op, -1
)
@@ -984,6 +1004,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.element_nodal_forces()
+ >>> 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
+
@property
def split_force_components(self) -> Input:
r"""Allows to connect split_force_components input to the operator.
diff --git a/src/ansys/dpf/core/operators/result/element_orientations.py b/src/ansys/dpf/core/operators/result/element_orientations.py
index 772d2d05c77..97c5b2603c5 100644
--- a/src/ansys/dpf/core/operators/result/element_orientations.py
+++ b/src/ansys/dpf/core/operators/result/element_orientations.py
@@ -156,6 +156,8 @@ class element_orientations(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
-------
@@ -191,6 +193,8 @@ class element_orientations(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.element_orientations(
@@ -205,6 +209,7 @@ class element_orientations(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsElementOrientations(_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):
@@ -570,6 +586,10 @@ def __init__(self, op: Operator):
element_orientations._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ element_orientations._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -802,6 +822,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.element_orientations()
+ >>> 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 OutputsElementOrientations(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py b/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py
index 5d6873fa82b..48446573ab3 100644
--- a/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py
+++ b/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py
@@ -156,6 +156,8 @@ class eqv_stress_parameter(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
-------
@@ -191,6 +193,8 @@ class eqv_stress_parameter(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.eqv_stress_parameter(
@@ -205,6 +209,7 @@ class eqv_stress_parameter(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsEqvStressParameter(_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):
@@ -570,6 +586,10 @@ def __init__(self, op: Operator):
eqv_stress_parameter._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ eqv_stress_parameter._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -802,6 +822,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.eqv_stress_parameter()
+ >>> 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 OutputsEqvStressParameter(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py b/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py
index e7f90a864f2..dfd4f711489 100644
--- a/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py
+++ b/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py
@@ -154,6 +154,8 @@ class gasket_inelastic_closure(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
-------
@@ -187,6 +189,8 @@ class gasket_inelastic_closure(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.gasket_inelastic_closure(
@@ -200,6 +204,7 @@ class gasket_inelastic_closure(Operator):
... requested_location=my_requested_location,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
+ ... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )
>>> # Get output data
@@ -218,6 +223,7 @@ def __init__(
requested_location=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -244,6 +250,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:
@@ -432,6 +440,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(
@@ -516,6 +530,8 @@ class InputsGasketInelasticClosure(_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):
@@ -558,6 +574,10 @@ def __init__(self, op: Operator):
gasket_inelastic_closure._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ gasket_inelastic_closure._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -769,6 +789,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.gasket_inelastic_closure()
+ >>> 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 OutputsGasketInelasticClosure(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/gasket_stress.py b/src/ansys/dpf/core/operators/result/gasket_stress.py
index 57be4e77d5c..2e74925eb1a 100644
--- a/src/ansys/dpf/core/operators/result/gasket_stress.py
+++ b/src/ansys/dpf/core/operators/result/gasket_stress.py
@@ -154,6 +154,8 @@ class gasket_stress(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
-------
@@ -187,6 +189,8 @@ class gasket_stress(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.gasket_stress(
@@ -200,6 +204,7 @@ class gasket_stress(Operator):
... requested_location=my_requested_location,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
+ ... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )
>>> # Get output data
@@ -218,6 +223,7 @@ def __init__(
requested_location=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -244,6 +250,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:
@@ -432,6 +440,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(
@@ -516,6 +530,8 @@ class InputsGasketStress(_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):
@@ -542,6 +558,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(gasket_stress._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ gasket_stress._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -753,6 +773,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.gasket_stress()
+ >>> 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 OutputsGasketStress(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py b/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py
index 1ae39f67898..33e39a10644 100644
--- a/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py
+++ b/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py
@@ -154,6 +154,8 @@ class gasket_thermal_closure(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
-------
@@ -187,6 +189,8 @@ class gasket_thermal_closure(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.gasket_thermal_closure(
@@ -200,6 +204,7 @@ class gasket_thermal_closure(Operator):
... requested_location=my_requested_location,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
+ ... extend_to_mid_nodes=my_extend_to_mid_nodes,
... )
>>> # Get output data
@@ -218,6 +223,7 @@ def __init__(
requested_location=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -244,6 +250,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:
@@ -432,6 +440,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(
@@ -516,6 +530,8 @@ class InputsGasketThermalClosure(_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):
@@ -558,6 +574,10 @@ def __init__(self, op: Operator):
gasket_thermal_closure._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ gasket_thermal_closure._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -769,6 +789,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.gasket_thermal_closure()
+ >>> 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 OutputsGasketThermalClosure(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/heat_flux.py b/src/ansys/dpf/core/operators/result/heat_flux.py
index a6f7ae4b1d6..b029b6be080 100644
--- a/src/ansys/dpf/core/operators/result/heat_flux.py
+++ b/src/ansys/dpf/core/operators/result/heat_flux.py
@@ -164,6 +164,8 @@ class heat_flux(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
-------
@@ -207,6 +209,8 @@ class heat_flux(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.heat_flux(
@@ -225,6 +229,7 @@ class heat_flux(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsHeatFlux(_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):
@@ -632,6 +648,8 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(heat_flux._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(heat_flux._spec().input_pin(28), 28, op, -1)
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -948,6 +966,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.heat_flux()
+ >>> 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 OutputsHeatFlux(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py b/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py
index bb4a322ceaa..d02d133aee5 100644
--- a/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py
+++ b/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py
@@ -156,6 +156,8 @@ class hydrostatic_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
-------
@@ -191,6 +193,8 @@ class hydrostatic_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.hydrostatic_pressure(
@@ -205,6 +209,7 @@ class hydrostatic_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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsHydrostaticPressure(_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):
@@ -570,6 +586,10 @@ def __init__(self, op: Operator):
hydrostatic_pressure._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ hydrostatic_pressure._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -802,6 +822,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.hydrostatic_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 OutputsHydrostaticPressure(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/magnetic_field.py b/src/ansys/dpf/core/operators/result/magnetic_field.py
index 71cfddf4ae4..c8c0f1cc48d 100644
--- a/src/ansys/dpf/core/operators/result/magnetic_field.py
+++ b/src/ansys/dpf/core/operators/result/magnetic_field.py
@@ -156,6 +156,8 @@ class magnetic_field(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
-------
@@ -191,6 +193,8 @@ class magnetic_field(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.magnetic_field(
@@ -205,6 +209,7 @@ class magnetic_field(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsMagneticField(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(magnetic_field._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ magnetic_field._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.magnetic_field()
+ >>> 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 OutputsMagneticField(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/magnetic_flux_density.py b/src/ansys/dpf/core/operators/result/magnetic_flux_density.py
index 475c95bffb1..08b9268b269 100644
--- a/src/ansys/dpf/core/operators/result/magnetic_flux_density.py
+++ b/src/ansys/dpf/core/operators/result/magnetic_flux_density.py
@@ -156,6 +156,8 @@ class magnetic_flux_density(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
-------
@@ -191,6 +193,8 @@ class magnetic_flux_density(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.magnetic_flux_density(
@@ -205,6 +209,7 @@ class magnetic_flux_density(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsMagneticFluxDensity(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
magnetic_flux_density._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ magnetic_flux_density._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -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.magnetic_flux_density()
+ >>> 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 OutputsMagneticFluxDensity(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/num_surface_status_changes.py b/src/ansys/dpf/core/operators/result/num_surface_status_changes.py
index 850485de90e..62c20152a07 100644
--- a/src/ansys/dpf/core/operators/result/num_surface_status_changes.py
+++ b/src/ansys/dpf/core/operators/result/num_surface_status_changes.py
@@ -164,6 +164,8 @@ class num_surface_status_changes(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
-------
@@ -207,6 +209,8 @@ class num_surface_status_changes(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.num_surface_status_changes(
@@ -225,6 +229,7 @@ class num_surface_status_changes(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsNumSurfaceStatusChanges(_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):
@@ -656,6 +672,10 @@ def __init__(self, op: Operator):
num_surface_status_changes._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ num_surface_status_changes._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -972,6 +992,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.num_surface_status_changes()
+ >>> 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 OutputsNumSurfaceStatusChanges(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/plastic_state_variable.py b/src/ansys/dpf/core/operators/result/plastic_state_variable.py
index e29332399bb..adf8c633c61 100644
--- a/src/ansys/dpf/core/operators/result/plastic_state_variable.py
+++ b/src/ansys/dpf/core/operators/result/plastic_state_variable.py
@@ -156,6 +156,8 @@ class plastic_state_variable(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
-------
@@ -191,6 +193,8 @@ class plastic_state_variable(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.plastic_state_variable(
@@ -205,6 +209,7 @@ class plastic_state_variable(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsPlasticStateVariable(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
plastic_state_variable._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ plastic_state_variable._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -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.plastic_state_variable()
+ >>> 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 OutputsPlasticStateVariable(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/plastic_strain.py b/src/ansys/dpf/core/operators/result/plastic_strain.py
index 37d23532360..542ac347cfb 100644
--- a/src/ansys/dpf/core/operators/result/plastic_strain.py
+++ b/src/ansys/dpf/core/operators/result/plastic_strain.py
@@ -156,6 +156,8 @@ class 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
-------
@@ -191,6 +193,8 @@ class 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.plastic_strain(
@@ -205,6 +209,7 @@ class 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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsPlasticStrain(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(plastic_strain._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ plastic_strain._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.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 OutputsPlasticStrain(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py b/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py
index 0e0b2dbb8b6..431751c0dfe 100644
--- a/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py
+++ b/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py
@@ -156,6 +156,8 @@ class plastic_strain_energy_density(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
-------
@@ -191,6 +193,8 @@ class plastic_strain_energy_density(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.plastic_strain_energy_density(
@@ -205,6 +209,7 @@ class plastic_strain_energy_density(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsPlasticStrainEnergyDensity(_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):
@@ -580,6 +596,10 @@ def __init__(self, op: Operator):
plastic_strain_energy_density._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ plastic_strain_energy_density._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -812,6 +832,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.plastic_strain_energy_density()
+ >>> 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 OutputsPlasticStrainEnergyDensity(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py b/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py
index acb261ed8a8..bc6d8df75f0 100644
--- a/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py
+++ b/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py
@@ -156,6 +156,8 @@ class plastic_strain_eqv(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
-------
@@ -191,6 +193,8 @@ class plastic_strain_eqv(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.plastic_strain_eqv(
@@ -205,6 +209,7 @@ class plastic_strain_eqv(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsPlasticStrainEqv(_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):
@@ -566,6 +582,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(plastic_strain_eqv._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ plastic_strain_eqv._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -798,6 +818,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.plastic_strain_eqv()
+ >>> 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 OutputsPlasticStrainEqv(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/state_variable.py b/src/ansys/dpf/core/operators/result/state_variable.py
index c00c4342c5a..100b6dddeac 100644
--- a/src/ansys/dpf/core/operators/result/state_variable.py
+++ b/src/ansys/dpf/core/operators/result/state_variable.py
@@ -158,6 +158,8 @@ class state_variable(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
-------
@@ -195,6 +197,8 @@ class state_variable(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.state_variable(
@@ -210,6 +214,7 @@ class state_variable(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
@@ -230,6 +235,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -260,6 +266,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:
@@ -460,6 +468,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(
@@ -548,6 +562,8 @@ class InputsStateVariable(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(state_variable._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ state_variable._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -831,6 +851,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.state_variable()
+ >>> 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 OutputsStateVariable(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/stress.py b/src/ansys/dpf/core/operators/result/stress.py
index 74b4ccec9b0..b7121a2f100 100644
--- a/src/ansys/dpf/core/operators/result/stress.py
+++ b/src/ansys/dpf/core/operators/result/stress.py
@@ -164,6 +164,8 @@ class stress(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
-------
@@ -207,6 +209,8 @@ class stress(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.stress(
@@ -225,6 +229,7 @@ class stress(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
@@ -248,6 +253,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -596,6 +610,8 @@ class InputsStress(_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):
@@ -630,6 +646,8 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(stress._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(stress._spec().input_pin(28), 28, op, -1)
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -946,6 +964,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.stress()
+ >>> 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 OutputsStress(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/stress_ratio.py b/src/ansys/dpf/core/operators/result/stress_ratio.py
index 4516fb4bf01..35ab1cb1290 100644
--- a/src/ansys/dpf/core/operators/result/stress_ratio.py
+++ b/src/ansys/dpf/core/operators/result/stress_ratio.py
@@ -156,6 +156,8 @@ class stress_ratio(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
-------
@@ -191,6 +193,8 @@ class stress_ratio(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.stress_ratio(
@@ -205,6 +209,7 @@ class stress_ratio(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsStressRatio(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(stress_ratio._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ stress_ratio._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.stress_ratio()
+ >>> 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 OutputsStressRatio(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/structural_temperature.py b/src/ansys/dpf/core/operators/result/structural_temperature.py
index f2dd0f46305..08db7f201c4 100644
--- a/src/ansys/dpf/core/operators/result/structural_temperature.py
+++ b/src/ansys/dpf/core/operators/result/structural_temperature.py
@@ -156,6 +156,8 @@ class structural_temperature(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
-------
@@ -191,6 +193,8 @@ class structural_temperature(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.structural_temperature(
@@ -205,6 +209,7 @@ class structural_temperature(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsStructuralTemperature(_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):
@@ -578,6 +594,10 @@ def __init__(self, op: Operator):
structural_temperature._spec().input_pin(27), 27, op, -1
)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ structural_temperature._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -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.structural_temperature()
+ >>> 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 OutputsStructuralTemperature(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/swelling_strains.py b/src/ansys/dpf/core/operators/result/swelling_strains.py
index 2d23887eac6..b6cb7129194 100644
--- a/src/ansys/dpf/core/operators/result/swelling_strains.py
+++ b/src/ansys/dpf/core/operators/result/swelling_strains.py
@@ -156,6 +156,8 @@ class swelling_strains(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
-------
@@ -191,6 +193,8 @@ class swelling_strains(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.swelling_strains(
@@ -205,6 +209,7 @@ class swelling_strains(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsSwellingStrains(_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):
@@ -564,6 +580,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(swelling_strains._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ swelling_strains._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -796,6 +816,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.swelling_strains()
+ >>> 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 OutputsSwellingStrains(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/temperature_grad.py b/src/ansys/dpf/core/operators/result/temperature_grad.py
index bc8be7b6d6c..3c25df39e54 100644
--- a/src/ansys/dpf/core/operators/result/temperature_grad.py
+++ b/src/ansys/dpf/core/operators/result/temperature_grad.py
@@ -156,6 +156,8 @@ class temperature_grad(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
-------
@@ -191,6 +193,8 @@ class temperature_grad(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.temperature_grad(
@@ -205,6 +209,7 @@ class temperature_grad(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsTemperatureGrad(_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):
@@ -564,6 +580,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(temperature_grad._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ temperature_grad._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -796,6 +816,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.temperature_grad()
+ >>> 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 OutputsTemperatureGrad(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/thermal_strain.py b/src/ansys/dpf/core/operators/result/thermal_strain.py
index 29047b08a33..3c262167d2a 100644
--- a/src/ansys/dpf/core/operators/result/thermal_strain.py
+++ b/src/ansys/dpf/core/operators/result/thermal_strain.py
@@ -156,6 +156,8 @@ class thermal_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
-------
@@ -191,6 +193,8 @@ class thermal_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.thermal_strain(
@@ -205,6 +209,7 @@ class thermal_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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsThermalStrain(_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):
@@ -560,6 +576,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(thermal_strain._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ thermal_strain._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -792,6 +812,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.thermal_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 OutputsThermalStrain(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py b/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py
index 907d14f3e6b..1e3b4c0cd8c 100644
--- a/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py
+++ b/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py
@@ -156,6 +156,8 @@ class thermal_strains_eqv(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
-------
@@ -191,6 +193,8 @@ class thermal_strains_eqv(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.thermal_strains_eqv(
@@ -205,6 +209,7 @@ class thermal_strains_eqv(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
@@ -224,6 +229,7 @@ def __init__(
read_beams=None,
split_shells=None,
shell_layer=None,
+ extend_to_mid_nodes=None,
config=None,
server=None,
):
@@ -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:
@@ -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(
@@ -532,6 +546,8 @@ class InputsThermalStrainsEqv(_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):
@@ -568,6 +584,10 @@ def __init__(self, op: Operator):
self._inputs.append(self._split_shells)
self._shell_layer = Input(thermal_strains_eqv._spec().input_pin(27), 27, op, -1)
self._inputs.append(self._shell_layer)
+ self._extend_to_mid_nodes = Input(
+ thermal_strains_eqv._spec().input_pin(28), 28, op, -1
+ )
+ self._inputs.append(self._extend_to_mid_nodes)
@property
def time_scoping(self) -> Input:
@@ -800,6 +820,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.thermal_strains_eqv()
+ >>> 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 OutputsThermalStrainsEqv(_Outputs):
"""Intermediate class used to get outputs from
diff --git a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll
index 89423c408b5..1631a20dda9 100644
Binary files a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll and b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll differ
diff --git a/src/ansys/dpf/gatebin/DPFClientAPI.dll b/src/ansys/dpf/gatebin/DPFClientAPI.dll
index 8ea0a80caed..deac14dd994 100644
Binary files a/src/ansys/dpf/gatebin/DPFClientAPI.dll and b/src/ansys/dpf/gatebin/DPFClientAPI.dll differ
diff --git a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so
index e1c8bb5066e..b4fba0ce436 100644
Binary files a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so and b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so differ