Skip to content
Discussion options

You must be logged in to vote

Hi @HarshithHyphen you will need to provide more information...I just tried a simple model and the emat file was created as expected. If you can't share the input file try this one. I used Python 3.12, MAPDL 25.2, PyMAPDL 0.71.0

from ansys.mapdl.core import launch_mapdl
import os
path = os.getcwd()
exec_file = r"C:\Program Files\ANSYS Inc\v252\ansys\bin\winx64\ansys252.exe"

mapdl = launch_mapdl(run_location = path, exec_file = exec_file)
print(mapdl)

mapdl.clear()
mapdl.prep7()
mapdl.et(1, 185)
mapdl.mp('ex', 1, 1E7)
mapdl.mp('dens', 1, 0.0005)
mapdl.mp('nuxy', 1, 0.28)
mapdl.block(0, 10, 0, 2, 0, 1)
mapdl.esize(.5)
mapdl.vmesh(1)


mapdl.nsel('s', 'loc', 'x', 0)
mapdl.d('all', 'all', 0)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HarshithHyphen
Comment options

@mikerife
Comment options

Answer selected by germa89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants