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 21 juil. 2017, 07:55 UTC−4
Andrew Prudil Nuclear Materials

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14 nov. 2011, 16:50 UTC−5
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 7 janv. 2013, 13:58 UTC−5
Thanks for sharing.
Thanks for sharing.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 8 mai 2014, 10:28 UTC−4
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 17 déc. 2014, 17:45 UTC−5
Very helpful tip, thank you!
Very helpful tip, thank you!

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 15 avr. 2015, 08:15 UTC−4
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 9 sept. 2015, 01:10 UTC−4
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 29 nov. 2015, 22:01 UTC−5
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 29 nov. 2015, 22:06 UTC−5
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 29 nov. 2015, 22:42 UTC−5
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 30 nov. 2015, 03:31 UTC−5
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: 9 years ago 21 janv. 2016, 18:15 UTC−5
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: 9 years ago 22 janv. 2016, 10:13 UTC−5
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 28 oct. 2016, 05:00 UTC−4
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 21 juil. 2017, 07:55 UTC−4
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.