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.

Can I use COMSOL to solve this?

Please login with a confirmed email address before reporting spam

I got a set of coupled PDEs where one of them reads:

dv/dt + v*dv/dx +dp/dx = 0

It is hard to see how the "Coefficient Form PDE" can inplement the "v*dv/dx +dp/dx" part. Any suggestions?

4 Replies Last Post Feb 17, 2012, 9:23 a.m. EST

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 17, 2012, 1:43 a.m. EST
Why don't you use the general form ?
Why don't you use the general form ?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 17, 2012, 8:26 a.m. EST
have you tried to put dp/dx as the source term 'f' in the coefficient form? Correct me if I'm wrong: source term can be anything, the Comsol solver will deal with it.
have you tried to put dp/dx as the source term 'f' in the coefficient form? Correct me if I'm wrong: source term can be anything, the Comsol solver will deal with it.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 17, 2012, 9:18 a.m. EST
Hi Murali, I can't see how that would change things... the general form should just be the compact version of the Coefficient Form PDE.
Hi Murali, I can't see how that would change things... the general form should just be the compact version of the Coefficient Form PDE.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Feb 17, 2012, 9:23 a.m. EST
Ah, I think I get what you are saying is that I should rewrite things like:

dv/dt + v*dv/dx +dp/dx = 0 ==>

1/v * dv/dt + dv/dx = -1/v * dp/dx ==>

1/v * dv/dt + dv/dx = -K/v , where: dp/dx = K

So I just add another equation! Well I think this trick should work.
Thanks Francois.
Ah, I think I get what you are saying is that I should rewrite things like: dv/dt + v*dv/dx +dp/dx = 0 ==> 1/v * dv/dt + dv/dx = -1/v * dp/dx ==> 1/v * dv/dt + dv/dx = -K/v , where: dp/dx = K So I just add another equation! Well I think this trick should work. Thanks Francois.

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.