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.
Defining Hysteretic material
Moderators: silvia, selimgunay, Moderators
Re: Defining Hysteretic material
Use 0.0 instead of beta=0.0, or leave the input out as 0.0 is the default for beta.
Re: Defining Hysteretic material
It worked, thank you for your support!
-
- Posts: 1
- Joined: Tue Jan 24, 2023 3:07 am
Re: Defining Hysteretic material
Thanks for sharing the post...
Re: Defining Hysteretic material
Thanks for this one!