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]