Skip to content
Open
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
311 changes: 124 additions & 187 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@

ds = dpf.DataSources(files_rfrq[0])
response = ops.result.modal_coordinate(data_sources=ds)
response.inputs.mesh(merge_mesh.outputs.merges_mesh)

expansion = ops.math.modal_superposition(solution_in_modal_space=response, modal_basis=merge_fields)
component = ops.logic.component_selector_fc(expansion, 1)
Expand Down
41 changes: 0 additions & 41 deletions src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ class accu_eqv_creep_strain(Operator):
result file container allowed to be kept open to cache data
data_sources: DataSources
result file path container, used if no streams are set
bool_rotate_to_global: bool, optional
if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.
mesh: MeshedRegion or MeshesContainer, optional
prevents from reading the mesh in the result files
requested_location: str, optional
Expand Down Expand Up @@ -192,8 +190,6 @@ class accu_eqv_creep_strain(Operator):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
Expand All @@ -214,7 +210,6 @@ class accu_eqv_creep_strain(Operator):
... fields_container=my_fields_container,
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... mesh=my_mesh,
... requested_location=my_requested_location,
... read_beams=my_read_beams,
Expand All @@ -234,7 +229,6 @@ def __init__(
fields_container=None,
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
mesh=None,
requested_location=None,
read_beams=None,
Expand All @@ -261,8 +255,6 @@ def __init__(
self.inputs.streams_container.connect(streams_container)
if data_sources is not None:
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if mesh is not None:
self.inputs.mesh.connect(mesh)
if requested_location is not None:
Expand Down Expand Up @@ -433,12 +425,6 @@ def _spec() -> Specification:
optional=False,
document=r"""result file path container, used if no streams are set""",
),
5: PinSpecification(
name="bool_rotate_to_global",
type_names=["bool"],
optional=True,
document=r"""if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.""",
),
7: PinSpecification(
name="mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -549,8 +535,6 @@ class InputsAccuEqvCreepStrain(_Inputs):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
Expand Down Expand Up @@ -587,10 +571,6 @@ def __init__(self, op: Operator):
accu_eqv_creep_strain._spec().input_pin(4), 4, op, -1
)
self._inputs.append(self._data_sources)
self._bool_rotate_to_global: Input[bool] = Input(
accu_eqv_creep_strain._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._mesh: Input[MeshedRegion | MeshesContainer] = Input(
accu_eqv_creep_strain._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -721,27 +701,6 @@ def data_sources(self) -> Input[DataSources]:
"""
return self._data_sources

@property
def bool_rotate_to_global(self) -> Input[bool]:
r"""Allows to connect bool_rotate_to_global input to the operator.

if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.

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.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> # or
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
"""
return self._bool_rotate_to_global

@property
def mesh(self) -> Input[MeshedRegion | MeshesContainer]:
r"""Allows to connect mesh input to the operator.
Expand Down
41 changes: 0 additions & 41 deletions src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ class accu_eqv_plastic_strain(Operator):
result file container allowed to be kept open to cache data
data_sources: DataSources
result file path container, used if no streams are set
bool_rotate_to_global: bool, optional
if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.
mesh: MeshedRegion or MeshesContainer, optional
prevents from reading the mesh in the result files
requested_location: str, optional
Expand Down Expand Up @@ -192,8 +190,6 @@ class accu_eqv_plastic_strain(Operator):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
Expand All @@ -214,7 +210,6 @@ class accu_eqv_plastic_strain(Operator):
... fields_container=my_fields_container,
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... mesh=my_mesh,
... requested_location=my_requested_location,
... read_beams=my_read_beams,
Expand All @@ -234,7 +229,6 @@ def __init__(
fields_container=None,
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
mesh=None,
requested_location=None,
read_beams=None,
Expand All @@ -261,8 +255,6 @@ def __init__(
self.inputs.streams_container.connect(streams_container)
if data_sources is not None:
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if mesh is not None:
self.inputs.mesh.connect(mesh)
if requested_location is not None:
Expand Down Expand Up @@ -433,12 +425,6 @@ def _spec() -> Specification:
optional=False,
document=r"""result file path container, used if no streams are set""",
),
5: PinSpecification(
name="bool_rotate_to_global",
type_names=["bool"],
optional=True,
document=r"""if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.""",
),
7: PinSpecification(
name="mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -549,8 +535,6 @@ class InputsAccuEqvPlasticStrain(_Inputs):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
>>> my_requested_location = str()
Expand Down Expand Up @@ -587,10 +571,6 @@ def __init__(self, op: Operator):
accu_eqv_plastic_strain._spec().input_pin(4), 4, op, -1
)
self._inputs.append(self._data_sources)
self._bool_rotate_to_global: Input[bool] = Input(
accu_eqv_plastic_strain._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._mesh: Input[MeshedRegion | MeshesContainer] = Input(
accu_eqv_plastic_strain._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -721,27 +701,6 @@ def data_sources(self) -> Input[DataSources]:
"""
return self._data_sources

@property
def bool_rotate_to_global(self) -> Input[bool]:
r"""Allows to connect bool_rotate_to_global input to the operator.

if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.

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.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> # or
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
"""
return self._bool_rotate_to_global

@property
def mesh(self) -> Input[MeshedRegion | MeshesContainer]:
r"""Allows to connect mesh input to the operator.
Expand Down
41 changes: 0 additions & 41 deletions src/ansys/dpf/core/operators/result/acoustic_energy_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ class acoustic_energy_density(Operator):
result file container allowed to be kept open to cache data
data_sources: DataSources
result file path container, used if no streams are set
bool_rotate_to_global: bool, optional
if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.
mesh: MeshedRegion or MeshesContainer, optional
prevents from reading the mesh in the result files

Expand All @@ -69,8 +67,6 @@ class acoustic_energy_density(Operator):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)

Expand All @@ -81,7 +77,6 @@ class acoustic_energy_density(Operator):
... fields_container=my_fields_container,
... streams_container=my_streams_container,
... data_sources=my_data_sources,
... bool_rotate_to_global=my_bool_rotate_to_global,
... mesh=my_mesh,
... )

Expand All @@ -96,7 +91,6 @@ def __init__(
fields_container=None,
streams_container=None,
data_sources=None,
bool_rotate_to_global=None,
mesh=None,
config=None,
server=None,
Expand All @@ -118,8 +112,6 @@ def __init__(
self.inputs.streams_container.connect(streams_container)
if data_sources is not None:
self.inputs.data_sources.connect(data_sources)
if bool_rotate_to_global is not None:
self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global)
if mesh is not None:
self.inputs.mesh.connect(mesh)

Expand Down Expand Up @@ -167,12 +159,6 @@ def _spec() -> Specification:
optional=False,
document=r"""result file path container, used if no streams are set""",
),
5: PinSpecification(
name="bool_rotate_to_global",
type_names=["bool"],
optional=True,
document=r"""if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.""",
),
7: PinSpecification(
name="mesh",
type_names=["abstract_meshed_region", "meshes_container"],
Expand Down Expand Up @@ -253,8 +239,6 @@ class InputsAcousticEnergyDensity(_Inputs):
>>> op.inputs.streams_container.connect(my_streams_container)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> my_bool_rotate_to_global = bool()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> my_mesh = dpf.MeshedRegion()
>>> op.inputs.mesh.connect(my_mesh)
"""
Expand All @@ -281,10 +265,6 @@ def __init__(self, op: Operator):
acoustic_energy_density._spec().input_pin(4), 4, op, -1
)
self._inputs.append(self._data_sources)
self._bool_rotate_to_global: Input[bool] = Input(
acoustic_energy_density._spec().input_pin(5), 5, op, -1
)
self._inputs.append(self._bool_rotate_to_global)
self._mesh: Input[MeshedRegion | MeshesContainer] = Input(
acoustic_energy_density._spec().input_pin(7), 7, op, -1
)
Expand Down Expand Up @@ -395,27 +375,6 @@ def data_sources(self) -> Input[DataSources]:
"""
return self._data_sources

@property
def bool_rotate_to_global(self) -> Input[bool]:
r"""Allows to connect bool_rotate_to_global input to the operator.

if true the field is rotated to global coordinate system (default true). Please check your results carefully if 'false' is used for Elemental or ElementalNodal results averaged to the Nodes when adjacent elements do not share the same coordinate system, as results may be incorrect.

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

Examples
--------
>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.result.acoustic_energy_density()
>>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global)
>>> # or
>>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global)
"""
return self._bool_rotate_to_global

@property
def mesh(self) -> Input[MeshedRegion | MeshesContainer]:
r"""Allows to connect mesh input to the operator.
Expand Down
Loading
Loading