一个自定义GUI脚本【精彩之极】
[i=s] 本帖最后由 TBE_Legend 于 2009-6-14 17:39 编辑 [/i]'t)VOwr5GS\)F将压缩包解压到COMSOL安装文件夹根目录。#H!x~A6F TQ
在Scrit中输入命令:%y(vv fP4A
cd minigui
minigui
即可启动自定义GUI界面,如需对脚本进行编辑,在Scrit中输入命令:
edit miniguiy.nQ$dw0wm
或者直接用记事本打开minigui.m文件。
使用COMSOL 3.5a的朋友,可将文件夹解压到Matlab安装目录,命令使用方法和Scrit类似。
另外,好像COMSOL35不支持Matlab 2008和2009, 升级到COMSOL 3.5a后又好了,可能是兼容性问题吧。 精辟!完全合理的好帖,期待继续整理!!! r m'Qc5B+Zho
太有逻辑性了,不得不顶,不知楼主是不是也写书啊! How does it look like? please give some pictures. [attach]202822[/attach] 很好的东西 顶 呵呵.争分中 楼主,我之前用comsol 3.5,都可以支持matlab 2008 2009的
3.5a也支持的
不过,还是谢谢楼主的宝贵的资料 不太理解啊,能更详细一些吗 3.5a下无法运行,因为找不到frame这个命令 [i=s] 本帖最后由 TBE_Legend 于 2009-6-14 20:23 编辑 [/i]:JHo(f Wq
C Q8FZr4NlC
Try this in COMSOL 3.5a:E M-E b,p it3Y
NB EQHZJ4u
copy the .m file under the directory "C:\COMSOL35\script\guitool" which defines the ''frame'' command to your current work directory, say,''C:\COMSOL35a\mli\multiphysics''. q6JA+I:b$T6tg7N
[quote]lYmn l"k!|m
function varargout = frame(varargin)
%FRAME Create a window for use when creating a custom user interface."{!PR4s"n-a%]
% F = FRAME(TITLE) creates a frame with the specified title.
% In addition to the fixed arguments, additional property-value pairs0} `[%p.S.iz-i
% can be given at the end of the function to further control how the
% frame is created.
%
% Property Value / {Default} Descriptiong0Bl XASY"s
% -------------------------------------------------------------------------D TVWm
% Position 2-element vector The position on the screen for the upperWG?.\U3EC9~
% left corner of the frame.s3M{fVI(|-w$B
% Size 2-element vector The size of the frame. If not givenU0P!^id7Ww
% the frame will be packed to fit the
% size of the components that have been
% added to it.Ha5q)h*P?[ hkI
%
% The function returns a frame object that can then be further manipulated
% using the methods in the following table:
%
% Method Description
% -------------------------------------------------------------------------,C f&yK&pP#a k{
% addMenu(menu) Adds the specified menu at the end of the main
% menu bar of the frame.
% close Closes the frame.
% getSize Returns the size of the frame as a 2-element
% vector with width and height.;rF_ ev,i
% setSize(width,height) Sets the size of the frame.` Ae9H!u#G
% show While the frame is being created it is
% invisible. Call the show method after addingif$rPMz(u0Q+I!u
% all components to it to show it on screen.
%I4t4J` RF$`2A:My
% The methods for PANEL are also available for FRAME, thereby allowing you
% to add panels and components to a frame.
%X,K h.[rJ}
% See also the help text for COMPONENT to get details on property-value
% pairs and methods that are valid for all components.
%
% See also COMPONENT, DIALOG, PANEL,lCxs~e g
% Copyright (c) 1994-2008 by COMSOL AB
% $Revision: 1.9 $ $Date: 2008/08/05 09:17:28 $2n V;~z6L
[/quote]
RqKqg
for convenience, the whole "script" file folder is uploaded here. ??? Error using ==> frameW/DC"c1_6~R{
Too many output arguments.
4YB`}'F!Y%Tu*Q&GAN O
Error in ==> minigui at 1?8foc'`
f1=frame('COMSOL','size',[820 600]);3y q&KJ6xkwUg
3.5a 还是出现这样的错误 [i=s] 本帖最后由 jxcjxc10 于 2010-1-31 17:39 编辑 [/i]
)r {e/sZ `x
如果在你那个minigui模型基础下做无序结构,边界和求解域怎么做啊?a{6HF tQ)ee
譬如说在一矩形区域随机加入1000个杂质小圆(全2D),由于每次几何都不同,怎么设置啊? It looks so cool. 怎么输出带参数求解器的图啊? 看见高手做的东西 真是好 好贴,顶一个! **** 作者被禁止或删除 内容自动屏蔽 **** 好东东,不得不顶 很不错的东西,谢谢 下来看看 谢谢楼主哈 小儿科,呵呵 看不到啊,级别不够,郁闷啊。&\8nY8BXY$O7YD
[b] [url=http://forum.simwe.com/redirect.php?goto=findpost&pid=1663983&ptid=881201]1#[/url] [i]monnet[/i] [/b] 看看.谢谢1
页:
[1]