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.

High-order derivatives

Please login with a confirmed email address before reporting spam

Hello,

I am trying to solve a wave equation by the PDE coefficient module, the variable is u. I want to look at the second time derivative of u, i.e., utt. But when I plot it, all I got is zero, which is weird....Is there anything I might be doing wrong? The some thing happened when I used the acoustic module and tried plot ptt.

Thanks in advance
Lee

7 Replies Last Post 14.09.2010, 02:51 GMT-4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 30.09.2009, 03:55 GMT-4
Hi

for higher order derivatives have you checed out

www.comsol.com/support/knowledgebase/816/

And do not forget that there is a few settings as "click" "objects" on the bottom left of the
"solver manager output tab" concerning "time derivatives"

good luck
Ivar
Hi for higher order derivatives have you checed out http://www.comsol.com/support/knowledgebase/816/ And do not forget that there is a few settings as "click" "objects" on the bottom left of the "solver manager output tab" concerning "time derivatives" good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 30.09.2009, 09:10 GMT-4
You need to open the Solver Manager and go to the Output page. There, check "Include time derivatives". Solve the problem again. Then you should be able to plot utt.

Niklas
You need to open the Solver Manager and go to the Output page. There, check "Include time derivatives". Solve the problem again. Then you should be able to plot utt. Niklas

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 30.09.2009, 11:32 GMT-4
thanks for your reply

Is there a way to also look at the third order derivative?
I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either
But diff(diff(diff(u^2,t),t),t) did work, why is that?

Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything..
thanks for your reply Is there a way to also look at the third order derivative? I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either But diff(diff(diff(u^2,t),t),t) did work, why is that? Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything..

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 30.09.2009, 21:23 GMT-4

thanks for your reply

Is there a way to also look at the third order derivative?
I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either
But diff(diff(diff(u^2,t),t),t) did work, why is that?

Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything..



I saw your post in simwe.forum, sorry for late responding.

1) If you want to get thirder or higher derivatives of sloving variable u(x,t) with respect to time, a intermediate variable v(x,t)=diff(u(x,t),t) should be introduced. In other words, just keep the highest dirivative order of time that appears in any equation less than 3, otherwise you need to break it into sevral systems.

2) Acctually, diff(diff(diff(u(t)^2,t),t),t) =6*ut*utt+2*u*uttt.

Good Luck~

TBE
[QUOTE] thanks for your reply Is there a way to also look at the third order derivative? I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either But diff(diff(diff(u^2,t),t),t) did work, why is that? Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything.. [/QUOTE] I saw your post in simwe.forum, sorry for late responding. 1) If you want to get thirder or higher derivatives of sloving variable u(x,t) with respect to time, a intermediate variable v(x,t)=diff(u(x,t),t) should be introduced. In other words, just keep the highest dirivative order of time that appears in any equation less than 3, otherwise you need to break it into sevral systems. 2) Acctually, diff(diff(diff(u(t)^2,t),t),t) =6*ut*utt+2*u*uttt. Good Luck~ TBE

Please login with a confirmed email address before reporting spam

Posted: 2 decades ago 01.10.2009, 09:51 GMT-4

thanks for your reply

Is there a way to also look at the third order derivative?
I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either
But diff(diff(diff(u^2,t),t),t) did work, why is that?

Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything..


sorry for the confusion, it should be diff(diff(u^2,t),t) not diff(diff(diff(u^2,t),t),t)
[QUOTE] thanks for your reply Is there a way to also look at the third order derivative? I tried diff(utt,t), and got zero, diff(diff(diff(u,t),t),t) did not work either But diff(diff(diff(u^2,t),t),t) did work, why is that? Eventually I want to put a third order derivative into the equation, and I wrote a term in the weak form to represent this as utt*test(ut), but it turned out it's not doing anything.. [/QUOTE] sorry for the confusion, it should be diff(diff(u^2,t),t) not diff(diff(diff(u^2,t),t),t)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 13.09.2010, 12:42 GMT-4
diff is not included in V.4 any idea how to get around it?
diff is not included in V.4 any idea how to get around it?

Magnus Ringh COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 14.09.2010, 02:51 GMT-4
Hi,

The "diff" and "pdiff" operators changed name to "d" and "pd", respectively, starting from version 3.5a, so, for example,

d(u,x)

is now the correct syntax for du/dx.

Magnus Ringh
COMSOL
Hi, The "diff" and "pdiff" operators changed name to "d" and "pd", respectively, starting from version 3.5a, so, for example, d(u,x) is now the correct syntax for du/dx. Magnus Ringh COMSOL

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.