setParameter for friction in BeamContact2D

Forum for asking and answering questions related to use of the OpenSeesPy module

Moderators: silvia, selimgunay, Moderators

Post Reply
Rubinsa
Posts: 15
Joined: Mon Feb 13, 2023 3:24 am

setParameter for friction in BeamContact2D

Post by Rubinsa » Thu Feb 23, 2023 9:07 am

Hello,
I am trying to model a retaining wall and I used BeamContact2D for wall-soil interaction. I set the friction to be zero for generating in-situ stress state using initialstateanalysis. But I face a notice which say "Domain::addParameter - parameter with tag 0 already exists in model" . However, this error does not stop analysis.
Could anyone help me that what is the meaning of it? and how can I solve this? Does it affect the results?

You can find how I wrote these part of the script below, the error is related to this section.

Thank you very much!



ops.InitialStateAnalysis('on')


ops.updateMaterialStage('-material', 228, '-stage', 0)

ops.setParameter('-val', 0, '-eleRange', 20000, 20020 , 'friction' )
ops.setParameter('-val', 0, '-eleRange', 30000, 30020 , 'friction' )

ops.analyze(4)

ops.updateMaterialStage('-material', 228, '-stage', 1)
ops.analyze(4)

ops.InitialStateAnalysis('off')

ops.setParameter('-val', 1, '-eleRange', 20000, 20020 , 'friction' )
ops.setParameter('-val', 1, '-eleRange', 30000, 30020 , 'friction' )


Rubinsa
Posts: 15
Joined: Mon Feb 13, 2023 3:24 am

Re: setParameter for friction in BeamContact2D

Post by Rubinsa » Sun Mar 05, 2023 12:54 pm

Thank you for the response.
I changed the code and it worked for turning on and off the friction. However I still have this problem with updateMaterialStage for PDMY. When I use this approach for that I face an error saying:

WARNING - unable to assign parameter to object of type -material

Thank you very much for your help.

Post Reply