如何选择现有的点载荷并通过 Plaxis3D 上的 python 为其分配载荷值?

问题描述 投票:0回答:1

我在 上创建了一个 3D 筏模型。筏板必须通过代表基础结构柱的点荷载来传递结构荷载。从不同的 CAE (SAP2000) 获得的结构载荷。在这种情况下,所有负载必须一一分配,并且需要“自主”方式。 因此,我需要一个 脚本,其中 [标签:选择现有点载荷] 并为它们分配从另一个 CAE (SAP2000) 软件获得的 txt 文件中读取的载荷。我用pycharm做了一个代码。分享给大家吧:

import subprocess, time from plxscripting.easy import * PLAXIS_PATH = r"C:\Program Files\Seequent\PLAXIS 3D 2023.2\Plaxis3DInput.exe" FILE_PATH = r'C:\Siyahkalem\Plaxis3D\python deneme\python_deneme.p3d' PORT_i = 10000 PORT_i = 10001 PASSWORD = 'V??kBcQeiiv!5w?v' subprocess.Popen([PLAXIS_PATH, f"--AppServerPort={PORT_i}", f"AppServerPassword={PASSWORD}"]) #from plaxis.plaxutil.command import Command time.sleep(5) #wait till plaxis boot finish s_i, g_i = new_server('localhost', PORT_i, password=PASSWORD) s_o, g_o = new_server('localhost', PORT_i, password=PASSWORD)s_i.open(FILE_PATH) g_i.gotostages() g_i.pointload(60)

除了“g_i.pointload(60)”之外,所有代码都运行良好。我期望这一行选择我创建的 Plaxis3d 模型上存在的“PointLoad_60_1”。但我不工作。你能帮我一下吗?

谢谢你。

python load assign
1个回答
0
投票

g_i.set(PointLoad_26_1.Fx, Phase_5, 999)

相反

g_i.pointload(60)

但是我收到错误

NameError: name 'PointLoad_26_1' is not defined

甚至PointLoad_26_1也存在。

© www.soinside.com 2019 - 2024. All rights reserved.