当前位置:网站首页>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
边栏推荐
- Paper writing 19: the difference between conference papers and journal papers
- Sqoop imports data from Mysql to HDFS using lzop compression format and reports NullPointerException
- The R language uses the timeroc package to calculate the multi time AUC value of survival data without competitive risk, and uses the confint function to calculate the confidence interval value of mul
- Solution to PowerDesigner's failure to connect to MySQL in x64 system
- [latex] 5 how to quickly write out the latex formula corresponding to the formula
- DNS cloud school rising posture! Three advanced uses of authoritative DNS
- 2022 - Data Warehouse - [time dimension table] - year, week and holiday
- After route link navigation, the sub page does not display the navigation style problem
- Implementation of mypromise
- DTMF双音多频信号仿真演示系统
猜你喜欢

PCL点云处理之计算两平面交线(五十一)

Leetcode XOR operation

Servlet learning notes

Compact CUDA tutorial - CUDA driver API

Browser - learning notes

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

DTMF双音多频信号仿真演示系统

WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website

Livego + ffmpeg + RTMP + flvjs to realize live video
随机推荐
NC basic usage 3
Azkaban recompile, solve: could not connect to SMTP host: SMTP 163.com, port: 465 [January 10, 2022]
How about CICC fortune? Is it safe to open an account
SRS deployment
. Ren -- the intimate artifact in the field of vertical Recruitment!
16MySQL之DCL 中 COMMIT和ROllBACK
Some basic configurations in interlij idea
[graph theory brush question-4] force deduction 778 Swimming in a rising pool
网络通信基础(局域网、广域网、IP地址、端口号、协议、封装、分用)
PCL点云处理之直线与平面的交点计算(五十三)
JDBC tool class jdbcfiledateutil uploads files and date format conversion, including the latest, simplest and easiest way to upload single files and multiple files
DNS cloud school | analysis of hidden tunnel attacks in the hidden corner of DNS
LeetCode异或运算
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
Implementation of mypromise
R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
Tencent Qiu Dongyang: techniques and ways of accelerating deep model reasoning
Click an EL checkbox to select all questions