Skip to content

Unclear code snippet in lsdyna example #2248

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

Open
PProfizi opened this issue Apr 30, 2025 · 0 comments
Open

Unclear code snippet in lsdyna example #2248

PProfizi opened this issue Apr 30, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@PProfizi
Copy link
Contributor

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

@PProfizi PProfizi added the documentation Improvements or additions to documentation label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant