当前位置:网站首页>The ODB model calculates the data and outputs it to excel
The ODB model calculates the data and outputs it to excel
2022-04-23 20:21:00 【Install a sound 77】
obd yes abaqus After the calculation of the model is completed , Including the stress in our calculation 、 Displacement and other data .
although abaqus Data output is provided in excel The function of , Can only output a large amount of data , It's not intuitive .
therefore , It is more convenient to use scripted output .
1. install xlwt,xlrt.
abaqus The post-processing in is used py, The default installation is numpy Third party library , But for the operation excel The library of , There is no default installation , Therefore, you need to put the required Library in the software .
The path is Abaqus\6.14-4\tools\SMApy\python2.7\Lib\site-packages\ That is to say py2.7 The location of the library of
2. Introduction to basic script commands
# First, import the required Library from odbAccess import * import xlwt import numpy import xlrd import numpy as np import os
# Determine what to read STEP and odb Path to file , Note that the path here must use absolute path and cannot use relative path .
s_odb = 'C:/xxxx/obd1/Job-4-QZ+LNR-X-220.odb' stepname = 'Step-3'
# Open inside the script odb file o1 = session.openOdb(name=s_odb)
Normal operation in software, we use this kind of
The above operations are carried out through pyreader After reading, it is the following code xy0 = session.XYDataFromHistory(name='XYData-1', odb=o1, outputVariableName=XXXXXXX, steps=(stepname, ), useStepTime=True, suppressQuery=True)
among outputVariableName Represents the point you have chosen in the list 175 As an example , It means point 175 The displacement of Is to choose ‘Spatial displacement: U1 P1:P2-1 Node 175‘
If you want to read xy0 The data needs to pass through several layers Such as xy0[0][0][0] Query sequentially .
#excel Input operation of
books = xlwt.Workbook(encoding = 'ascii')
worksheet = sheets.add_sheet('sheet1')
books.save(+'-MAX.xls')
版权声明
本文为[Install a sound 77]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210551491284.html
边栏推荐
- [graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
- Confusion about thread blocking after calling the read () method of wrapper flow
- LeetCode动态规划训练营(1~5天)
- Cadence OrCAD capture batch change component packaging function introduction graphic tutorial and video demonstration
- R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
- How about CICC fortune? Is it safe to open an account
- Investigate why close is required after sqlsession is used in mybatties
- AQS learning
- Experience of mathematical modeling in 18 year research competition
- Redis installation (centos7 command line installation)
猜你喜欢
Some basic configurations in interlij idea
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
go-zero框架数据库方面避坑指南
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
DTMF双音多频信号仿真演示系统
Development of Matlab GUI bridge auxiliary Designer (functional introduction)
Click an EL checkbox to select all questions
ArcGIS JS version military landmark drawing (dovetail arrow, pincer arrow, assembly area) fan and other custom graphics
STM32基础知识
随机推荐
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
Experience of mathematical modeling in 18 year research competition
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
NC basic usage 1
R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
DNS cloud school rising posture! Three advanced uses of authoritative DNS
The flinkcdc reports an error: but this is no longer available on the server
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
LeetCode动态规划训练营(1~5天)
What is the difference between a host and a server?
Mysql database and table building: the difference between utf8 and utf8mb4
Linux64Bit下安装MySQL5.6-不能修改root密码
【PTA】L1-002 打印沙漏
PCL点云处理之直线与平面的交点计算(五十三)
Numpy - creation of data type and array
Tencent Qiu Dongyang: techniques and ways of accelerating deep model reasoning
论文写作 19: 会议论文与期刊论文的区别
Plato Farm元宇宙IEO上线四大,链上交易颇高
nc基础用法
R language uses the preprocess function of caret package for data preprocessing: BoxCox transform all data columns (convert non normal distribution data columns to normal distribution data and can not