The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Dear sir
I have attached the apparatus and python analyst code and setting file for direct shear test in Geotechnical engineering that I have coded and also the picture of the error when I run the python code in spider program. I want to ask is there anyone can help in python coding for direct shear test to solve this error and reach to a suitable code?
Hi Abbas,
Judging by the error message you got, it seems like the SStress[s_1_start:s_1_end] array is empty and the np.amax function doesn't work on empty arrays. What I'd suggest you do is checking if the SStress array is empty to begin and check if s_1_start and s_1_end are equal. You can also just catch this exception and ignore it if you by doing:
try: s_1=np.amax(SStress[s_1_start:s_1_end]) except ValueError: pass
<span class="hljs-keyword"><br /><br /><span style="font-family: arial, helvetica, sans-serif;">Hope this helps you.</span><br /><span style="font-family: arial, helvetica, sans-serif;">Best regards,</span><br /><span style="font-family: arial, helvetica, sans-serif;">Renan</span></span>
Join us for a community conversation on Pulse Width Modulation (PWM), a fundamental technique in electric motor control, and explore how different PWM strategies can yield significantly different results. This webinar provides a comparative analysis of various PWM methods and their effects on motor efficiency, torque…
Join us for a community conversation to discover the Advanced Iterative Solver(AIS) in Simcenter Feko and its application to electrically large and computationally demanding electromagnetic models. The session will provide a general overview of how iterative solution methods can help improve efficiency of large scale…
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…