Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 110 additions & 93 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

33 changes: 15 additions & 18 deletions src/ansys/dpf/core/operators/mapping/solid_to_skin_fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@


class solid_to_skin_fc(Operator):
r"""Maps a field defined on solid elements to a field defined on skin
elements. Three cases are possible, based on the solid field data
location; (i) Elemental: The values associated with the solid elements
are copied according to those underlying the skin, (ii) Nodal: The solid
field is rescoped with respect to the nodes of the skin mesh, (iii)
ElementalNodal: The values are copied from the solid mesh to the skin
mesh for each element face and the nodes associated with it.
r"""Maps a fields container defined on solid elements to a fields container
defined on skin elements. Three cases are possible, based on the solid
field data location; (i) Elemental: The values associated with the solid
elements are copied according to those underlying the skin, (ii) Nodal:
The solid field is rescoped with respect to the nodes of the skin mesh,
(iii) ElementalNodal: The values are copied from the solid mesh to the
skin mesh for each element face and the nodes associated with it.


Parameters
----------
fields_container: FieldsContainer
field or fields container with only one field is expected
mesh: MeshedRegion
skin mesh region expected
solid_mesh: MeshedRegion, optional
Expand Down Expand Up @@ -84,13 +83,13 @@ def __init__(

@staticmethod
def _spec() -> Specification:
description = r"""Maps a field defined on solid elements to a field defined on skin
elements. Three cases are possible, based on the solid field data
location; (i) Elemental: The values associated with the solid elements
are copied according to those underlying the skin, (ii) Nodal: The solid
field is rescoped with respect to the nodes of the skin mesh, (iii)
ElementalNodal: The values are copied from the solid mesh to the skin
mesh for each element face and the nodes associated with it.
description = r"""Maps a fields container defined on solid elements to a fields container
defined on skin elements. Three cases are possible, based on the solid
field data location; (i) Elemental: The values associated with the solid
elements are copied according to those underlying the skin, (ii) Nodal:
The solid field is rescoped with respect to the nodes of the skin mesh,
(iii) ElementalNodal: The values are copied from the solid mesh to the
skin mesh for each element face and the nodes associated with it.
"""
spec = Specification(
description=description,
Expand All @@ -99,7 +98,7 @@ def _spec() -> Specification:
name="fields_container",
type_names=["fields_container"],
optional=False,
document=r"""field or fields container with only one field is expected""",
document=r"""""",
),
1: PinSpecification(
name="mesh",
Expand Down Expand Up @@ -198,8 +197,6 @@ def __init__(self, op: Operator):
def fields_container(self) -> Input:
r"""Allows to connect fields_container input to the operator.

field or fields container with only one field is expected

Returns
-------
input:
Expand Down
11 changes: 7 additions & 4 deletions src/ansys/dpf/core/operators/result/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,17 @@
from .members_in_compression_not_certified import members_in_compression_not_certified
from .members_in_linear_compression_bending_not_certified import members_in_linear_compression_bending_not_certified
from .migrate_to_h5dpf import migrate_to_h5dpf
from .modal_acceleration import modal_acceleration
from .modal_basis import modal_basis
from .modal_coordinate import modal_coordinate
from .modal_velocity import modal_velocity
from .nmisc import nmisc
from .nodal_force import nodal_force
from .nodal_moment import nodal_moment
from .nodal_rotation import nodal_rotation
from .nodal_rotation_X import nodal_rotation_X
from .nodal_rotation_Y import nodal_rotation_Y
from .nodal_rotation_Z import nodal_rotation_Z
from .nodal_rotational_acceleration import nodal_rotational_acceleration
from .nodal_rotational_acceleration_X import nodal_rotational_acceleration_X
from .nodal_rotational_acceleration_Y import nodal_rotational_acceleration_Y
Expand All @@ -226,10 +233,6 @@
from .nodal_rotational_velocity_X import nodal_rotational_velocity_X
from .nodal_rotational_velocity_Y import nodal_rotational_velocity_Y
from .nodal_rotational_velocity_Z import nodal_rotational_velocity_Z
from .nodal_rotations import nodal_rotations
from .nodal_rotations_X import nodal_rotations_X
from .nodal_rotations_Y import nodal_rotations_Y
from .nodal_rotations_Z import nodal_rotations_Z
from .nodal_to_global import nodal_to_global
from .normal_contact_force import normal_contact_force
from .normal_contact_moment import normal_contact_moment
Expand Down
41 changes: 0 additions & 41 deletions src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ class gasket_inelastic_closure(Operator):
prevents from reading the mesh in the result files
requested_location: str, optional
requested location Nodal, Elemental or ElementalNodal
read_beams: bool, optional
elemental nodal beam results are read if this pin is set to true (default is false)
split_shells: bool, optional
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
Expand Down Expand Up @@ -185,8 +183,6 @@ class gasket_inelastic_closure(Operator):
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
>>> op.inputs.requested_location.connect(my_requested_location)
>>> my_read_beams = bool()
>>> op.inputs.read_beams.connect(my_read_beams)
>>> my_split_shells = bool()
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
Expand All @@ -202,7 +198,6 @@ class gasket_inelastic_closure(Operator):
... bool_rotate_to_global=my_bool_rotate_to_global,
... mesh=my_mesh,
... requested_location=my_requested_location,
... read_beams=my_read_beams,
... split_shells=my_split_shells,
... shell_layer=my_shell_layer,
... )
Expand All @@ -221,7 +216,6 @@ def __init__(
bool_rotate_to_global=None,
mesh=None,
requested_location=None,
read_beams=None,
split_shells=None,
shell_layer=None,
config=None,
Expand All @@ -246,8 +240,6 @@ def __init__(
self.inputs.mesh.connect(mesh)
if requested_location is not None:
self.inputs.requested_location.connect(requested_location)
if read_beams is not None:
self.inputs.read_beams.connect(read_beams)
if split_shells is not None:
self.inputs.split_shells.connect(split_shells)
if shell_layer is not None:
Expand Down Expand Up @@ -428,12 +420,6 @@ def _spec() -> Specification:
optional=True,
document=r"""requested location Nodal, Elemental or ElementalNodal""",
),
22: PinSpecification(
name="read_beams",
type_names=["bool"],
optional=True,
document=r"""elemental nodal beam results are read if this pin is set to true (default is false)""",
),
26: PinSpecification(
name="split_shells",
type_names=["bool"],
Expand Down Expand Up @@ -526,8 +512,6 @@ class InputsGasketInelasticClosure(_Inputs):
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
>>> op.inputs.requested_location.connect(my_requested_location)
>>> my_read_beams = bool()
>>> op.inputs.read_beams.connect(my_read_beams)
>>> my_split_shells = bool()
>>> op.inputs.split_shells.connect(my_split_shells)
>>> my_shell_layer = int()
Expand Down Expand Up @@ -566,10 +550,6 @@ def __init__(self, op: Operator):
gasket_inelastic_closure._spec().input_pin(9), 9, op, -1
)
self._inputs.append(self._requested_location)
self._read_beams = Input(
gasket_inelastic_closure._spec().input_pin(22), 22, op, -1
)
self._inputs.append(self._read_beams)
self._split_shells = Input(
gasket_inelastic_closure._spec().input_pin(26), 26, op, -1
)
Expand Down Expand Up @@ -747,27 +727,6 @@ def requested_location(self) -> Input:
"""
return self._requested_location

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

elemental nodal beam results are read if this pin is set to true (default is false)

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.read_beams.connect(my_read_beams)
>>> # or
>>> op.inputs.read_beams(my_read_beams)
"""
return self._read_beams

@property
def split_shells(self) -> Input:
r"""Allows to connect split_shells input to the operator.
Expand Down
41 changes: 0 additions & 41 deletions src/ansys/dpf/core/operators/result/gasket_inelastic_closure_X.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class gasket_inelastic_closure_X(Operator):
requested location, default is Nodal
read_cyclic: int, optional
if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1)
read_beams: bool, optional
elemental nodal beam results are read if this pin is set to true (default is false)

Returns
-------
Expand Down Expand Up @@ -75,8 +73,6 @@ class gasket_inelastic_closure_X(Operator):
>>> op.inputs.requested_location.connect(my_requested_location)
>>> my_read_cyclic = int()
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
>>> my_read_beams = bool()
>>> op.inputs.read_beams.connect(my_read_beams)

>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.result.gasket_inelastic_closure_X(
Expand All @@ -89,7 +85,6 @@ class gasket_inelastic_closure_X(Operator):
... mesh=my_mesh,
... requested_location=my_requested_location,
... read_cyclic=my_read_cyclic,
... read_beams=my_read_beams,
... )

>>> # Get output data
Expand All @@ -107,7 +102,6 @@ def __init__(
mesh=None,
requested_location=None,
read_cyclic=None,
read_beams=None,
config=None,
server=None,
):
Expand All @@ -132,8 +126,6 @@ def __init__(
self.inputs.requested_location.connect(requested_location)
if read_cyclic is not None:
self.inputs.read_cyclic.connect(read_cyclic)
if read_beams is not None:
self.inputs.read_beams.connect(read_beams)

@staticmethod
def _spec() -> Specification:
Expand Down Expand Up @@ -206,12 +198,6 @@ def _spec() -> Specification:
optional=True,
document=r"""if 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1)""",
),
22: PinSpecification(
name="read_beams",
type_names=["bool"],
optional=True,
document=r"""elemental nodal beam results are read if this pin is set to true (default is false)""",
),
},
map_output_pin_spec={
0: PinSpecification(
Expand Down Expand Up @@ -294,8 +280,6 @@ class InputsGasketInelasticClosureX(_Inputs):
>>> op.inputs.requested_location.connect(my_requested_location)
>>> my_read_cyclic = int()
>>> op.inputs.read_cyclic.connect(my_read_cyclic)
>>> my_read_beams = bool()
>>> op.inputs.read_beams.connect(my_read_beams)
"""

def __init__(self, op: Operator):
Expand Down Expand Up @@ -334,10 +318,6 @@ def __init__(self, op: Operator):
gasket_inelastic_closure_X._spec().input_pin(14), 14, op, -1
)
self._inputs.append(self._read_cyclic)
self._read_beams = Input(
gasket_inelastic_closure_X._spec().input_pin(22), 22, op, -1
)
self._inputs.append(self._read_beams)

@property
def time_scoping(self) -> Input:
Expand Down Expand Up @@ -528,27 +508,6 @@ def read_cyclic(self) -> Input:
"""
return self._read_cyclic

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

elemental nodal beam results are read if this pin is set to true (default is false)

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

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.gasket_inelastic_closure_X()
>>> op.inputs.read_beams.connect(my_read_beams)
>>> # or
>>> op.inputs.read_beams(my_read_beams)
"""
return self._read_beams


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