当前位置:网站首页>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
边栏推荐
- 记录:调用mapper报空指针;<foreach>不去重的用法;
- R语言survival包coxph函数构建cox回归模型、ggrisk包ggrisk函数和two_scatter函数可视化Cox回归的风险评分图、解读风险评分图、基于LIRI数据集(基因数据集)
- R语言使用timeROC包计算存在竞争风险情况下的生存资料多时间AUC值、使用cox模型、并添加协变量、R语言使用timeROC包的plotAUCcurve函数可视化多时间生存资料的AUC曲线
- Servlet learning notes
- Tensorflow 2 basic operation dictionary
- Tencent Qiu Dongyang: techniques and ways of accelerating deep model reasoning
- SQL Server connectors by thread pool 𞓜 instructions for dtsqlservertp plug-in
- How does onlyoffice solve no route to host
- Browser - learning notes
- Unity 模型整体更改材质
猜你喜欢
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
Don't bother tensorflow learning notes (10-12) -- Constructing a simple neural network and its visualization
Commit and rollback in DCL of 16 MySQL
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
波场DAO新物种下场,USDD如何破局稳定币市场?
[latex] 5 how to quickly write out the latex formula corresponding to the formula
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 127
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
Fundamentals of programming language (2)
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
随机推荐
Building the tide, building the foundation and winning the future -- the successful holding of zdns Partner Conference
NC basic usage 1
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
Numpy sort search count set
Design of warehouse management database system
Customize timeline component styles
【问题解决】‘ascii‘ codec can‘t encode characters in position xx-xx: ordinal not in range(128)
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
redis 分布式锁
R语言使用caret包的preProcess函数进行数据预处理:对所有的数据列进行BoxCox变换处理(将非正态分布数据列转换为正态分布数据、不可以处理负数)、设置method参数为BoxCox
star
Redis cache penetration, cache breakdown, cache avalanche
nc基础用法
Zdns was invited to attend the annual conference of Tencent cloud basic resources and share the 2020 domain name industry development report
Numpy Index & slice & iteration
Sqoop imports tinyint type fields to boolean type
BMP JPEG 图片转换为矢量图像 ContourTrace
NC basic usage
Plato Farm元宇宙IEO上线四大,链上交易颇高
Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64