- 积分
- 15
- 注册时间
- 2008-7-20
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2009-11-6 21:04:38
|
显示全部楼层
来自 黑龙江哈尔滨
comsol3.5a怎么使用script?好像没这功能了
yydjane20 发表于 2009-9-15 16:09
http://www.comsol.com/support/knowledgebase/980/
Solution Number: | 980 | Title: | How can I run COMSOL Multiphysics computations in batch mode? | Platform: | All Platforms | Applies to: | All Products | Versions: | 3.5a | Created: | January 30, 2006 | Last Modified: | November 4, 2009 | Categories: | Product Information, Installation | Keywords: | |
Problem DescriptionHow can I run COMSOL Multiphysics computations in batch mode?
SolutionThe following explanation applies to COMSOL version 3.5a
The general syntax for the command for starting COMSOL Batch is
comsol [< options >] batch [< target arguments >]
An example of using the comsol batch command on Linux is
comsol batch -input mymodel.mph
On Windows, run the following command:
comsolbatch.exe -input mymodel.mph
or
comsolbatch64.exe -input mymodel.mph
on 64-bit operating systems.
This command starts COMSOL Batch, solves the model in the Model MPH-file with the given file name using the active solver settings in the model, and stores the solution in the same file. For more command line options, please see the section The COMSOL Command in the COMSOL Installation and Operations Guide, version 3.5a.
Using the MATLAB interface of COMSOL MultiphysicsIf you run COMSOL Multiphysics with MATLAB, you can run your m-file in a session without the desktop and the splash screen. This is corresponds running COMSOL in batch mode through an m-file.
On the Linux command line:
comsol matlab -ml -nodesktop -ml -nosplash -mlr "myscript, exit"
On Windows, specify the target of the COMSOL shortcut to
c:\COMSOL35a\bin\comsol.exe matlab -ml /nodesktop -ml /nosplash -mlr "myscript, exit"
or use comsol64.exe if you have a 64-bit Windows operating system.
The command above runs the file myscript.m. The exit command is used to close the MATLAB session after the m-file run has completed. As an alternative you can insert an exit command in the m-file itself. The exit command is important if you use a job manager or scheduler for several different jobs. For more command line options, type comsol matlab -h or refer to the COMSOL Installation and Operations Guide, version 3.5a.
Related Files |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|