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.

Incompressible Navier Stokes

Please login with a confirmed email address before reporting spam

I would be interested to communicate with anyone who has used COMSOL to implement Navier-Stokes by using either the PDE or General forms, rather than the built-in Navier Stokes models.

13 Replies Last Post Jul 28, 2015, 6:35 p.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 1, 2009, 10:55 p.m. EST
I've used general forms to describe Navier Stokes equations.... it's quite easy...

check this files

sts.bwk.tue.nl/hamlab/readers/COMSOL_SFunction.zip

have fun!
I've used general forms to describe Navier Stokes equations.... it's quite easy... check this files http://sts.bwk.tue.nl/hamlab/readers/COMSOL_SFunction.zip have fun!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 2, 2009, 10:54 a.m. EST
Thank you. I'll try out the comsol files. Will they run undependently of the mat;lab files?
Regards
TedSmith
Thank you. I'll try out the comsol files. Will they run undependently of the mat;lab files? Regards TedSmith

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 2, 2009, 11:33 a.m. EST
Thanks again for the files. They mph files work fine. Not used the MATLAB interface yet so can't follow the M files yet.

I can't understand the problem you are trying to solve. Do you have any documentation that shows how you have converted the N-S equations to the general form? That would be very helpful. I want to obtain pressure from this solution and also want to restrain it from becoming negative.

Regards
Ted Smith
Thanks again for the files. They mph files work fine. Not used the MATLAB interface yet so can't follow the M files yet. I can't understand the problem you are trying to solve. Do you have any documentation that shows how you have converted the N-S equations to the general form? That would be very helpful. I want to obtain pressure from this solution and also want to restrain it from becoming negative. Regards Ted Smith

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 3, 2009, 5:02 p.m. EST
Of course... here is the model equations...
Of course... here is the model equations...


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 3, 2009, 5:21 p.m. EST

Of course... here is the model equations...

Thank you Edwin. I am going on a course next week on COMSOL so will learn a lot more! I had not realised that you must specify the momentum and continuity equations. The whole process seems to be much more complex than ANSYS and requires and understanding of vector mechanics (on which I am weak!). Why did you choose COMSOL?
Regards
Ted

[QUOTE] Of course... here is the model equations... [/QUOTE] Thank you Edwin. I am going on a course next week on COMSOL so will learn a lot more! I had not realised that you must specify the momentum and continuity equations. The whole process seems to be much more complex than ANSYS and requires and understanding of vector mechanics (on which I am weak!). Why did you choose COMSOL? Regards Ted

Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 3, 2009, 10:02 p.m. EST
Follow up to your last question, but reply to your original question. One cannot solve a general set of equations with ANSYS, only what they provide you. Naturally, solving your own set of equations becomes more difficult. Hence, the reason some people prefer not to have so much power !
Follow up to your last question, but reply to your original question. One cannot solve a general set of equations with ANSYS, only what they provide you. Naturally, solving your own set of equations becomes more difficult. Hence, the reason some people prefer not to have so much power !

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 4, 2009, 7:00 p.m. EST
Edwin,

I am just curious. Is there a reason why you didn't use one of COMSOL's built in multiphysics coupling models (as in fluid/thermal interaction in the COMSOL base module)?

Thanks,
Ozgur
Edwin, I am just curious. Is there a reason why you didn't use one of COMSOL's built in multiphysics coupling models (as in fluid/thermal interaction in the COMSOL base module)? Thanks, Ozgur

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 8, 2009, 5:05 a.m. EST
Grupo ...Thanks a lot for the model.
I tried to do the same thing long time ago but I did not manage how to do so.
Now I know how :-)
Grupo ...Thanks a lot for the model. I tried to do the same thing long time ago but I did not manage how to do so. Now I know how :-)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 8, 2009, 1:50 p.m. EST
this has really helped. In my problem, I have a moving wall (no-slip, u1=U, u2=0) , two outlets (at zero pressure, i.e. u3=0) and a stationary, no-slip wall (u1=0,u2=0) .

How would you put in the bc's in the three equations?

By the way, why did you use 2 separate pdes for the 2 momentum equations, rather than 1 with 2 dependent variables?

Regards

Ted
this has really helped. In my problem, I have a moving wall (no-slip, u1=U, u2=0) , two outlets (at zero pressure, i.e. u3=0) and a stationary, no-slip wall (u1=0,u2=0) . How would you put in the bc's in the three equations? By the way, why did you use 2 separate pdes for the 2 momentum equations, rather than 1 with 2 dependent variables? Regards Ted

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Dec 13, 2009, 1:56 p.m. EST
Hi .. I'm glad to hear this files were useful for you, the main advantage of the pde general form is that you have complete power on the way you implement your pde's system.... I'd rather to implement 2 separate momentum equations because that's the way my model was defined, if you check my equations, those are not defined as tensors, those are defined as scalar equations....of course, you are free to implement your model equations whatever you want..

Kind regards
Hi .. I'm glad to hear this files were useful for you, the main advantage of the pde general form is that you have complete power on the way you implement your pde's system.... I'd rather to implement 2 separate momentum equations because that's the way my model was defined, if you check my equations, those are not defined as tensors, those are defined as scalar equations....of course, you are free to implement your model equations whatever you want.. Kind regards

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jan 8, 2010, 3:48 p.m. EST
Just wanted to say thanks for the posts. I found the comments and files exceedingly helpful!
Just wanted to say thanks for the posts. I found the comments and files exceedingly helpful!

Jim Freels mechanical side of nuclear engineering, multiphysics analysis, COMSOL specialist

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Jan 9, 2010, 2:21 p.m. EST
Try this example right off the COMSOL model exchange:

www.comsol.com/community/exchange/62/
Try this example right off the COMSOL model exchange: http://www.comsol.com/community/exchange/62/

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Jul 28, 2015, 6:35 p.m. EDT
Hi,

Thank you for sharing the link. Unfortunately the link is not working anymore. Could you please share it again?
Hi, Thank you for sharing the link. Unfortunately the link is not working anymore. Could you please share it again?

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.