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

import_file in ansys.dyna.core *INITIAL_STRAIN_SHELL is not read correctly #656

Open
2 tasks done
dynadavid opened this issue Jan 6, 2025 · 0 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@dynadavid
Copy link

🔍 Before submitting the issue

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

🐞 Description of the bug

When reading a dynain with import_file the *INITIAL_STRAIN_SHELL is not read correctly. It is missing the strain cards (Card 2). It only reads the first card. But when NPLANE and NTHICK is empty or 0, then it will not read the Card 2.
From the Volume I Keyword we have following description:

When NPLANE and NTHICK are not defined or when the SET option is used, define
two cards below, one for the inner integration point and the other for the outer
integration point, respectively. Otherwise define NPLANE × NTHICK cards, one card
for each integration point.

📝 Steps to reproduce

01_DRAW_shell_quad_no_adaptivity_ip4_mini.txt

Please run following python code with the input from above:

from ansys.dyna.core.lib.deck import Deck
from ansys.dyna.core.keywords import keywords

my_dynain = Deck()

my_dynain.import_file('01_DRAW_shell_quad_no_adaptivity_ip4_mini.txt')

# Print *INITIAL_STRAIN_SHELL
# Reads only the first card of the Keywords. This is a special keywords:
# When NPLANE and NTHICK are not defined or when the SET option is used, define
# two cards below, one for the inner integration point and the other for the outer
# integration point, respectively. Otherwise define NPLANE × NTHICK cards, one card
# for each integration point.
len(my_dynain.keywords)
my_dynain.keywords[2]

It outputs following:

*INITIAL_STRAIN_SHELL
$#     eid    nplane    nthick     large    unused    unused    unused    ilocal
       331         0         0         0                                       0

       332         0         0         0                                       0

   4002306         0         0         0                                       0

   4002307         0         0         0                                       0

   4002346         0         0         0                                       0

   4002347         0         0         0                                       0

   4002348         0         0         0                                       0

   4008830         0         0         0                                       0

   4008831         0         0         0                                       0

   4008832         0         0         0                                       0

   4008834         0         0         0                                       0

   4008835         0         0         0                                       0

   4008836         0         0         0                                       0

       311         0         0         0                                       0

       312         0         0         0                                       0

   4002308         0         0         0                                       0

But I would expect also the the Strain values of the keyword:

*INITIAL_STRAIN_SHELL
$#     eid    nplane    nthick     large         -         -         -    ilocal
       331         0         0         0                                       0
$#   epsxx     epsyy     epszz     epsxy     epsyz     epszx         t
   0.02104  -0.02313  0.003291   0.014772.18100E-4-4.9330E-4       0.0
$#   epsxx     epsyy     epszz     epsxy     epsyz     epszx         t
   0.02037  -0.01921-5.4640E-4    0.01522.06900E-4-4.7640E-4       0.0
       332         0         0         0                                       0
   0.01931  -0.02107  0.003821   0.016777.65300E-4-1.9730E-4       0.0
   0.02061  -0.020942.11900E-4   0.017647.48300E-4-1.8230E-4       0.0
   4002306         0         0         0                                       0
   0.01808  -0.02053  0.004163    0.0174-2.3500E-4-8.3030E-4       0.0
   0.02114  -0.01978 -0.001264    0.0155-2.5490E-4-8.6600E-4       0.0
   4002307         0         0         0                                       0
   0.01746  -0.01941  0.001521   0.017314.28500E-4 -0.001211       0.0
   0.01537  -0.02172  0.008544   0.017534.56000E-4  -0.00109       0.0
   4002346         0         0         0                                       0
   0.02107  -0.02293  0.002616   0.016052.26400E-49.38700E-4       0.0
   0.02111  -0.02331  0.002813   0.016722.39100E-49.32400E-4       0.0
   4002347         0         0         0                                       0
   0.01818  -0.02789   0.00839   0.021084.64500E-4 -0.001327       0.0
   0.02344  -0.02237  0.001305   0.017483.63700E-4 -0.001267       0.0
   4002348         0         0         0                                       0
   0.01788  -0.02271  0.004938   0.01894-8.1220E-41.12500E-4       0.0
   0.02105  -0.02526  0.006375   0.01905-7.7440E-49.39300E-5       0.0
   4008830         0         0         0                                       0
   0.01933  -0.02777  0.008254   0.01924-5.5140E-4-1.1580E-4       0.0
   0.02182  -0.02254  0.002257   0.01597-6.0520E-4-5.9090E-5       0.0
   4008831         0         0         0                                       0
   0.01618  -0.03028   0.01253   0.022747.81600E-5-6.3920E-4       0.0
   0.02721  -0.02946  0.005235   0.018462.32400E-4-9.8690E-4       0.0
   4008832         0         0         0                                       0
   0.01489  -0.02973   0.01346   0.02171-5.4410E-4-5.9580E-4       0.0
   0.02466  -0.02389  0.002109    0.0184-4.3490E-4-9.9520E-4       0.0
   4008834         0         0         0                                       0
   0.01685  -0.02324  0.005083   0.01842 -0.001085 -0.001386       0.0
   0.02395   -0.0251  0.003661   0.02066 -0.001088 -0.001449       0.0
   4008835         0         0         0                                       0
   0.01645  -0.02858   0.01138      0.022.77300E-4-4.0420E-4       0.0
   0.01998   -0.0225  0.005068   0.017052.51100E-4-5.5780E-4       0.0
   4008836         0         0         0                                       0
   0.02039  -0.02369  0.002537   0.01785  0.002159 -0.002211       0.0
   0.01702  -0.02524   0.01115   0.01888  0.002237 -0.002042       0.0
       311         0         0         0                                       0
   0.02102  -0.02129  0.002408   0.01649-4.8400E-56.14500E-4       0.0
   0.02113  -0.022124.13300E-4   0.01557-7.5040E-56.49400E-4       0.0
       312         0         0         0                                       0
   0.01605  -0.01814  0.004149   0.01787-1.4030E-4-7.0030E-4       0.0
   0.01942  -0.01893-8.3830E-4   0.01609-1.2640E-4-7.4200E-4       0.0
   4002308         0         0         0                                       0
   0.01315  -0.01582  0.002015   0.016186.32200E-48.40800E-5       0.0
   0.01191  -0.01529  0.005326   0.015786.17300E-41.54400E-4       0.0

💻 Which operating system are you using?

Linux

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.12

📦 Installed packages

about-time==4.2.1
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
alive-progress==3.2.0
annotated-types==0.7.0
ansys-acp-core==0.1b2
ansys-additive-core==0.18.1
ansys-additive-widgets==0.2.1
ansys-api-acp==0.1.0.dev9
ansys-api-additive==1.7.2
ansys-api-dbu==0.3.4
ansys-api-dyna==0.4.1
ansys-api-edb==1.0.10
ansys-api-fluent==0.3.30
ansys-api-geometry==0.4.6
ansys-api-mapdl==0.5.2
ansys-api-mechanical==0.1.2
ansys-api-meshing-prime==0.1.3
ansys-api-modelcenter==0.3.1
ansys-api-platform-instancemanagement==1.1.0
ansys-api-pyensight==0.4.1
ansys-api-sherlock==0.1.27
ansys-api-systemcoupling==0.1.0
ansys-api-tools-filetransfer==0.1.1
ansys-api-workbench==0.2.0
ansys-conceptev-core==0.1.4
ansys-dpf-composites==0.5.0
ansys-dpf-core==0.12.2
ansys-dpf-post==0.8.0
ansys-dyna-core==0.6.1
ansys-dynamicreporting-core==0.6.0
ansys-edb-core==0.1.9
ansys-engineeringworkflow-api==0.1.0
ansys-fluent-core==0.22.0
ansys-geometry-core==0.6.6
ansys-grantami-bomanalytics==2.1.1
ansys-grantami-bomanalytics-openapi==3.0.0
ansys-grantami-jobqueue==1.0.1
ansys-grantami-recordlists==1.2.1
ansys-grantami-serverapi-openapi==3.0.0
ansys-hps-client==0.8.0
ansys-mapdl-core==0.68.4
ansys-mapdl-reader==0.54.2
ansys-math-core==0.1.5
ansys-mechanical-core==0.11.5
ansys-mechanical-env==0.1.7
ansys-meshing-prime==0.6.2
ansys-modelcenter-workflow==0.1.1
ansys-motorcad-core==0.5.5
ansys-openapi-common==2.2.0
ansys-optislang-core==0.8.0
ansys-platform-instancemanagement==1.1.2
ansys-pyensight-core==0.8.8
ansys-pythonnet==3.1.0rc4
ansys-rocky-core==0.2.0
ansys-seascape==0.2.0
ansys-sherlock-core==0.6.0
ansys-simai-core==0.2.2
ansys-sound-core==0.1.3
ansys-systemcoupling-core==0.6
ansys-tools-filetransfer==0.1.1
ansys-tools-local-product-launcher==0.1.1
ansys-tools-path==0.7.1
ansys-tools-visualization-interface==0.6.2
ansys-turbogrid-api==0.4.3
ansys-turbogrid-core==0.4.1
ansys-units==0.3.4
ansys-workbench-core==0.6.0
anyio==4.8.0
appdirs==1.4.4
asgiref==3.8.1
asttokens==3.0.0
attrs==24.3.0
backoff==2.2.1
bcrypt==4.2.1
beartype==0.18.5
bleach==6.2.0
bokeh==3.4.3
build==1.2.2.post1
cachetools==5.5.0
certifi==2024.12.14
cffi==1.17.1
charset-normalizer==3.4.1
click==8.1.8
clr-loader==0.2.6
comm==0.2.2
contourpy==1.3.1
cryptography==44.0.0
cycler==0.12.1
debugpy==1.8.11
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.15
dill==0.3.9
distro==1.9.0
Django==5.1.4
docker==7.1.0
docutils==0.21.2
dotnetcore2==3.1.23
elementpath==4.7.0
executing==2.1.0
fabric==3.2.2
filelock==3.16.1
flexcache==0.3
flexparser==0.4
fonttools==4.55.3
fpdf2==2.8.2
frozenlist==1.5.0
geomdl==5.3.1
google-api-core==2.24.0
google-api-python-client==2.157.0
google-auth==2.37.0
google-auth-httplib2==0.2.0
googleapis-common-protos==1.66.0
grapheme==0.6.0
grpcio==1.69.0
grpcio-health-checking==1.48.2
grpcio-status==1.48.2
h11==0.14.0
hollerith==0.6.0
httpcore==1.0.7
httplib2==0.22.0
httpx==0.26.0
idna==3.10
importlib_metadata==8.5.0
invoke==2.2.0
ipykernel==6.29.5
ipython==8.31.0
jaraco.classes==3.4.0
jaraco.context==6.0.1
jaraco.functools==4.1.0
jedi==0.19.2
jeepney==0.8.0
Jinja2==3.1.5
joblib==1.4.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter_client==8.6.3
jupyter_core==5.7.2
keyring==25.6.0
kiwisolver==1.4.8
linkify-it-py==2.0.3
lxml==5.3.0
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==3.0.2
marshmallow==3.23.3
marshmallow-oneofschema==3.1.1
matplotlib==3.10.0
matplotlib-inline==0.1.7
mdit-py-plugins==0.4.2
mdurl==0.1.2
more-itertools==10.5.0
msgpack==1.1.0
multidict==6.1.0
nest-asyncio==1.6.0
nh3==0.2.20
nltk==3.9.1
numpy==1.26.4
overrides==7.7.0
packaging==24.2
pandas==2.2.3
panel==1.4.4
param==2.2.0
paramiko==3.5.0
parso==0.8.4
pdf2image==1.17.0
pexpect==4.9.0
pillow==11.1.0
Pint==0.24.4
pkginfo==1.12.0
platformdirs==4.3.6
plumbum==1.9.0
pooch==1.8.2
prompt_toolkit==3.0.48
propcache==0.2.1
proto-plus==1.25.0
protobuf==3.20.3
psutil==6.1.1
ptyprocess==0.7.0
pure_eval==0.2.3
pyaedt==0.12.0
pyansys==2024.2.5
pyansys-tools-variableinterop==0.1.1
pyansys-tools-versioning==0.6.0
pyasn1==0.6.1
pyasn1_modules==0.4.1
pycparser==2.22
pydantic==2.9.2
pydantic_core==2.23.4
pyedb==0.34.3
Pygments==2.19.0
pygranta==2024.2.0
pyiges==0.3.1
PyJWT==2.10.1
PyNaCl==1.5.0
pyparsing==3.2.1
pypng==0.20220715.0
pyproject_hooks==1.2.0
Pyro5==5.15
pyspnego==0.11.2
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
pytwin==0.7.0
pytz==2024.2
pyvista==0.43.4
pyviz_comms==3.0.3
PyYAML==6.0.2
pyzmq==26.2.0
readme_renderer==44.0
referencing==0.35.1
regex==2024.11.6
requests==2.32.3
requests-toolbelt==1.0.0
requests_ntlm==1.3.0
rfc3986==2.0.0
rich==13.9.4
rpds-py==0.22.3
rpyc==6.0.1
rsa==4.9
Rtree==1.3.0
scikit-rf==1.5.0
scipy==1.15.0
scooby==0.10.0
SecretStorage==3.3.3
semver==3.0.2
serpent==1.41
setuptools==75.7.0
six==1.17.0
sniffio==1.3.1
sqlparse==0.5.3
sseclient-py==1.8.0
stack-data==0.6.3
tabulate==0.9.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.1.0
tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
trame==3.7.6
trame-client==3.5.1
trame-server==3.2.5
trame-vtk==2.8.12
trame-vuetify==2.8.0
twine==6.0.1
typing_extensions==4.12.2
tzdata==2024.2
uc-micro-py==1.0.3
uritemplate==4.1.1
urllib3==1.26.20
vtk==9.4.1
wakepy==0.10.1
wcwidth==0.2.13
webencodings==0.5.1
websockets==14.1
wrapt==1.17.0
wslink==2.2.1
xmlschema==2.5.1
xyzservices==2024.9.0
yarl==1.18.3
zipp==3.21.0
@dynadavid dynadavid added the bug Something isn't working label Jan 6, 2025
@RaphaelHeiniger RaphaelHeiniger self-assigned this Jan 6, 2025
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

2 participants