当前位置:网站首页>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
边栏推荐
- aqs的学习
- . Ren -- the intimate artifact in the field of vertical Recruitment!
- STM32 Basics
- NC basic usage 3
- Cadence OrCAD capture batch change component packaging function introduction graphic tutorial and video demonstration
- 腾讯邱东洋:深度模型推理加速的术与道
- Error reported by Azkaban: Azkaban jobExecutor. utils. process. ProcessFailureException: Process exited with code 64
- Markdown < a > tag new page open link
- How about CICC fortune? Is it safe to open an account
- Customize timeline component styles
猜你喜欢

go-zero框架数据库方面避坑指南

Click an EL checkbox to select all questions

考研英语唐叔的语法课笔记

Redis cache penetration, cache breakdown, cache avalanche

Leetcode dynamic planning training camp (1-5 days)

SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions

Fundamentals of programming language (2)

Plato Farm元宇宙IEO上线四大,链上交易颇高

Numpy mathematical function & logical function

CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
随机推荐
R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
SQL Server Connectors By Thread Pool | DTSQLServerTP plugin instructions
PostgreSQL basic functions
Redis cache penetration, cache breakdown, cache avalanche
如何做产品创新?——产品创新方法论探索一
Customize timeline component styles
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
Mysql database and table building: the difference between utf8 and utf8mb4
PIP installation package reports an error. Could not find a version that satisfies the requirement pymysql (from versions: none)
Es keyword sorting error reason = fielddata is disabled on text fields by default Set fielddata = true on keyword in order
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
What is the difference between a host and a server?
Click an EL checkbox to select all questions
16MySQL之DCL 中 COMMIT和ROllBACK
MySQL advanced lock - overview of MySQL locks and classification of MySQL locks: global lock (data backup), table level lock (table shared read lock, table exclusive write lock, metadata lock and inte
R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
Grafana shares links with variable parameters
Some basic configurations in interlij idea
腾讯邱东洋:深度模型推理加速的术与道
Historical track data reading of Holux m1200-e Bluetooth GPS track recorder