Skip to content

Unclear code snippet in lsdyna example #2248

Open
@PProfizi

Description

@PProfizi

Description of the modifications

See https://dpf.docs.pyansys.com/version/stable/examples/14-lsdyna/00-lsdyna_operators.html

the code snippets used to reorder the time axis data and the field data is unclear to users:

rescope_op = dpf.operators.scoping.rescope()
rescope_op.inputs.fields.connect(PKE.time_freq_support.time_frequencies)
rescope_op.inputs.mesh_scoping.connect(PKE[0].scoping)
t_field = rescope_op.outputs.fields_as_field()
t_vals = t_field.data

This needs to be reworked and clarified.

Useful links and references

https://dpf.docs.pyansys.com/version/stable/examples/14-lsdyna/00-lsdyna_operators.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions