找回密码
 注册
Simdroid-非首页
查看: 85|回复: 4

[命令和APDL] dos下如何调用ansys求解txt格式写的命令流?

[复制链接]
发表于 2013-3-5 09:26:27 | 显示全部楼层 |阅读模式 来自 江苏南京
dos下如何调用ansys求解txt格式写的命令流?
发表于 2013-3-6 09:23:35 | 显示全部楼层 来自 江苏徐州
Simdroid开发平台
本帖最后由 shifang157300 于 2013-3-6 09:26 编辑

可以采用批处理文件(*.bat)的形式,以下为例子。
BAT批处理后台运行ANSYS进行计算,计算完成后GUI打开db文件:附件

本帖子中包含更多资源

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

×

评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2013-3-6 10:41:38 来自手机 | 显示全部楼层 来自 广西
我试试,谢啦
回复 不支持

使用道具 举报

 楼主| 发表于 2013-3-6 17:52:35 | 显示全部楼层 来自 江苏南京
shifang157300 发表于 2013-3-6 09:23
可以采用批处理文件(*.bat)的形式,以下为例子。
BAT批处理后台运行ANSYS进行计算,计算完成后GUI打开db ...

不太清楚里面每个选项什么意思,您能解释一下吗?
回复 不支持

使用道具 举报

 楼主| 发表于 2013-3-6 22:34:44 | 显示全部楼层 来自 江苏南京
本帖最后由 moyu 于 2013-3-6 22:35 编辑

找到一个不错的帖子,介绍很详细《关于通过bat文件运行ansys任务
可以通过两种方式运行ansys任务
1. "C:\Program Files\Ansys -Inc\v140\Bin\winx64\ansys140.exe” -b -i myinput.inp -o myoutput.out    或者"C:\Program Files\Ansys -Inc\v140\Bin\intel\ansys140.exe” -b -i myinput.inp -o myoutput.out

2. 修改环境变量path,在其中添加ansys可执行文件所在的目录,例如set path=C:\Program Files\Ansys -Inc\v140\Bin\winx64%path%
然后直接运行 ansys140 b -i myinput.inp -o myoutput.out
各个参数的解释

-acc device
Enables the use of GPU hardware to accelerate the analysis. See "GPU Accelerator
Capability" in the Parallel Processing Guide for more information.  
-an**e  
In the ANSYS Workbench environment, activates a custom ANSYS executable.  

-b list or nolist
  Activates the ANSYS program in batch mode. The options -b list or -b by itself
cause the input listing to be included in the output. The -b nolist option causes the
input listing not to be included. For more information about running ANSYS in batch
mode, see Batch Mode.  

-custom  
Calls a custom ANSYS executable. See Running Your Custom Executable in the
Guide to ANSYS User Programmable Features for more information.  

-d device  
Specifies the type of graphics device. This option applies only to interactive mode.
For Linux systems, graphics device choices are X11, X11C, or 3D. For Windows
systems, graphics device options are WIN32 or WIN32C, or 3D.  

-db value  
Defines the portion of workspace (memory) to be used as the initial allocation for the
database. The default is 512 MB for 64-bit machines, 256 MB for 32-bit machines.
Specify a negative number (-value) to force a fixed size throughout the run; useful on
small memory systems.  

-dir  
Defines the initial working directory. Using the -dir option overrides the
ANSYS140_WORKING_DIRECTORY environment variable.  

-dis  
Enables Distributed ANSYS. See the Parallel Processing Guide for more
information.  

-dvt  
Enables ANSYS DesignXplorer advanced task (add-on).  

-dyn  
Enables LS-DYNA. Applicable only for ANSYS Structural and higher license levels.  

-g
Launches the ANSYS program with the Graphical User Interface (GUI) on. If you
select this option, an X11 graphics device is assumed for Linux unless the -d option
specifies a different device. This option is not used on Windows systems. To activate
the GUI once ANSYS has started, you need to enter two commands in the ANSYS
input window: /SHOW to define the graphics device, and /MENU,ON to activate the
GUI. The -g option is valid only for interactive mode. Note: If you start ANSYS via
the -g option, the program ignores any /SHOW command in the start140.ans file and
displays a splash screen briefly before opening the GUI windows.  

-i inputname  
Specifies the name of the file to read input into ANSYS for batch processing. On
Linux, the preferred method to indicate an input file is <.  

-j Jobname
Specifies the initial jobname, a name assigned to all files generated by the program
for a specific model. If you omit the -j option, the jobname is assumed to be file.  

-l language  
Specifies a language file to use other than US English. This option is valid only if
you have a translated message file in an appropriately named subdirectory in
/ansys_inc/v140/ansys/docu (or Program Files\Ansys Inc\V140\ANSYS\docu on
Windows systems).  

-m workspace  
Specifies the total size of the workspace (memory) in megabytes used for the initial
allocation. If you omit the -m option, the default is 1 GB (1024 MB) for 64-bit
machines, 512 MB for 32-bit machines. Specify a negative number (-value) to force a
fixed size throughout the run.  

-machines  
Specifies the machines on which to run a Distributed ANSYS analysis. See Starting
Distributed ANSYS in the Parallel Processing Guide for more information.  

-mfm  
Specifies the master field name in an ANSYS Multi-field solver - MFX analysis. See
Starting and Stopping an MFX Analysis in the Coupled-Field Analysis Guide for more
information.  

-mpi  
Specifies the type of MPI to use. See the Parallel Processing Guide for more
information.  

-mpifile  
Specifies an existing MPI file (appfile) to be used in a Distributed ANSYS run. See
Using MPI appfiles in the Parallel Processing Guide for more information.  

-name value  
Defines ANSYS parameters at program start-up. The parameter name must be at
least two characters long. For details about parameters, see the ANSYS Parametric
Design Language Guide.  

-np
Specifies the number of processors to use when running Distributed ANSYS or
Shared-memory ANSYS. See the Parallel Processing Guide or the Advanced Analysis
Techniques Guide for more information.  

-o outputname  
Specifies the name of the file to store the output from a batch execution of ANSYS.
On Linux, the preferred method to indicate an output file is >.  
-p productname  
Defines which ANSYS product will run during the session (ANSYS Multiphysics,
ANSYS Structural, etc.). For more detailed information about the -p option, see
Choosing an ANSYS Product via Command Line.  

-s read or noread
Specifies whether the program reads the start140.ans file at start-up. If you omit the
-s option, ANSYS reads the start140.ans file in interactive mode and not in batch
mode.  

-schost host name  
Specifies the host machine on which the coupling service is running (to which the
co-simulation participant/solver must connect) in a System Coupling analysis.  

-scname name of the solver
Specifies the unique name used by the co-simulation participant to identify itself to
the coupling service in a System Coupling analysis. For Linux systems, you need to
escape the quotes or escape the space to have the name recognized with a space:
ansys140.exe-scname=\”Solution 1\” or ansys140.exe-scname=”Solution\ 1”  

-scport port number  
Specifies the port on the host machine upon which the coupling service is listening
for connections from co-simulation participants in a System Coupling analysis.  

-ser  
Specifies the communication port number between ANSYS and CFX in an MFX
analysis.  

-v  
Returns the ANSYS release number, update number, copyright date, customer
number, and license manager version number.

评分

1

查看全部评分

回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-5-4 22:11 , Processed in 0.044576 second(s), 16 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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