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

[13.脚本命令] comsol3.5a怎么使用script

[复制链接]
发表于 2009-9-15 16:09:42 | 显示全部楼层 |阅读模式 来自 甘肃兰州
comsol3.5a怎么使用script?好像没这功能了
发表于 2009-9-17 11:41:31 | 显示全部楼层 来自 天津
Simdroid开发平台
3.5a是个过渡版本,没有script,只能在matlab中编写脚本,方式两种:一是在matlab中启动comsol,二是在计算过程中连接

评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2009-9-17 14:53:00 | 显示全部楼层 来自 甘肃兰州
非常感谢!
回复 不支持

使用道具 举报

发表于 2009-10-4 23:10:11 | 显示全部楼层 来自 台湾
不過 用matlab的方式 會比直接用comsol的script還好用
個人的使用心得
回复 不支持

使用道具 举报

发表于 2009-10-6 22:03:58 | 显示全部楼层 来自 安徽淮南
听说3.4版的有啊,可以直接编写的。
回复 不支持

使用道具 举报

发表于 2009-10-9 16:56:19 | 显示全部楼层 来自 北京
可以直接编写么?怎么操作
回复 不支持

使用道具 举报

发表于 2009-10-23 16:42:16 | 显示全部楼层 来自 北京
哦 原来如此 呵呵 还找了半天的COMSOL Script 呢
回复 不支持

使用道具 举报

发表于 2009-10-24 13:13:19 | 显示全部楼层 来自 天津
请问楼主,你的3.5a是买的吗?我现在急需这个软件,可否给我传一个,谢谢
回复 不支持

使用道具 举报

发表于 2009-10-29 09:24:52 | 显示全部楼层 来自 浙江杭州
8# yiri
电驴下能下到。
回复 不支持

使用道具 举报

发表于 2009-11-3 20:41:56 | 显示全部楼层 来自 台湾
裝matlab,
因為2008年底comsol宣佈不再發展script, 而是直接與matlab雙向接合.
回复 不支持

使用道具 举报

 楼主| 发表于 2009-11-6 15:38:31 | 显示全部楼层 来自 甘肃兰州
为什么comsol3.5a和matlab连接后,导出fem,以前在3.4可以运行的script在这里运行不了?
回复 不支持

使用道具 举报

发表于 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
myscript.m

本帖子中包含更多资源

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

×
回复 不支持

使用道具 举报

发表于 2009-11-7 19:15:42 | 显示全部楼层 来自 陕西西安
12# TBE_Legend
还是不太懂 到底能不能用script
回复 不支持

使用道具 举报

发表于 2009-11-10 22:13:26 | 显示全部楼层 来自 黑龙江哈尔滨
不可以用了 因为有了SCRIPT就相当于有了MATLAB 这样就影响MATLAB销售

被告后 去掉了script 以后也不会有了
回复 不支持

使用道具 举报

发表于 2009-11-13 13:09:01 | 显示全部楼层 来自 安徽合肥
comsol与SolidWorks连接失败的主要原因是什么?
请教请教
回复 不支持

使用道具 举报

发表于 2009-11-30 21:49:52 | 显示全部楼层 来自 北京
我认为script是一个很好的工具,V3.5竟然没有了这个功能,深表遗憾!
回复 不支持

使用道具 举报

发表于 2009-12-1 19:10:50 | 显示全部楼层 来自 台湾
是出這個錯誤嗎?
Error: 2058 Failed to connect to SolidWorks.
要先裝solidworks再裝comsol.

也可以手動修復(從comsol網站抄的):
The connection between COMSOL and SolidWorks can fail if SolidWorks is installed after
COMSOL or if you make manual changes to the Windows registry.
In the case of such a failure on Windows XP, it is possible to set up the connection as follows:

   1. In SolidWorks, go to the File menu and choose Open.
   2. In the Files of type list select Add-Ins (*.dll).
   3. Load the file flswinterface.dll from the directory lib\win32 (Windows XP)
      or lib\win64 (Windows XP 64-bit) under the COMSOL 3.5a installation directory.

If your operating system is Windows Vista, follow these steps instead:

   1. Close SolidWorks if it is running on your computer.
   2. Click the Start menu symbol in the lower-left corner of your Vista desktop.
   3. Type cmd in the Start Search field.
   4. cmd.exe appears in the list of programs. Right-click on it and select Run as administrator.
   5. In the command window that appears type one of the following,
      depending on your operating system
          * on Vista 32-bit: regsvr32 C:\comsol35a\lib\win32\flswinterface.dll
          * on Vista 64-bit: regsvr32 C:\comsol35a\lib\win64\flswinterface.dll
            where C:\comsol35a is the local path to your COMSOL installation.
   6. Open SolidWorks and on the Tools menu select Add-Ins.
   7. In the Add-Ins dialog box that opens, make sure that the COMSOL Multiphysics
       Interface is active by checking the appropriate check boxes.

评分

1

查看全部评分

回复 不支持

使用道具 举报

发表于 2010-8-5 14:54:19 | 显示全部楼层 来自 广东深圳
难怪,我在3.5里面找了半天的script,没找到。郁闷了好长时间,是不是3.5不能用啊
回复 不支持

使用道具 举报

发表于 2010-8-7 22:39:54 | 显示全部楼层 来自 美国
3.5a 里面是可以的,3.5不清楚
回复 不支持

使用道具 举报

发表于 2010-8-16 22:23:48 | 显示全部楼层 来自 浙江杭州
我开始装的3.5有script,后来装着就没了,也不知道什么原因
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 23:39 , Processed in 0.061906 second(s), 19 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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