Skip to content

Problem when performing modal analysis in PyMAPDL #2387

Answered by mikerife
arun-maniam asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @arun-maniam
It helps to know the PyMAPDL and MAPDL version being used. And enough of the script to run and troubleshoot. So please use this as an exmaple; run it and let us know what happens:

import os
from ansys.mapdl.core import launch_mapdl
path = os.getcwd()
mapdl = launch_mapdl(run_location = path, additional_switches = '-smp')
print(mapdl)
mapdl.prep7()

mapdl.et(1,"BEAM188")
mapdl.keyopt(1,3,3)
mapdl.mp("EX",1,200E9)
mapdl.mp("NUXY",1,0.3)
mapdl.mp("DENS",1,8000)
mapdl.sectype(1,"BEAM","RECT")
mapdl.secdata(2,2)
for i in range(0,11):
    mapdl.n(i+1,i)
for i in range(1,11):
    mapdl.e(i,i+1)

mapdl.finish()

mapdl.slashsolu()
mapdl.antype("MODAL")
mapdl.mxpand(10,'','',"YES")
m…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by germa89
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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