Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 2.31 KB

开发文档.md

File metadata and controls

63 lines (49 loc) · 2.31 KB

中英译名对照

部件

  • pole中心立杆
  • rod拉杆
  • tubelar钢管
  • concrete混凝土
  • union钢管和约束拉杆、中心立杆组成的整体

ABAQUS特性

ABAQUS转角(UR)定义

ABAQUS中的转角使用右手系

当开启「几何非线性」时,ABAQUS中的转角是用轴角定义的,其旋转矩阵为: $$ \vec{a} = (x, y, z)\ \theta = - |\vec{a}|\

M = \left[\begin{matrix} x^2(1-\cos\theta) + \cos\theta & xy(1-\cos\theta)- z\sin\theta & xz(1-\cos\theta) + y\sin\theta\

xy(1-\cos\theta) + z\sin\theta & y^2(1-\cos\theta) + \cos\theta & yz(1-\cos\theta) - x\sin\theta\

xz(1-\cos\theta) - y\sin\theta & yz(1-\cos\theta) +x \sin\theta & z^2(1-\cos\theta) + \cos\theta\ \end{matrix}\right] \

其中: \ \left{\begin{matrix} \vec{a} & 旋转轴(x,y,z对应UR1,UR2,UR3)\ \theta & 旋转角度(弧度制), 使用右手系所以加负号\ M & 旋转矩阵\ \end{matrix}\right. $$

不开启「几何非线性」时,ABAQUS的旋转矩阵为(存疑,只是简单测试得出的结果): $$ M = \left[\begin{matrix} 1 & UR3 & -UR3\ -UR3 & 1 & UR1\ UR2 & -UR1 & 1 \end{matrix}\right] $$

python2.7注意事项

  • abaqus 2021内置python2.7
  • python2.7中使用urllib2而不是urllib3
  • python2.7中的\的行为与c语言类似,int除法只会返回int
  • python2.7中的print函数,似乎不支持解包参数(比如print(*item)
  • python2.7unicode的支持比较差
    • 字符串str仅支持ascii,中文使用unicode类型进行储存(比如中文路径)
    • print仅能输出「仅包含ascii字符的unicode
    • 含有中文的unicode可以用repr函数转换为「u'\u4e16\u754c'」的形式再print输出
    • python2.7中的str是接近bytes的存在,甚至有decode方法
    • 读取json时候,如果选择了以uft-8编码读取。那么所有字符串都以unicode进行储存(哪怕是纯ascii的字符串)
    • abaqus中许多函数仅支持python2.7中的str,「仅包含ascii字符的unicode」可以用str进行转换