Fluent批处理之--windows下多个任务的计算 【转载】
转载自http://jingcao830828.blog.163.com/blog/static/10320833620103633624506/
1.同维多任务的连续计算
对于工程应用来说,计算精度要求不高,但是计算的case比较多,尤其模型优化工作,你可
能有几十个case要算。一个case只需要计算个把钟头,对于周末的大好时光来说,两天时间
只能算一个,实在是浪费时间。经过一番研究,找到了解决方法。
操作步骤:
1.保存完直接执行迭代命令后的case&dat
2.写脚本语言,直接复制,用户只需更改红体字部分的名字,如下:
(cx-gui-do
cx-activate-item "MenuBar*ReadSubMenu*Case &
Data...")
(cx-gui-do cx-set-text-entry "Select
File*Text" "boat.cas")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-set-integer-entry
"Iterate*Table1*Frame2(Iteration)*Table2(Iteration)*IntegerEntry1(Number
of
Iterations)"
2000)
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-activate-item "Iterate*PanelButtons*PushButton1(OK)")
(cx-gui-do
cx-activate-item "MenuBar*WriteSubMenu*Case &
Data...")
(cx-gui-do
cx-set-text-entry "Select File*Text" "boat.cas ")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "Warning*OK")
注:如果多个case连续计算,如下:
(cx-gui-do
cx-activate-item "MenuBar*ReadSubMenu*Case &
Data...")
(cx-gui-do
cx-set-text-entry "Select File*Text" "s.cas")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-set-integer-entry
"Iterate*Table1*Frame2(Iteration)*Table2(Iteration)*IntegerEntry1(Number
of
Iterations)"
2000)
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-activate-item "Iterate*PanelButtons*PushButton1(OK)")
(cx-gui-do
cx-activate-item "MenuBar*WriteSubMenu*Case &
Data...")
(cx-gui-do
cx-set-text-entry "Select File*Text" "s.cas ")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "Warning*OK")
(cx-gui-do
cx-activate-item "MenuBar*ReadSubMenu*Case &
Data...")
(cx-gui-do
cx-set-text-entry "Select File*Text" "s2.cas")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-set-integer-entry
"Iterate*Table1*Frame2(Iteration)*Table2(Iteration)*IntegerEntry1(Number
of
Iterations)"
2000)
(cx-gui-do
cx-activate-item "MenuBar*SolveMenu*Iterate...")
(cx-gui-do
cx-activate-item "Iterate*PanelButtons*PushButton1(OK)")
(cx-gui-do
cx-activate-item "MenuBar*WriteSubMenu*Case &
Data...")
(cx-gui-do
cx-set-text-entry "Select File*Text" "s2.cas ")
(cx-gui-do
cx-activate-item "Select File*OK")
(cx-gui-do
cx-activate-item "Warning*OK")
2.不同维数的多任务计算
需要再写入一个批处理,内容为
fluent 2d -g
-i g -i 1.jou
fluent 3d -g
-i g -i 2.jou
命名为:1.bat
操作时:首先运行1.bat的批处理
注:要将1.jou和2.jou及case放在同个目录下
3.任务的延续怎么计算?
fluent 2d
-wait -i g -i 2.jou
fluent 3d
-wait -i g -i 1.jou
则先执行脚本2下的case,然后执行1下的case
Fluent批处理之--windows下多个任务的计算 【转载】的更多相关文章
- 如何在windows下运行Linux命令?(转载)
在windows上可以运行或使用linux下面的命令吗?可以,小编今天就来分享怎么样让Windows支持Linux命令,做这些安装和设置后,就可以非常方便的在windows系统中使用linux下面的命 ...
- windows下route命令详解(转载)
1.具体功能 该命令用于在本地IP路由表中显示和修改条目.使用不带参数的ROUTE可以显示帮助. 2.语法详解 route [-f] [-p] [co ...
- WSL调用Windows下的ParaView对OpenFOAM进行后处理
OpenFOAM可以在windows下的Linux子系统(WSL)安装,但是很麻烦的一个问题是WSL没有图形化的界面,只有一个控制台窗口,在后处理的过程中我们就没有办法直接调用paraFoam命令启动 ...
- 初尝Windows 下批处理编程
本文叫“ 初尝Windows 下批处理编程”是为了延续上一篇“初尝 Perl”,其实对于博主而言批处理以及批处理编程早就接触过了. 本文包括以下内容 1.什么是批处理 2.常用批处理命令 3.简介批处 ...
- Windows下MYSQL自动备份批处理
windows下MYSQL自动备份批处理 2011-05-04 09:16:45| 分类: mysql|举报|字号 订阅 按系统时间进行备份 注意mysql安装路径中如果有空格.就要把,.b ...
- 关于Windows下的批处理如何模拟Sleep
好好的批处理,居然没有正式的Sleep可供调用.有时候,确实感到很无趣. 1. 方法1: ping 1.1.1.1来模拟 好不容易从stackoverflow上找到一个答案(称之为答案,是因为它被人标 ...
- Windows下tomcat进程监控批处理程序
在Windows下tomcat进程监控批处理程序脚本如下: @echo off ::tomcat安装目录 set _tomcatDir=E:\myFiles\apache-tomcat-8.5.31 ...
- windows下通过批处理脚本启动redis
三种启动方式的特点: 第一种方式 :根目录之命令窗口启动 特点:每次启动都要进入到redis的根目录,比较繁琐,并且占用一个窗口 第二种方式:bat脚本便捷启动 特点:可放在桌面便捷启动,占用窗口 第 ...
- windows下bat批处理实现守护进程
本文转自网络,由于找不到原作者,因而无法知道出处.如果有幸让原作者看到,请联系我加上.先转载至此. 最近几天加班加疯掉了,天天晚上没法睡.开发部的一个核心程序总是会自己宕机,然后需要手工去起,而这个服 ...
随机推荐
- iptables详细介绍
iptables简介 netfilter/iptables(简称为iptables)组成Linux平台下的包过滤防火墙,与大多数的Linux软件一样,这个包过滤防火墙是免费的,它可以代替昂贵的商业防火 ...
- jenkins节点添加
https://blog.csdn.net/bbwangj/article/details/81203381
- vi / vim 基本操作
进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi n filename :打开文件,并将光标置于第n行首 vi filename :打开 ...
- docker入门一:docker安装(在线跟离线)
一.在线安装 1.安装依赖 yum install -y yum-utils device-mapper-persistent-data lvm2 2.添加软件源 yum-config-manager ...
- 使用Cloudera Manager搭建Kudu环境
使用Cloudera Manager搭建Kudu环境 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 1>.点击添加服务进入CM服务安装向导 2>.选择需要安装的kudu ...
- 个性化排序算法实践(二)——FFM算法
场感知分解机(Field-aware Factorization Machine ,简称FFM)在FM的基础上进一步改进,在模型中引入类别的概念,即field.将同一个field的特征单独进行one- ...
- 「SDOI2016」征途
征途 Pine开始了从S地到T地的征途. 从S地到T地的路可以划分成\(n\)段,相邻两段路的分界点设有休息站. Pine计划用\(m\)天到达T地.除第\(m\)天外,每一天晚上Pine都必须在休息 ...
- PHP——封装Curl请求方法支持POST | DELETE | GET | PUT 等
前言 Curl: https://www.php.net/manual/en/book.curl.php curl_setopt: https://www.php.net/manual/en/fun ...
- docker相关的一些指令
1. docker cp [容器id]:[容器文件的路径] [宿主机文件的路径] 2. docker exec -it [容器id] /bin/bash 3. docker commit -a [作者 ...
- Flume组件
1.什么是Flume:apache顶级项目,主要用来做数据采集.分布式.高可用,将海量日志进行采集.聚合.传输的系统.能够对数据进行简单处理在发送到接收方. 2.Flume组件:source.chan ...