当前位置:网站首页>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
边栏推荐
- 网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
- 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
- nc基础用法
- Mathematical modeling column | Part 5: MATLAB optimization model solving method (Part I): Standard Model
- nc基础用法3
- 【PTA】整除光棍
- Intersection calculation of straight line and plane in PCL point cloud processing (53)
- Customize timeline component styles
- Some basic configurations in interlij idea
- Experience of mathematical modeling in 18 year research competition
猜你喜欢
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
堡垒机、跳板机JumpServer的搭建,以及使用,图文详细
Operation of numpy array
AQS learning
Tensorflow 2 basic operation dictionary
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
LeetCode动态规划训练营(1~5天)
Browser - learning notes
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
SQL Server Connectors By Thread Pool | DTSQLServerTP 插件使用说明
随机推荐
Solution to PowerDesigner's failure to connect to MySQL in x64 system
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
DNS cloud school rising posture! Three advanced uses of authoritative DNS
nc基础用法2
R语言ggplot2可视化:ggplot2可视化散点图并使用geom_mark_ellipse函数在数据簇或数据分组的数据点周围添加椭圆进行注释
Numpy mathematical function & logical function
NC basic usage 2
【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
SIGIR'22 "Microsoft" CTR estimation: using context information to promote feature representation learning
考研英语唐叔的语法课笔记
还在用 ListView?使用 AnimatedList 让列表元素动起来
An error is reported in the initialization metadata of the dolphin scheduler -- it turns out that there is a special symbol in the password. "$“
论文写作 19: 会议论文与期刊论文的区别
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
Recommend an open source free drawing software draw IO exportable vector graph
STM32 Basics
Plato Farm元宇宙IEO上线四大,链上交易颇高
nc基础用法
NC basic usage 3