Skip to content

Error when using simulation.displacement() to get displacement from modal simulation #341

Open
@MDemenois

Description

@MDemenois

I am trying to extract the displacement from a modal analysis for specific modes.

I am using the following code from the examples:

from ansys.dpf import post
resultFile = 'pathToMyResultFile
simulation = post.load_simulation(resultFile)
displacelementMode5 = simulation.displacement(modes=[5])

This code gives me the following error: DpfVersionNotSupported: called from connect_with

I am using Python 3.10.9 in a virtual environment on Windows with 2021R2, ansys-dpf-core 0.7.4 and ansys-dpf-post 0.3.0.

I also tried:
displacementEveryModes = simulation.displacement()

Or:
displacementNamedSelection = simulation.displacement(named_selections=['namedSelection'])

And I got the same error. I also have the same error when trying:
stressMode5 = simulation.stress(modes = [5])

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions