ABAQUS - 在Python脚本中创建Contact Damping对象

时间:2015-03-20 00:12:27

标签: python abaqus

所以我试图在交互属性下创建一个阻尼对象。 下面是阻尼对象参数等。

**definition**
A SymbolicConstant specifying the method used to define the damping. Possible values are DAMPING_COEFFICIENT and CRITICAL_DAMPING_FRACTION. The default value is DAMPING_COEFFICIENT.

**tangentFraction**
The SymbolicConstant DEFAULT or a Float specifying the tangential damping coefficient divided by the normal damping coefficient. The default value is DEFAULT.

**clearanceDependence**
A SymbolicConstant specifying the variation of the damping coefficient or fraction with respect to clearance. Possible values are STEP, LINEAR, and BILINEAR. The default value is STEP.

If definition=CRITICAL_DAMPING_FRACTION, the only possible value is STEP.

**table**
A sequence of pairs of Floats specifying the damping properties. The items in the table data are
described below.

**Table data**
If definition=DAMPING_COEFFICIENT and clearanceDependence=STEP, the table data specify the following:
• Damping coefficient.
If definition=DAMPING_COEFFICIENT and clearanceDependence=LINEAR or BILINEAR, the table
data specify the following: 
• Damping coefficient. 
• Clearance.
    Two pairs must be given for clearanceDependence=LINEAR and three pairs for clearanceDependence=BILINEAR. The first pair must have clearance=0.0, and the last pair must have coefficient=0.0.
 If definition=CRITICAL_DAMPING_FRACTION, the table data specify the following: 
        • Critical damping fraction.

所以我使用的定义是CRITICAL_DAMPING_FRACTION。我遇到的唯一困难是如何写"表"部分。以下是我的代码:

myModel.interactionProperties['Prop-1'].Damping(definition = CRITICAL_DAMPING_FRACTION, table = ((6,),))

所以从手册中可以看出,表格应该是一系列浮点数,并且期望一个元组。由于临界阻尼分数,只需要一个数字。我得到的错误信息是"阻尼表无效"。

我真的无法找到我在表格部分做错了什么。希望有人在这里可以知道我错在哪里!谢谢!

1 个答案:

答案 0 :(得分:1)

您的表格定义是正确的,但您缺少clearanceDependence的定义。要使命令有效,请编写以下内容:

myModel.interactionProperties['Prop-1'].Damping(definition = CRITICAL_DAMPING_FRACTION, table = ((6,),), clearanceDependence=STEP)

clearanceDependence属性只有一个可能的值,即STEP,但无论如何都需要定义它。遗憾的是,文档并不清楚。

将来,您可以在Abaqus中手动修改交互属性,只需使用Python读取值即可。这样你就会看到它应该是什么样子。另外,abaqus.rpy文件将包含正确的命令。