当前位置:网站首页>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
边栏推荐
- Numpy Index & slice & iteration
- Historical track data reading of Holux m1200-e Bluetooth GPS track recorder
- RT-1052学习笔记 - GPIO架构分析
- After route link navigation, the sub page does not display the navigation style problem
- 论文写作 19: 会议论文与期刊论文的区别
- Remote code execution in Win 11 using wpad / PAC and JScript
- WordPress插件:WP-China-Yes解决国内访问官网慢的方法
- 还在用 ListView?使用 AnimatedList 让列表元素动起来
- R语言ggplot2可视化分面图(facet_wrap)、使用lineheight参数自定义设置分面图标签栏(灰色标签栏)的高度
- Is the wechat CICC wealth high-end zone safe? How to open an account for securities
猜你喜欢
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
Sqoop imports tinyint type fields to boolean type
Notes of Tang Shu's grammar class in postgraduate entrance examination English
Fundamentals of network communication (LAN, Wan, IP address, port number, protocol, encapsulation and distribution)
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Numpy mathematical function & logical function
[talkative cloud native] load balancing - the passenger flow of small restaurants has increased
Tensorflow 2 basic operation dictionary
【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
随机推荐
Es index (document name) fuzzy query method (database name fuzzy query method)
R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
Click an EL checkbox to select all questions
. Ren -- the intimate artifact in the field of vertical Recruitment!
Numpy - creation of data type and array
STM32 Basics
Alicloud: could not connect to SMTP host: SMTP 163.com, port: 25
[latex] 5 how to quickly write out the latex formula corresponding to the formula
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Redis distributed lock
Cadence OrCAD capture batch change component packaging function introduction graphic tutorial and video demonstration
Redis installation (centos7 command line installation)
16MySQL之DCL 中 COMMIT和ROllBACK
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行3
Some basic configurations in interlij idea
【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
Identification of bolt points in aerial photography based on perception
DNS cloud school rising posture! Three advanced uses of authoritative DNS
Numpy mathematical function & logical function