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

The Trame visualizer for ansys.dyna.core.pre.model.Model does not work #415

Open
2 tasks done
yurynovozhilov opened this issue Apr 3, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@yurynovozhilov
Copy link

yurynovozhilov commented Apr 3, 2024

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

My code is a modification from the standard "Ball plate" example. The use_trame=True option in Graphics(mymodel, use_trame=True) from ansys.dyna.core.pre.graphics.graphics gives an error TypeError: Server using client_type='vue3' while we expect 'vue2'. See code sample in steps to reproduce

📝 Steps to reproduce

import os
import sys

from ansys.dyna.core.pre import launch_dynapre, DynaSolution
from ansys.dyna.core.pre.dynamech import (
    DynaMech,
    Velocity,
    PartSet,
    ShellPart,
    SolidPart,
    NodeSet,
    Contact,
    ContactSurface,
    ShellFormulation,
    SolidFormulation,
    ContactType,
    AnalysisType
)

from ansys.dyna.core.pre.dynamaterial import (
    MatRigid,
    MatPiecewiseLinearPlasticity,
)

from ansys.dyna.core.pre.graphics.graphics import Graphics
from ansys.dyna.core.pre.model import Model
from ansys.dyna.core.pre import examples
from ansys.dyna.core.pre.misc import check_valid_ip
from ansys.dyna.core.pre import graphics

hostname = "localhost"
if len(sys.argv) > 1 and check_valid_ip(sys.argv[1]):
    hostname = sys.argv[1]
solution = launch_dynapre(ip = hostname)

fns = []
path = examples.ball_plate + os.sep
fns.append(path+"ball_plate.k")
solution.open_files(fns)

mymodel=Model(solution.stub)
graph = Graphics(mymodel, use_trame=True)

graph()

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Ansys 2024r1
PyAnsys Metapackege 2024.1.7

🐍 Which Python version are you using?

3.10

📦 Installed packages

