Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the value of a specific parameter of a material #136

Open
ADuzandeh opened this issue May 27, 2024 · 8 comments
Open

Changing the value of a specific parameter of a material #136

ADuzandeh opened this issue May 27, 2024 · 8 comments

Comments

@ADuzandeh
Copy link

ADuzandeh commented May 27, 2024

Hello,

Would you please let me know how I can use this code line from Opensees (tcl) in the Openseespy environment?

"updateParameter -material $tag -refB $newVal"

Specifically, I wish to set a new value for Bulk modulus to PDMY or PIMY after gravity analysis; however, I am unable to find any guidance on how to accomplish this task with OpenSeasPy.

@zhuminjie
Copy link
Owner

@zhuminjie
Copy link
Owner

Which version are you using? I don't find the syntax in the latest version for Tcl.

@ADuzandeh
Copy link
Author

ADuzandeh commented May 27, 2024

Thank you for your prompt response.
I do not use the Opensees (tcl) in particular in my search I find this code line I am sharing the link to the webpage with you:
https://opensees.berkeley.edu/OpenSees/manuals/usermanual/1560.htm

In the meantime, I use this code that you suggested; so firstly we have to assign a parameter tag to my specific material and after that update the parameters but the problem is that It always shows an error. I share the code lines and the error with you:

"ops.parameter(1, 'element', *eltag_T1, 'material', 1, 'refBulkModul')
ops.updateParameter(1, 5.5e4)

error: Parameter::addComponent 1 -- no objects were able to identify parameter"

@zhuminjie
Copy link
Owner

I can't give you any suggestions unless it's a bug. If you believe it's a bug, please share a minimum working example.

@ADuzandeh
Copy link
Author

Hello,

I appreciate your help. I would like to share a minimum working example with you to better understand the issue.

Ex.txt

@zhuminjie
Copy link
Owner

Try "bulkModulus"

@ADuzandeh
Copy link
Author

I tested it and it is not working yet and appears to have the same error.

@mhscott
Copy link
Collaborator

mhscott commented May 29, 2024

Try adding the material tag after 'bulkModulus'

ops.nDMaterial('PDMY',23,.....)
...
ops.parameter(.......,'bulkModulus',23)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants