让maxwell后台运行,即看不到maxwell窗口

2017-05-10  by:CAE仿真在线  来源:互联网

方法是在cmd窗口运行命令:
maxwell.exe -batchsolve -ng filename.mxwl

同时我也把帮助贴在下面,只想知道如何让maxwell后台运行(即看不到maxwell窗口)的话,就不用往下看了。
----------------------------------
Running Maxwell From a Command Line
Maxwell includes options that can be used when launching from a command line or terminal prompt. All command-line arguments are case-insensitive.

Command-line syntax

maxwell (command-line options) (file name)

Run Commands

The following command line run commands are available in Maxwell. Of the commands (BatchSave, BatchSolve, RunScript, RunScriptandExit), one or none must be used as argu­ments after maxwell. Links to the valid options for each run command are listed and/or linked to descriptions.

-BatchSave <project file name>

Saves a named project to the current version. This is primarily intended for converting projects to the current software version from a previous version. Generally, conversion is supported for the previous two releases of the product. You can run this command with the -Iconic option, the -Log­file option, and the -ng option (no graphics).

-BatchSolve <project file name>

By default, solve all adaptive setups, sweeps, as well as Optimetrics setups found in the project file. Additional parameters for batch solves include the following:

[designName] - Batch solve all setups for design with the name given under the project.

[designName]:Nominal - Batch solve all nominal setups for design with the name given under the project.

[designName]:Optimetrics - Batch solve all Optimetrics setups for design with the name given under the project.

[designName]:Nominal:[setupname] - Batch solve the specified nominal setup for design with the name given under the project.

[designName]:Optimetrics:[setupname] - Batch solve the specified Optimetrics setup for design with the name given under the project.

If parallel solve is possible, you can use the -Distribute option in conjunction with -BatchSolve. You can run this command with the -Iconic option, the -Logfile option, the -ng option (no graph­ics), and the -WaitForLicense option.

Example:

C:\Maxwell\maxwell.exe -batchsolve MaxwellDesign1:Nominal "C:\Project1.mxwl"

-RunScript <script file name>

Run the specified script. You can use the -ScriptArgs option to add one or more arguments to this command and can use the -Iconic option.

-RunScriptAndExit <script file name>

Run the specified script and exit. You can use the -ScriptArgs option to add one or more argu­ments to this command. You can also use the -Iconic option, the -Logfile option, and the -Wait­ForLicense option.

<none>

If you do not specify a run command with maxwell on the command line, you can still specify the -Help and -Iconic options.

Options

The following options can be associated with one or more of the run commands:

-distribute

Distribute a batch solve to multiple machines. This option must be combined with the -BatchSolve run command and must be specified before it in the command line. See Distributed Analysis for more information on distributed analysis.

Example:

C:\Maxwell\maxwell.exe -distribute -batchsolve _

MaxwellDesign1:Optimetrics:ParametricSetup1 "C:\Project1.mxwl"

-Help

Open a window that displays the different command-line options. This is only used when none of the four run commands is used.

-Iconic

Run Maxwell with the window iconified (minimized). This can be used with all or none of the run commands.

-LogFile <log file name>

Specify a log file (use in conjunction with the -BatchSave, -BatchSolve, or -RunScriptAndExit run commands). If no log file is specified, it is written to the directory in which the script or Max­well project is located, with the name <project_name>.log.

-ng

Run Maxwell in non-graphical mode (use in conjunction with -BatchSave or -BatchSolve).

-WaitForLicense

Queue licenses (use in conjunction with -BatchSolve or -RunScriptAndExit).

-ScriptArgs <scriptArguments>

Add arguments to the specified script in conjunction with -RunScript and -RunScriptAndExit.

ScriptArgs looks at the single argument after it and uses those as script arguments. You can pass multiple arguments to scriptargs by surrounding the script arguments in quotes.

For instance:

maxwell -scriptargs "MaxwellDesign1 Setup1" -RunScriptAndExit c:\temp\test.vbs

Here, MaxwellDesign1 is taken into Maxwell as the first argument, and Setup1 is the second argu­ment. Without the quotes, MaxwellDesign1 is taken as the first argument, and Setup1 is not under­stood by Maxwell.

maxwell -scriptargs MaxwellDesign1 Setup1 -RunScriptAndExit c:\temp\test.vbs

Example:

c:\maxwell\maxwell.exe -runscriptandexit "c:\project1.vbs"

-scriptargs "Setup1"

Related Topics
Running a Script.





开放分享:优质有限元技术文章,助你自学成才

相关标签搜索:让maxwell后台运行,即看不到maxwell窗口 Maxwell电磁仿真培训 Maxwell培训课程 Maxwell培训班 Maxwell在线视频 Maxwell教程 Maxwell软件教程 Maxwell资料下载 电机设计仿真 Fluent、CFX流体分析 HFSS电磁分析 Ansys培训 Abaqus培训 

编辑
在线报名:
  • 客服在线请直接联系我们的客服,您也可以通过下面的方式进行在线报名,我们会及时给您回复电话,谢谢!
验证码

全国服务热线

1358-032-9919

广州公司:
广州市环市中路306号金鹰大厦3800
电话:13580329919
          135-8032-9919
培训QQ咨询:点击咨询 点击咨询
项目QQ咨询:点击咨询
email:kf@1cae.com