当前位置:网站首页>HM secondary development - data names and its use
HM secondary development - data names and its use
2022-07-28 16:33:00 【CaeCoder】
List of articles
Scan the QR code below to follow my wechat official account - CAE Second development of software Lab, See more great articles !

Data Names Introduce
The following is about data names (Data Names) My introduction comes from HM help .
Data name (Data Names) It can be used for Queries and operations HM Details of core data in .
Template file (Template files ) and Tcl The command uses a data name to access HyperMesh Information in the database . The data name is a string representing data .
At output time , The solver template replaces the data name string with the value represented by the data name . for example , A node has ID、x、y、z and system As a possible data name . If you enter the command in the template file *field(integer,id,8), be HyperMesh With 8 Output node in integer form of spaces id. These data names can also be used through Tcl Inquire about , Example: by command :hm_getvalue nodes id=$id dataname=x Query the x coordinate .
Data name (A data name) It can also represent a pointer to another entity in the database . For units (element), Data name node1 It's a pointer .node1 Point to HyperMesh A node in the database . If you enter a command *field(integer,node1,8), HyperMesh An error message will be sent , be HyperMesh Unable to output the correct value , because node1 Point to a node entity with many different printable values . To print nodes ID, Reference the pointer as *field(integer,node1.id,8). Use the dot (.) As a separator, the data name node1 And data name ID Separate . Corresponding Tcl The order is hm_getvalue elems ID =$ID dataname=node1. ID.
data ( Except for global data ) Only at the template level 2(levels two) To 4(levels four) Available in the . The way to reference all pointers is to add a period after the name (.), Followed by the data name of the entity type . It is important to note that , Some data names can only be used through Tcl Inquire about , You cannot query through the template system .
The following entity types have data names (Data names):
- accelerometers
- assemblies
- bags
- beamsectcols
- beamsects
- blocks
- bodies
- boxes
- cards
- collections
- collisions
- components
- configurations
- connectors
- constrainedextranodes
- constrainedrigidbodies
- constraints
- contactgroups
- contactsurfs
- controlvols
- crosssections
- curves
- ddvals
- dequations
- designvars
- desvarlinks
- directmatrixinputs
- dobjrefs
- domains
- dvprels
- elements
- ellipsoids
- encryptions
- equations
- features
- fields
- global
- groups
- handles
- hourglass
- includefiles
- joints
- laminates
- lines
- loadcols
- loads
- loadsteps
- masses
- materials
- mbjoints
- mbplanes
- mechanisms
- meshcontrols
- metadata
- modules
- morphconstraints
- morphvolumes
- multibodies
- nodes
- objectives
- opticonstraints
- opticontrols
- optidscreens
- optiresponses
- outputblocks
- panels
- parameters
- partsets
- plies
- plots
- points
- positions
- pretensioners
- properties
- regions
- retractors
- rigidbodies
- rigidwalls
- sensors
- sets
- shapes
- sliprings
- solids
- surfaces
- symmetries
- systemcols
- systems
- tables
- tags
- titles
- transformations
- vectorcols
- vectors
Data name (Data Names) Use
Check those HM The data names of entity objects , Can be in hm The directory of help documents is as follows hm_ref_guide/topics/reference/hm/ The query under the location has data_names- Enter the beginning htm file , Or search directly on the help page Data Names, for example HyperMesh2017 Of Data Names Enquiries are as follows :
Click on Data Names In the help page HM The entity list can query the data name of the entity object , for example , Components (components) The data name :
Use the Data Names, We can query and modify the corresponding parameter values .
Create entities (Entity) When using Data Names
The following code creates a file named new, Components in red .
*createentity comps name="new" color=3
Set entity (Entity) Parameter values for
The following code will id by 1 The material of the component of is modified to id=2 The material of .
*setvalue comps id=1 STATUS=2 materialid={mats 2}
Be careful : For some of the entity objects Data Name When the value of is too much , use *setvalue Settings will not work . for example , For settings Set When an element of an object , When there are too many nodes or grids, it cannot be used *setvalue Set up , Instead, its parameters are defined at the time of creation , as follows :
*createentity sets type=nodes ids={1 2 3 4}
Get entities (Entity) Parameter values for
Obtained by the following code id by 1 Materials of components id.
hm_getvalue comps id=1 dataname=materialid
边栏推荐
- QT packaging
- LabVIEW Linx toolkit controls Arduino equipment (expansion-1)
- Food safety | these two kinds of melons and fruits should be improved, especially for pregnant women with constipation
- HyperMesh运行脚本文件的几种方法
- mysql 查看事件状态语句和修改办法
- Implementation of skip table
- Zhengda cup hacker marathon data analysis competition
- 栈的介绍与实现(详解)
- Sort 4-heap sort and massive TOPK problem
- leetcode 题目
猜你喜欢

Sort 3-select sort and merge sort (recursive implementation + non recursive implementation)

Early in the morning, pay Bora SMS to say that you won the "prize"? Dealing with server mining virus - kthreaddi

Zhengda cup hacker marathon data analysis competition

ANSA二次开发 - 在PyCharm上搭建ANSA/META二次开发环境

我在上海偶遇数字凤凰#坐标徐汇美罗城

About standard IO buffers

Deeply understand the fusing configuration of istio traffic management

KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书

nowcode-学会删除链表中重复元素两题(详解)

队列的介绍与实现(详解)
随机推荐
HM二次开发 - Data Names及其使用
2021-04-02
自动打包压缩备份下载及删除 bat脚本命令
李宏毅《机器学习》丨4. Deep Learning(深度学习)
Introduction and implementation of queue (detailed explanation)
Use js direct OSS to store files in Alibaba cloud and solve the limitation of large file upload server
Fifth uncle's thinking
Roson的Qt之旅#101 Qt Quick中的模型和视图
软考 系统架构设计师 简明教程 | 软件调试
curl无输出返回空白或者null问题解决
Detectron2 installation and testing
QML signal and handler event system
我在上海偶遇数字凤凰#坐标徐汇美罗城
nowcode-学会删除链表中重复元素两题(详解)
解决电脑恶意广告弹窗的思路
小程序中的分页查询
排序4-堆排序与海量TopK问题
PHP mb_substr 中文乱码
PHP gets the applet code, and the applet jumps with parameters
IT远程运维是什么意思?远程运维软件哪个好?