当前位置:网站首页>ABAQUS script email auto notification
ABAQUS script email auto notification
2022-04-23 20:20:00 【Install a sound 77】
Using abaqus Carry out large-scale model calculation , Depending on the mesh , Time can be half an hour and 1 Different days .
In particular, batch calculations involving cycles , It is impossible to estimate the length of time . So while using the script, it involves a mailbox automatic notification function at the end
When the post-processing is completed, you can automatically notify qq mailbox .
because abaqus It uses python2 Language , and python3 There are some differences in details .
The mailbox database is self-contained , Respectively
smtplib and email All are py2 Native library
In use at the same time QQ You need to open the authentication in your account when you email , Mobile phone verification is required , This tutorial is described in other articles , Again, I won't explain in detail , This step must not be reduced .
import smtplib
from email.mime.text import MIMEText
msg_from = '[email protected]'## Own account
passwd = 'XXXX'# Authorization code obtained after verification
msg_to = '[email protected]'### Account number sent
subject = " notice " #
content = "abaqus Batch calculation completed "
msg = MIMEText(content)
msg['Subject'] = subject
msg['From'] = msg_from
msg['To'] = msg_to
try:
s = smtplib.SMTP_SSL("smtp.qq.com", 465)
s.login(msg_from, passwd)
s.sendmail(msg_from, msg_to, msg.as_string())
print " Send successfully "
except:
print " fail in send "
finally:
s.quit()
The upper code can be placed in abaqus In the script of
版权声明
本文为[Install a sound 77]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210551491571.html
边栏推荐
- Notes of Tang Shu's grammar class in postgraduate entrance examination English
- redis 分布式锁
- R语言ggplot2可视化:ggplot2可视化散点图并使用geom_mark_ellipse函数在数据簇或数据分组的数据点周围添加椭圆进行注释
- Openharmony open source developer growth plan, looking for new open source forces that change the world!
- 论文写作 19: 会议论文与期刊论文的区别
- Leetcode dynamic planning training camp (1-5 days)
- Cadence OrCAD capture batch change component packaging function introduction graphic tutorial and video demonstration
- [talkative cloud native] load balancing - the passenger flow of small restaurants has increased
- NC basic usage 1
- Servlet learning notes
猜你喜欢
[graph theory brush question-5] Li Kou 1971 Find out if there is a path in the graph
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
LeetCode动态规划训练营(1~5天)
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
DTMF双音多频信号仿真演示系统
Recommend an open source free drawing software draw IO exportable vector graph
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
Sqoop imports tinyint type fields to boolean type
RT-1052学习笔记 - GPIO架构分析
随机推荐
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
PCL点云处理之基于PCA的几何形状特征计算(五十二)
[latex] 5 how to quickly write out the latex formula corresponding to the formula
R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行
16MySQL之DCL 中 COMMIT和ROllBACK
Introduction to electron Tutorial 4 - switching application topics
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Rédaction de thèses 19: différences entre les thèses de conférence et les thèses périodiques
Mysql database - connection query
Some basic configurations in interlij idea
Commit and rollback in DCL of 16 MySQL
Markdown < a > tag new page open link
The second method of file upload in form form is implemented by fileitem class, servletfileupload class and diskfileitemfactory class.
Livego + ffmpeg + RTMP + flvjs to realize live video
Use the rolling division method to find the maximum common divisor of two numbers
Remote code execution in Win 11 using wpad / PAC and JScript 3
aqs的学习
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
Investigate why close is required after sqlsession is used in mybatties