Discussion Closed This 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.
"Time derivative only allowed with respect to mesh time." New error message in Comsol 4.2a
Posted Nov 2, 2011, 2:50 p.m. EDT Version 5.2a 14 Replies
Please login with a confirmed email address before reporting spam
I just upgraded to COMSOL 4.2a. When I try to run a model file which works in Comsol 4.2 I get a new error I can't seem to troubleshoot. "Time derivative only allowed with respect to mesh time." According to the error message it is in expression d(mod1.T,t). Which makes sense because T is my temperature and t is my time variable.
I tried searching but I have not encountered anyone else with the same error. Any ideas what this could mean? I've tried building a new solver tree, re meshing ect with no luck. Any suggestions would be great
Please login with a confirmed email address before reporting spam
Just an update. I found a solution to this problem.
When using the d operator you cannot use 't'. In previous versions this was allowed. In the comsol user guide is now says to use "TIME" instead. For example d(T,t) is not allowed anymore. You must use d(T,TIME).
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Shivam
Please login with a confirmed email address before reporting spam
Thanks very much!!
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
Where you make this change depends on your specific model. You want to find any place where d(p,t) occurs in the model. A good place to start is to search for d(p,t) by hitting ctrl+f in the model. Another option is to save the model as a java or matlab file so that you can search it for "d(p,t)".
I hope this helps,
Andrew
Please login with a confirmed email address before reporting spam
Thank you for your reply. My model conatins Solid Mechanics and Darcy's Law. For solid Mechanics, we adopt stationary study. For Darcy's Law, we adopt Time-dependent study type. But when computeing Time-dependent study, it occurs "Time dervative only allowed with respect to mesh time, expression d(comp1.p,t)" . Save it as java or matlab file, we don't find d(comp1.p,t). Why? Do you have another method to solve it!
Thank you.
Please login with a confirmed email address before reporting spam
I have the same problem with Darcy's Law and Solid Mechanics. Did you find a way to solve this problem?
Thanks,
Please login with a confirmed email address before reporting spam
If you were un able to find the source of the error it might be in one of the internal variables defined by comsol. You can see these under the 'equations' node if you have it enabled in the preferences. These equations are not searched using Control-F and are not output via when you save as MATLAB or JAVA files (so you would not have been able to find them).
I would suggest you take a moment to look through the equations nodes in both the solid-mechanics and the darcy's flow to see if you can find it in any of them. Otherwise I suggest contact Comsol support. Unfortunately I've never used that specific combination of physics modules, and thus never needed to fix this specific problem.
Best of luck,
Andrew
Please login with a confirmed email address before reporting spam
Google "time derivative only allowed with respect to mesh time" got me here, and saved a lot of time!
Please login with a confirmed email address before reporting spam
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- KNOWLEDGE BASE How to Debug an External Material
- FORUM Undefined Variable Error Message
- FORUM 4.2a Acoustic Streaming
- KNOWLEDGE BASE Improving Convergence of Nonlinear Stationary Models
- BLOG Accelerating Model Convergence with Symbolic Differentiation