加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

关于通过bat文件运行ansys任务

(2012-04-12 08:34:54)
标签:

杂谈

分类: 工作学习

可以通过两种方式运行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

其中-b表示

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.  

 -ansexe  

 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.  

 

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有