Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for DPF 242_test on master #1351

Merged
merged 1 commit into from
Jan 18, 2024
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
12 changes: 6 additions & 6 deletions doc/source/_static/dpf_operators.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/ansys/dpf/core/operators/result/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
from .mach_number import mach_number
from .mapdl_material_properties import mapdl_material_properties
from .mapdl_section import mapdl_section
from .mapdl_split_on_facet_indices import mapdl_split_on_facet_indices
from .mass_flow_rate import mass_flow_rate
from .mass_fraction import mass_fraction
from .material_property_of_element import material_property_of_element
Expand All @@ -172,7 +173,6 @@
from .nmisc import nmisc
from .nodal_force import nodal_force
from .nodal_moment import nodal_moment
from .nodal_rotation_by_euler_nodes import nodal_rotation_by_euler_nodes
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 Expand Up @@ -216,6 +216,7 @@
from .remove_rigid_body_motion import remove_rigid_body_motion
from .remove_rigid_body_motion_fc import remove_rigid_body_motion_fc
from .rigid_transformation import rigid_transformation
from .rigid_transformation_provider import rigid_transformation_provider
from .rms_static_pressure import rms_static_pressure
from .rms_temperature import rms_temperature
from .rms_velocity import rms_velocity
Expand Down
46 changes: 18 additions & 28 deletions src/ansys/dpf/core/operators/result/euler_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@


class euler_nodes(Operator):
"""read a field made of 3 coordinates and 3 Euler angles (6 dofs) by node
from the rst file.
"""Reads a field made of 3 coordinates and 3 Euler angles (6 dofs) by
node from the result file.

Parameters
----------
streams_container : StreamsContainer or Stream or Class
Dataprocessing::Crstfilewrapper, optional
streams_container : StreamsContainer or Stream, optional
data_sources : DataSources
coord_and_euler : bool
If true, then the field has ncomp=6 with 3
oords and 3 euler angles, else there
is only the euler angles (default is
true)
coordinates and 3 euler angles, else
there is only the euler angles
(default is true).
mesh : MeshedRegion, optional


Expand Down Expand Up @@ -65,9 +64,7 @@ def __init__(
config=None,
server=None,
):
super().__init__(
name="mapdl::rst::coords_and_euler_nodes", config=config, server=server
)
super().__init__(name="coords_and_euler_nodes", config=config, server=server)
self._inputs = InputsEulerNodes(self)
self._outputs = OutputsEulerNodes(self)
if streams_container is not None:
Expand All @@ -81,18 +78,14 @@ def __init__(

@staticmethod
def _spec():
description = """read a field made of 3 coordinates and 3 Euler angles (6 dofs) by node
from the rst file."""
description = """Reads a field made of 3 coordinates and 3 Euler angles (6 dofs) by
node from the result file."""
spec = Specification(
description=description,
map_input_pin_spec={
3: PinSpecification(
name="streams_container",
type_names=[
"streams_container",
"stream",
"class dataProcessing::CRstFileWrapper",
],
type_names=["streams_container", "stream"],
optional=True,
document="""""",
),
Expand All @@ -107,9 +100,9 @@ def _spec():
type_names=["bool"],
optional=False,
document="""If true, then the field has ncomp=6 with 3
oords and 3 euler angles, else there
is only the euler angles (default is
true)""",
coordinates and 3 euler angles, else
there is only the euler angles
(default is true).""",
),
7: PinSpecification(
name="mesh",
Expand Down Expand Up @@ -143,9 +136,7 @@ def default_config(server=None):
Server with channel connected to the remote or local instance. When
``None``, attempts to use the global server.
"""
return Operator.default_config(
name="mapdl::rst::coords_and_euler_nodes", server=server
)
return Operator.default_config(name="coords_and_euler_nodes", server=server)

@property
def inputs(self):
Expand Down Expand Up @@ -203,8 +194,7 @@ def streams_container(self):

Parameters
----------
my_streams_container : StreamsContainer or Stream or Class
Dataprocessing::Crstfilewrapper
my_streams_container : StreamsContainer or Stream

Examples
--------
Expand Down Expand Up @@ -239,9 +229,9 @@ def coord_and_euler(self):
"""Allows to connect coord_and_euler input to the operator.

If true, then the field has ncomp=6 with 3
oords and 3 euler angles, else there
is only the euler angles (default is
true)
coordinates and 3 euler angles, else
there is only the euler angles
(default is true).

Parameters
----------
Expand Down
Loading
Loading