Skip to content

Trouble during a base excitation harmonic analysis of a cantilever beam #3917

Answered by mikerife
JoiKjerulf asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @JoiKjerulf took me a while to figure this out - I had a typo and so was still getting the same result you were and it took me forever to realize what I mistyped! Any way, uz_cx is a complex valued MAPDL array. To get the amplitude try the following instead (I changed the jobname to 'file'):

mapdl.post26()
mapdl.file('file', "rfrq")

mapdl.nsel("S", "LOC", "Z", LENGTH)
mapdl.get("TIPNODE", "NODE", 0, "NUM", "MIN")
mapdl.nsol(2, int(mapdl.parameters["TIPNODE"]), "U", "Z")

# get the real and imaginary values of variable 2 into separate mapdl arrays
mapdl.vget('uz_R', 2, '', 0)
mapdl.vget('uz_I', 2, '', 1)
# calculate amplitude
amp  = np.sqrt(mapdl.parameters["uz_R"]**2 + mapdl.parameters[

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@germa89
Comment options

@germa89
Comment options

@germa89
Comment options

@JoiKjerulf
Comment options

Answer selected by germa89
Comment options

You must be logged in to vote
1 reply
@JoiKjerulf
Comment options

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