Defining Hysteretic material

If you have a script you think might be useful to others post it
here. Hopefully we will be able to get the most useful of these incorporated in the manuals.

Moderators: silvia, selimgunay, Moderators

Post Reply
oscom
Posts: 13
Joined: Thu Dec 29, 2022 12:55 am

Defining Hysteretic material

Post by oscom »

Hi everyone, Im getting started at OpenSees and I'm not familiar with this error while defining Hysteretic material, don't know if its a pythong bug or I'm missing something:

TypeError: uniaxialMaterial() takes no keyword arguments

The python code to define the material only is:

import openseespy.opensees as op

op.wipe()

op.model('basic','-ndm',2)

matTag= 1
p1=[312.26, 0.01]
p2=[437.16, 0.03]
p3=[437.1, 0.07]

n1=[-312.26, -0.01]
n2=[-437.16, -0.03]
n3=[-437.1, -0.07]

#Pinching
pinchX=0.2
pinchY=0.8

#Damage
damage1=0.0
damage2=0.2

op.uniaxialMaterial('Hysteretic', matTag, *p1, *p2, *p3, *n1, *n2, *n3, pinchX, pinchY, damage1, damage2, beta=0.0)

Thank you.
mhscott
Posts: 880
Joined: Tue Jul 06, 2004 3:38 pm
Location: Corvallis, Oregon USA
Contact:

Re: Defining Hysteretic material

Post by mhscott »

Use 0.0 instead of beta=0.0, or leave the input out as 0.0 is the default for beta.
oscom
Posts: 13
Joined: Thu Dec 29, 2022 12:55 am

Re: Defining Hysteretic material

Post by oscom »

It worked, thank you for your support!
eliananelson
Posts: 1
Joined: Tue Jan 24, 2023 3:07 am

Re: Defining Hysteretic material

Post by eliananelson »

Thanks for sharing the post...
Leonar
Posts: 6
Joined: Thu Mar 02, 2023 8:41 am
Contact:

Re: Defining Hysteretic material

Post by Leonar »

Thanks for this one!
Post Reply