[英]Create an Abaqus field output with some invalid data
I want to add a output field to an odb.我想将输出字段添加到 odb。 Not all the values are available and I would like to input an "invalid data".
并非所有值都可用,我想输入“无效数据”。 What should I pass?
我应该通过什么? I tried nan, string, 1/0, which do not work
我尝试了 nan, string, 1/0,但不起作用
The basic coding I used to add a field output is:我用来添加字段输出的基本编码是:
instance = odb.rootAssembly.instances['nameOfYourInstance']
field_output = odb.steps['stepName'].frames[frameId].FieldOutput(
name='DefineTheName', description='WhatItRepresents',
type=SCALAR # or whatever other type you need
)
field.addData(
position=NODAL, instance=instance, labels=your_node_labels,
data=your_data
)
I want to pass an invalid data in a specific place in your_data我想在 your_data 的特定位置传递无效数据
You keep only those nodes in your_node_labels
variable for which you have data in your_data
variable.您只在 your_node_labels 变量中保留那些在
your_node_labels
变量中有数据的your_data
。
For Ex.对于前。 Let's say, you have the data for
your_node_labels=[1, 10, 12, 14, 50]
nodes only and corresponding values are your_data=[10.0, 1.0, 2.2, 3.3, 15.5]
something like this.假设您只有
your_node_labels=[1, 10, 12, 14, 50]
节点的数据,相应的值是your_data=[10.0, 1.0, 2.2, 3.3, 15.5]
类的东西。 Here, for node 1
you have value 10.0
, for node 10
you have value 1.0
and so on.在这里,对于节点
1
,您的值为10.0
,对于节点10
,您的值为1.0
,依此类推。 In this case, no data is written for the nodes other than the nodes in your_node_labels
variable, hence no contour will be shown for those nodes.在这种情况下,除了
your_node_labels
变量中的节点之外,不会为节点写入任何数据,因此不会为这些节点显示轮廓。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.