Discussion ClosedThis discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one,click here.
Variable limits of integration with Postint
Posted 2009年12月11日 GMT+1 18:171 Reply
Please login with a confirmed email address before reporting spam
Yesterday I started to use Comsol with Matlab. I need to compute a moving window average of the comsol results, so I integrate
vyint=postint(fem,'v*(x>xlow)*(xylow)*(y
where the limits of integration are variable (xlow, etc). When I use this with fixed limits of integration there is no problem. When I switch to variable limits I get an error
??? Java exception occurred:
Exception:
com.femlab.server.MlError: Error using ==> feval
Undefined function or method 'ylow' for input arguments of type 'double'.
(rethrown as com.femlab.jni.FlNativeException)
Messages:
Error using ==> feval
Undefined function or method 'ylow' for input arguments of type 'double'.
Failed to evaluate expression
- Expression: v*(x>xlow)*(xylow)*(y
Failed to evaluate variable
- Variable: xlow
- Geometry: 1
- Subdomain: 1
Post expr failed
So I guess I need to define xlow, etc. in Comsol as another variable. Is this guess right? If so, how to implement it? How else can this problem be solved?
Thanks
vyint=postint(fem,'v*(x>xlow)*(x
where the limits of integration are variable (xlow, etc). When I use this with fixed limits of integration there is no problem. When I switch to variable limits I get an error
??? Java exception occurred:
Exception:
com.femlab.server.MlError: Error using ==> feval
Undefined function or method 'ylow' for input arguments of type 'double'.
(rethrown as com.femlab.jni.FlNativeException)
Messages:
Error using ==> feval
Undefined function or method 'ylow' for input arguments of type 'double'.
Failed to evaluate expression
- Expression: v*(x>xlow)*(x
Failed to evaluate variable
- Variable: xlow
- Geometry: 1
- Subdomain: 1
Post expr failed
So I guess I need to define xlow, etc. in Comsol as another variable. Is this guess right? If so, how to implement it? How else can this problem be solved?
Thanks
1 Reply
Last Post 2010年1月18日 GMT+1 14:25
Hello Eric Morales
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.