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

Andrew Prudil Nuclear Materials

Please login with a confirmed email address before reporting spam

Hi everyone,
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

14 Replies Last Post 2017年7月21日 GMT-4 07:55
Andrew Prudil Nuclear Materials

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年11月14日 GMT-5 16:50
Hi everyone,
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).
Hi everyone, 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

Posted: 1 decade ago 2013年1月7日 GMT-5 13:58
Thanks for sharing.
Thanks for sharing.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2014年5月8日 GMT-4 10:28
Hi Andrew. This has been very helpful, thanks for sharing!

Hi Andrew. This has been very helpful, thanks for sharing!

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 2014年12月17日 GMT-5 17:45
Very helpful tip, thank you!
Very helpful tip, thank you!

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年4月15日 GMT-4 08:15
Again, COMSOL riddles :) Thank you anyways!

Shivam
Again, COMSOL riddles :) Thank you anyways! Shivam

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年9月9日 GMT-4 01:10
Hey this is very helpful, also in Versions 5.1.
Thanks very much!!
Hey this is very helpful, also in Versions 5.1. Thanks very much!!

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年11月29日 GMT-5 22:01
How do I use d(T,TIME) instead of d(T,t) ? In detail, where do I need to set? Thank you!
How do I use d(T,TIME) instead of d(T,t) ? In detail, where do I need to set? Thank you!

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年11月29日 GMT-5 22:06
Hi, Dr. Huang, Do you know how to use d(p,TIME) instead of d(p,t). Thank you. This is my qq:845757859.
Hi, Dr. Huang, Do you know how to use d(p,TIME) instead of d(p,t). Thank you. This is my qq:845757859.

Andrew Prudil Nuclear Materials

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2015年11月29日 GMT-5 22:42
Hello Xiangguo Kong,

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
Hello Xiangguo Kong, 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

Posted: 9 years ago 2015年11月30日 GMT-5 03:31
Hello, Andrew Prudil,
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.
Hello, Andrew Prudil, 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

Posted: 8 years ago 2016年1月21日 GMT-5 18:15
Hello,
I have the same problem with Darcy's Law and Solid Mechanics. Did you find a way to solve this problem?
Thanks,
Hello, I have the same problem with Darcy's Law and Solid Mechanics. Did you find a way to solve this problem? Thanks,

Andrew Prudil Nuclear Materials

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 2016年1月22日 GMT-5 10:13
Hello All,
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
Hello All, 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

Posted: 8 years ago 2016年10月28日 GMT-4 05:00
Thanks!

Google "time derivative only allowed with respect to mesh time" got me here, and saved a lot of time!
Thanks! 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

Posted: 7 years ago 2017年7月21日 GMT-4 07:55
This has been of great help. Thanks.
This has been of great help. Thanks.

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.