aiohttp==3.9.3
aiosignal==1.3.1
annotated-types==0.6.0
ansys-additive-core==0.17.2
ansys-api-additive==1.4.1
ansys-api-dbu==0.2.5
ansys-api-dyna==0.3.6
ansys-api-edb==1.0.1
ansys-api-fluent==0.3.22
ansys-api-geometry==0.3.8
ansys-api-mapdl==0.5.1
ansys-api-mechanical==0.1.1
ansys-api-meshing-prime==0.1.2
ansys-api-platform-instancemanagement==1.0.0
ansys-api-pyensight==0.3.7
ansys-api-sherlock==0.1.22
ansys-api-systemcoupling==0.1.0
ansys-dpf-composites==0.4.0
ansys-dpf-core==0.10.1
ansys-dpf-gate==0.4.1
ansys-dpf-gatebin==0.4.1
ansys-dpf-post==0.6.0
ansys-dyna-core==0.4.13
ansys-dynamicreporting-core==0.5.1
ansys-edb-core==0.1.3
ansys-fluent-core==0.19.2
ansys-geometry-core==0.4.11
ansys-grantami-bomanalytics==2.0.0
ansys-grantami-bomanalytics-openapi==2.0.0
ansys-grantami-recordlists==1.1.0
ansys-grantami-serverapi-openapi==2.0.0
ansys-grpc-dpf==0.8.1
ansys-hps-client==0.7.1
ansys-mapdl-core==0.67.0
ansys-mapdl-reader==0.53.0
ansys-math-core==0.1.3
ansys-mechanical-core==0.10.8
ansys-mechanical-env==0.1.4
ansys-meshing-prime==0.5.1
ansys-motorcad-core==0.4.3
ansys-openapi-common==1.5.1
ansys-optislang-core==0.6.3
ansys-platform-instancemanagement==1.1.2
ansys-pyensight-core==0.7.8
ansys-pythonnet==3.1.0rc3
ansys-rocky-core==0.1.0
ansys-seascape==0.2.0
ansys-sherlock-core==0.4.0
ansys-simai-core==0.1.4
ansys-systemcoupling-core==0.4.1
ansys-tools-path==0.4.1
ansys-turbogrid-api==0.4.0
ansys-turbogrid-core==0.4.0
anyio==4.3.0
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asgiref==3.8.1
asttokens==2.4.1
async-lru==2.0.4
async-timeout==4.0.3
attrs==23.2.0
Babel==2.14.0
backoff==2.2.1
bcrypt==4.1.2
beartype==0.17.2
beautifulsoup4==4.12.3
bleach==6.1.0
bokeh==3.4.0
build==1.2.1
cachetools==5.3.3
certifi==2024.2.2
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
clr-loader==0.2.6
colorama==0.4.6
comm==0.2.2
contourpy==1.2.0
cryptography==42.0.5
cycler==0.12.1
debugpy==1.8.1
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.14
dill==0.3.8
Django==5.0.3
docker==7.0.0
docutils==0.20.1
ecdsa==0.18.0
elementpath==4.4.0
exceptiongroup==1.2.0
executing==2.0.1
fabric==3.2.2
fastjsonschema==2.19.1
filelock==3.13.3
fonttools==4.50.0
fpdf2==2.7.8
fqdn==1.5.1
frozenlist==1.4.1
geomdl==5.3.1
google-api-core==2.18.0
google-api-python-client==2.124.0
google-auth==2.29.0
google-auth-httplib2==0.2.0
googleapis-common-protos==1.63.0
grpcio==1.62.1
grpcio-health-checking==1.48.2
grpcio-status==1.48.2
h11==0.14.0
httpcore==1.0.5
httplib2==0.22.0
httpx==0.27.0
idna==3.6
importlib_metadata==7.1.0
invoke==2.2.0
ipykernel==6.29.4
ipython==8.22.2
ipywidgets==8.1.2
isoduration==20.11.0
jaraco.classes==3.3.1
jaraco.context==4.3.0
jaraco.functools==4.0.0
jedi==0.19.1
Jinja2==3.1.3
joblib==1.3.2
json5==0.9.24
jsonpointer==2.4
jsonschema==4.21.1
jsonschema-specifications==2023.12.1
jupyter==1.0.0
jupyter-console==6.6.3
jupyter-events==0.10.0
jupyter-lsp==2.2.4
jupyter_client==8.6.1
jupyter_core==5.7.2
jupyter_server==2.13.0
jupyter_server_terminals==0.5.3
jupyterlab==4.1.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.25.4
jupyterlab_widgets==3.0.10
keyring==25.0.0
kiwisolver==1.4.5
linkify-it-py==2.0.3
lxml==5.1.1
Markdown==3.6
markdown-it-py==3.0.0
MarkupSafe==2.1.5
marshmallow==3.21.1
marshmallow-oneofschema==3.1.1
matplotlib==3.8.3
matplotlib-inline==0.1.6
mdit-py-plugins==0.4.0
mdurl==0.1.2
mistune==3.0.2
more-itertools==10.2.0
mpld3==0.5.10
multidict==6.0.5
nbclient==0.10.0
nbconvert==7.16.3
nbformat==5.10.3
nest-asyncio==1.6.0
nh3==0.2.17
notebook==7.1.2
notebook_shim==0.2.4
numpy==1.26.4
overrides==7.7.0
packaging==24.0
pandas==2.2.1
pandocfilters==1.5.1
panel==1.4.0
param==2.1.0
paramiko==3.4.0
parso==0.8.3
pillow==10.2.0
Pint==0.23
pip-system-certs==4.0
pkginfo==1.10.0
platformdirs==4.2.0
plotly==5.20.0
plumbum==1.8.2
pooch==1.8.1
prometheus_client==0.20.0
prompt-toolkit==3.0.43
proto-plus==1.23.0
protobuf==3.20.3
psutil==5.9.8
pure-eval==0.2.2
pyaedt==0.7.10
pyansys==2024.1.7
pyansys-tools-versioning==0.5.0
pyasn1==0.6.0
pyasn1_modules==0.4.0
pycparser==2.21
pydantic==2.6.4
pydantic_core==2.16.3
Pygments==2.17.2
pygranta==2024.1.0
pyiges==0.3.1
PyNaCl==1.5.0
pyparsing==3.1.2
pypiwin32==223
pypng==0.20220715.0
pyproject_hooks==1.0.0
Pyro5==5.15
pyspnego==0.10.2
python-dateutil==2.9.0.post0
python-jose==3.3.0
python-json-logger==2.0.7
python-keycloak==2.0.0
pytwin==0.6.0
pytz==2024.1
pyvista==0.43.4
pyviz_comms==3.0.2
pywin32==306
pywin32-ctypes==0.2.2
pywinpty==2.0.13
PyYAML==6.0.1
pyzmq==25.1.2
qtconsole==5.5.1
QtPy==2.4.1
readme_renderer==43.0
referencing==0.34.0
requests==2.31.0
requests-negotiate-sspi==0.5.2
requests-ntlm==1.2.0
requests-toolbelt==1.0.0
rfc3339-validator==0.1.4
rfc3986==2.0.0
rfc3986-validator==0.1.1
rich==13.7.1
rpds-py==0.18.0
rpyc==5.3.1
rsa==4.9
scikit-learn==1.4.1.post1
scipy==1.12.0
scooby==0.9.2
semver==3.0.2
Send2Trash==1.8.2
serpent==1.41
six==1.16.0
sniffio==1.3.1
soupsieve==2.5
sqlparse==0.4.4
sseclient-py==1.8.0
sspilib==0.1.0
stack-data==0.6.3
tenacity==8.2.3
terminado==0.18.1
threadpoolctl==3.4.0
tinycss2==1.2.1
tomli==2.0.1
tornado==6.4
tqdm==4.66.2
traitlets==5.14.2
trame==3.5.4
trame-client==2.16.5
trame-components==2.2.1
trame-matplotlib==2.0.3
trame-server==2.17.2
trame-vtk==2.8.5
trame-vuetify==2.4.3
twine==5.0.0
types-python-dateutil==2.9.0.20240316
typing_extensions==4.10.0
tzdata==2024.1
uc-micro-py==1.0.3
uri-template==1.3.0
uritemplate==4.1.1
urllib3==1.26.18
vtk==9.3.0
wakepy==0.7.2
wcwidth==0.2.13
webcolors==1.13
webencodings==0.5.1
websocket-client==1.7.0
widgetsnbextension==4.0.10
wrapt==1.16.0
wslink==1.12.4
xmlschema==2.5.1
xyzservices==2023.10.1
yarl==1.9.4
zipp==3.18.1
@yurynovozhilov yurynovozhilov added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant