Skip to content

double columnName in MAT295 - keyword for anisotropic properties - write issues #995

@cabul161

Description

@cabul161

🔍 Before submitting the issue

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

🐞 Description of the bug

i'am trying to write a kyword-file containing MAT295 Keyword with anisotropy modelled via HGO-Model with two fiber families.

Unfortunately, there seems to be an issue while exporting the GroupTable: "ValueError: Cannot set a DataFrame with multiple columns to the single column ftype"

Within the dataFrame there are two columns with the name ftype.

quick workaround by renaming the column:

   mat295.anisotropic_settings.columns.values[7] = 'ftype2'

This solves the issue for wrting, but two lines with the stiffness are still missing!

📝 Steps to reproduce

##################################################################################
import os
import shutil
from ansys.dyna.core import Deck
from ansys.dyna.core import keywords as kwd

deck = Deck()

keyFile = 'Artery_MAT295_keyfile.k'

general material parameters

mid=295

#isotropic hyperelastic material parameters
rho=1.22e-9
aopt=3
itype=-1
beta=0
nu=0.4999
mu1=0.0208
alpha1=2

anisotropic hyperelastic material parameters

atype=-1
intype=0
nf=2

fiber direction angles in degrees for fiber family 1 and 2

theta=[30, -30]

fiber stiffness parameters

k1=[0.001, 0.001]
k2=[100.0, 100.0]

dispersion parameter

kappa=[0.226, 0.226]

factors of reference structure tensor

A=[ k for k in kappa]
B=[1 - 3 * k for k in kappa]

parameters of aopt=3

MACF=0 # change of material coordinate frame
betaStar=0 # Rotation about material coord vector c

print('Creating MAT295 keyword with the following parameters:')
mat295=kwd.Mat295(mid=mid, rho=rho, aopt=aopt, itype=itype, beta=beta, nu=nu, mu1=mu1, alpha1=alpha1, atype=atype, nf=nf, intype=intype)

mat295.anisotropic_settings.theta = theta
mat295.anisotropic_settings.a = A
mat295.anisotropic_settings.b = B
mat295.anisotropic_settings.ftype = [0, 0]
mat295.anisotropic_settings.fcid = [0, 0]
mat295.anisotropic_settings.k1 = k1
mat295.anisotropic_settings.k2 = k2
mat295.anisotropic_settings.flcid = [0, 0]
mat295.anisotropic_settings.e = [0, 0]
mat295.anisotropic_settings.r0norm = [0, 0]
mat295.anisotropic_settings.h0norm = [0, 0]

#mat295.anisotropic_settings.columns.values[7] = 'ftype2'

print(mat295.anisotropic_settings)

deck.extend([mat295])
deck.export_file(keyFile)

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

Ansys 2025R2

🐍 Which Python version are you using?

3.10

📦 Installed packages

aiohappyeyeballs==2.6.1
aiohttp==3.12.13
aiosignal==1.3.2
annotated-types==0.7.0
ansys-acp-core==0.1.0
ansys-additive-core==0.19.1
ansys-additive-widgets==0.2.1
ansys-api-acp==0.2.0
ansys-api-additive==2.2.1
ansys-api-dbu==0.3.13
ansys-api-dyna==0.4.2
ansys-api-edb==1.0.10
ansys-api-fluent==0.3.36
ansys-api-geometry==0.4.42
ansys-api-mapdl==0.5.2
ansys-api-mechanical==0.1.2
ansys-api-meshing-prime==0.1.4
ansys-api-modelcenter==0.3.1
ansys-api-platform-instancemanagement==1.1.3
ansys-api-pyensight==0.4.7
ansys-api-sherlock==0.1.35
ansys-api-systemcoupling==0.2.0
ansys-api-tools-filetransfer==0.1.1
ansys-api-workbench==0.2.0
ansys-conceptev-core==0.8
ansys-dpf-composites==0.6.2
ansys-dpf-core==0.13.4
ansys-dpf-post==0.9.2
ansys-dyna-core==0.7.1
ansys-dynamicreporting-core==0.9.0
ansys-edb-core==0.1.9
ansys-engineeringworkflow-api==0.1.0
ansys-fluent-core==0.29.0
ansys-fluent-visualization==0.18.0
ansys-geometry-core==0.9.1
ansys-grantami-bomanalytics==2.2.0
ansys-grantami-bomanalytics-openapi==3.1.0
ansys-grantami-jobqueue==1.1.0
ansys-grantami-recordlists==1.3.0
ansys-grantami-serverapi-openapi==4.0.0
ansys-hps-client==0.9.1
ansys-mapdl-core==0.68.6
ansys-mapdl-reader==0.54.2
ansys-materials-manager==0.2.3
ansys-math-core==0.2.2
ansys-mechanical-core==0.11.13
ansys-mechanical-env==0.1.9
ansys-mechanical-stubs==0.1.6
ansys-meshing-prime==0.7.0
ansys-modelcenter-workflow==0.1.1
ansys-motorcad-core==0.7.0
ansys-openapi-common==2.3.0
ansys-optislang-core==0.9.4
ansys-platform-instancemanagement==1.1.2
ansys-pyensight-core==0.9.10
ansys-pythonnet==3.1.0rc6
ansys-rocky-core==0.3.2
ansys-seascape==0.2.0
ansys-sherlock-core==0.8.2
ansys-simai-core==0.2.6
ansys-sound-core==0.1.3
ansys-systemcoupling-core==0.8.0
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.8.3
ansys-turbogrid-api==0.4.6
ansys-turbogrid-core==0.4.1
ansys-units==0.3.5
ansys-workbench-core==0.8.0
anyio==4.9.0
appdirs==1.4.4
argon2-cffi==25.1.0
argon2-cffi-bindings==21.2.0
arrow==1.3.0
asgiref==3.8.1
asttokens==3.0.0
async-lru==2.0.5
async-timeout==5.0.1
attrs==24.2.0
babel==2.17.0
backoff==2.2.1
bcrypt==4.3.0
beartype==0.19.0
beautifulsoup4==4.13.4
bleach==6.2.0
blinker==1.9.0
bokeh==3.4.3
build==1.2.2.post1
cachetools==5.5.2
certifi==2025.6.15
cffi==1.17.1
charset-normalizer==3.4.2
click==8.2.1
clr_loader==0.2.7.post0
colorama==0.4.6
comm==0.2.2
ConfigArgParse==1.7.1
contourpy==1.3.2
cryptography==45.0.4
cycler==0.12.1
dash==3.2.0
dataclasses-json==0.6.7
debugpy==1.8.14
decorator==5.2.1
defusedxml==0.7.1
Deprecated==1.2.18
Dijkstar==2.6.0
dill==0.4.0
Django==4.2.23
django-guardian==2.4.0
djangorestframework==3.16.0
docker==7.1.0
dynareadout @ file:///C:/Users/lass_a1/Downloads/dynareadout-24.7-cp310-cp310-win_amd64.whl#sha256=d85755ac79cee54e35f243978b377da075a6b148042c184d5bdd262b29f86862
elementpath==4.8.0
et_xmlfile==2.0.0
exceptiongroup==1.3.0
executing==2.2.0
fabric==3.2.2
fastjsonschema==2.21.1
filelock==3.18.0
Flask==3.1.2
flexcache==0.3
flexparser==0.4
fonttools==4.58.4
fpdf2==2.8.3
fqdn==1.5.1
frozenlist==1.7.0
fsspec==2025.12.0
geomdl==5.4.0
google-api-core==2.25.1
google-api-python-client==2.173.0
google-auth==2.40.3
google-auth-httplib2==0.2.0
googleapis-common-protos==1.70.0
grpcio==1.67.1
grpcio-health-checking==1.62.3
grpcio-status==1.62.3
h11==0.16.0
hollerith==0.6.0
httpcore==1.0.9
httplib2==0.22.0
httpx==0.28.1
idna==3.10
imageio==2.37.0
imageio-ffmpeg==0.6.0
importlib_metadata==8.7.0
iniconfig==2.3.0
invoke==2.2.0
ipykernel==6.29.5
ipython==8.37.0
ipywidgets==8.1.7
isoduration==20.11.0
itsdangerous==2.2.0
jedi==0.19.2
Jinja2==3.1.6
joblib==1.5.1
json5==0.12.0
jsonpointer==3.0.0
jsonschema==4.24.0
jsonschema-specifications==2025.4.1
jupyter==1.1.1
jupyter-console==6.6.3
jupyter-events==0.12.0
jupyter-lsp==2.2.6
jupyter_client==8.6.3
jupyter_core==5.8.1
jupyter_server==2.16.0
jupyter_server_terminals==0.5.3
jupyterlab==4.4.5
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==3.0.15
kiwisolver==1.4.8
linkify-it-py==2.0.3
LS_toolbox==0.1.8.3
lsdyna-mesh-reader==0.1.4
lxml==5.4.0
Markdown==3.8.2
markdown-it-py==3.0.0
MarkupSafe==3.0.2
marshmallow==3.26.1
marshmallow-oneofschema==3.2.0
matplotlib==3.10.3
matplotlib-inline==0.1.7
mdit-py-plugins==0.4.2
mdurl==0.1.2
mistune==3.1.3
more-itertools==10.7.0
moviepy==2.2.1
mpmath==1.3.0
msal==1.32.3
msal-extensions==1.3.1
msgpack==1.1.1
msvc_runtime==14.42.34433
multidict==6.5.1
mypy_extensions==1.1.0
narwhals==2.10.0
nbclient==0.10.2
nbconvert==7.16.6
nbformat==5.10.4
nest-asyncio==1.6.0
networkx==3.4.2
nltk==3.9.1
notebook==7.4.4
notebook_shim==0.2.4
numpy==1.26.4
numpy-stl==3.2.0
open3d==0.19.0
open3d-python==0.3.0.0
opencv-python==4.8.1.78
openpyxl==3.1.5
overrides==7.7.0
packaging==25.0
pandas==2.2.3
pandocfilters==1.5.1
panel==1.4.4
param==2.2.1
paramiko==3.5.1
parso==0.8.4
patsy==1.0.1
pillow==11.2.1
Pint==0.24.4
platformdirs==4.3.8
plotly==6.3.1
pluggy==1.6.0
plumbum==1.9.0
plyfile==1.1.3
pooch==1.8.2
proglog==0.1.12
prometheus_client==0.22.1
prompt_toolkit==3.0.51
propcache==0.3.2
proto-plus==1.26.1
protobuf==4.25.8
psutil==7.0.0
pure_eval==0.2.3
pyaedt==0.15.0
pyansys==2025.1.3
pyansys-tools-report==0.8.2
pyansys-tools-variableinterop==0.1.1
pyansys-tools-versioning==0.6.0
pyasn1==0.6.1
pyasn1_modules==0.4.2
pycparser==2.22
pydantic==2.10.6
pydantic_core==2.27.2
pyDOE==0.3.8
pyedb==0.37.0
pygltflib==1.16.4
Pygments==2.19.2
pygranta==2025.1.0
pyiges==0.3.2
PyJWT==2.10.1
pymecht==1.1.3
pymeshlab==2025.7
PyNaCl==1.5.0
pyntcloud==0.3.1
pyparsing==3.2.3
pypiwin32==223
pypng==0.20220715.0
pyproject_hooks==1.2.0
Pyro5==5.15
PySide6==6.8.3
PySide6_Addons==6.8.3
PySide6_Essentials==6.8.3
pyspnego==0.11.2
pytest==9.0.1
python-dateutil==2.9.0.post0
python-dotenv==1.1.1
python-json-logger==3.3.0
python-pptx==0.6.19
python-utils==3.9.1
pytwin==0.7.0
pytz==2025.2
pyvista==0.45.2
pyvistaqt==0.11.2
pyviz_comms==3.0.6
pywin32==310
pywinpty==2.0.15
PyYAML==6.0.2
pyzmq==27.0.0
QtPy==2.4.3
referencing==0.35.1
regex==2024.11.6
requests==2.32.4
requests-negotiate-sspi==0.5.2
requests-toolbelt==1.0.0
requests_ntlm==1.3.0
retrying==1.4.2
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
rpds-py==0.25.1
rpyc==6.0.2
rsa==4.9.1
rtree==1.4.0
scikit-learn==1.7.2
scikit-rf==1.7.0
scipy==1.15.3
scooby==0.10.1
semver==3.0.4
Send2Trash==1.8.3
serpent==1.41
shiboken6==6.8.3
six==1.17.0
sniffio==1.3.1
soupsieve==2.7
sqlparse==0.5.3
sseclient-py==1.8.0
sspilib==0.3.1
stack-data==0.6.3
statsmodels==0.14.4
stl==0.0.3
sympy==1.14.0
tabulate==0.9.0
terminado==0.18.1
threadpoolctl==3.6.0
tinycss2==1.4.0
toml==0.10.2
tomli==2.2.1
tomli_w==1.2.0
torch==2.9.1
tornado==6.5.1
tqdm==4.67.1
traitlets==5.14.3
trame==3.10.2
trame-client==3.9.1
trame-common==1.0.0
trame-server==3.4.2
trame-vtk==2.9.0
trame-vuetify==2.9.0
transformations==2025.1.1
truststore==0.10.1
types-python-dateutil==2.9.0.20250708
typing-inspect==0.9.0
typing_extensions==4.14.0
tzdata==2025.2
tzlocal==5.3.1
uc-micro-py==1.0.3
uri-template==1.3.0
uritemplate==4.2.0
urllib3==2.5.0
usd-core==24.8
vtk==9.4.2
wakepy==0.10.2.post1
wcwidth==0.2.13
webcolors==24.11.1
webencodings==0.5.1
websocket-client==1.8.0
websockets==15.0.1
Werkzeug==3.1.3
widgetsnbextension==4.0.14
WMI==1.5.1
wrapt==1.17.2
wslink==2.3.4
xlsxwriter==3.2.5
xmlschema==3.4.5
xyzservices==2025.4.0
yarl==1.20.1
zipp==3.23.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDefects or glitches reported by users or developers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions