找回密码
 立即注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

Flux电机有限元分析教程西莫团购入口 | 奖励入口当当网购物入口 | 奖励入口欢迎使用!西莫论坛App开放下载Motor-CAD电机多物理域设计教材购买入口 | 奖励入口
★新会员论坛须知★《西莫电机技术》第40期发售火热进行中
Flux电机电磁阀有限元分析教程团购入口 | 奖励入口论坛微信公众平台欢迎入驻
西莫电机及相关产品供需交流群开放邀请★ 论坛VIP会员申请 ★Motor-CAD.MANATEE电磁热振动噪声教程 | 奖励入口西莫团队欢迎您的加盟!
宣传推广合作请联系QQ:25941174西莫电机论坛微信群正式开放Flux变压器与电抗器有限元分析团购入口 | 奖励入口西莫电机论坛技术版区QQ群汇总
查看: 808|回复: 0

[原创] flux问答之11怎样恢复意外终止的FLUX程序?

[复制链接]

该用户从未签到

发表于 2013-11-21 17:46 | 显示全部楼层 |阅读模式 来自: 中国北京

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
11、怎样恢复意外终止的FLUX程序?
The Flux applications (Preflu2D and Flux3D)are "driven" by the PyFlux (Python for Flux) programming language.Asyou open Flux to create a geometry, a log of the Python instructions is createdautomatically in the working directory.This file contains the command languageversions of all the commands executed in Flux.In the event the programterminates, you can re-open the Flux program and run the Python file. This willrepeat everything done in the last session.The following are the steps torecover your project utilizing the Python file:
  
Step
  
  
Action
  
  
1
  
  Navigate to the directory that you were  working in. Copy the file named Preflu2D_log.py (2D application) orFlux3D_log.py (3D  application) to another file name (keep the .py extension).
   
  Note: You may want to open this new .py file  with a text editor and delete the last 1 or 2 commands (presuming that the  program may have terminated due to some incorrect action). If necessary  delete "saveProjectAs(.....)" commands or change the name of the  saved project.
  
  
2
  
  Open Preflu2D or Flux3D through the Flux  Supervisor.
  
  
3
  
  Select Project --> Command file --> Execute in direct mode…
  In the window that opens, navigate to the  directory you are working in and select the Python file you named in step 1.  Click on Open.
  The Flux program will now run the Python  script and get you back to where you left off.
   
  Note: You can also run the Python file in  batch mode. It allows faster execution without graphic refreshment.
  

Note: You canwrite your own Python files to automate Flux or to create "macros".








西莫电机论坛微信公众平台正式上线!★详情请点击★ 西莫电机论坛会员交流专用群欢迎您西莫电机论坛加群请注明论坛用户名及所从事专业,否则不予通过
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

西莫电机论坛微信公众平台欢迎您的关注!

QQ|Archiver|手机版|小黑屋|西莫电机圈 ( 浙ICP备10025899号-3|浙公网安备33010502012192号 )

GMT+8, 2025-2-24 17:50 , Processed in 0.061805 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表