matlab+++lars,mphglobal with Matlab returning multiple values

用户Bryan在Comsol模型中遇到一个问题,之前使用mphglobal成功获取参数,但在修改模型(如改变网格和增加变量)后,mphglobal返回了一个包含41个相同值的数组,而不是预期的单个double值。LarsGregersen建议检查模型是否为时间依赖或参数扫描模型,并推荐使用mphsolinfo获取解决方案信息。
摘要由CSDN通过智能技术生成

wezx4hu8MmCowAAAABJRU5ErkJggg==

Lars Gregersen

COMSOL Employee

Please login with a confirmed email address before reporting spam

Send a report to the moderators

Cancel

Report

Posted:

4 years ago

2017年3月15日 GMT+8 下午5:51

Hi

If you have a time dependent model or a model that has a parametric sweep your global variables can take different values for different times/parameter values. I assume that is the case for your model.

You can use the function mphsolinfo to get information about the number of steps in your solutions.

--

Lars Gregersen

Comsol Denmark

Hi there,

I was using mphglobal successfully to pull parameters from my comsol model but now I have an issue. I made some changes to my model such as changing the mesh and adding some more variables and now when I try to pull out parameters with mphglobal it will return the value 41 times. So instead of returning a double, it returns a 41x1 array of identical doubles. Any idea what is going on?

Thanks,

Bryan

Hi

If you have a time dependent model or a model that has a parametric sweep your global variables can take different values for different times/parameter values. I assume that is the case for your model.

You can use the function mphsolinfo to get information about the number of steps in your solutions.

--

Lars Gregersen

Comsol Denmark

[QUOTE]

Hi there,

I was using mphglobal successfully to pull parameters from my comsol model but now I have an issue. I made some changes to my model such as changing the mesh and adding some more variables and now when I try to pull out parameters with mphglobal it will return the value 41 times. So instead of returning a double, it returns a 41x1 array of identical doubles. Any idea what is going on?

Thanks,

Bryan

[/QUOTE]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值