# Solution of Navier-Stokes with FEM in Matlab

 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 13, 2010, 05:12 Solution of Navier-Stokes with FEM in Matlab #1 New Member   Vincenzo Join Date: May 2010 Posts: 1 Rep Power: 0 Hello everyone, I'm an italian student of Aerospace Engineering, and I've to do just the last exam for the bachelor degree. Unfortunately, this exam is very difficult, and so I hope that someone can help me because the professor hasn't explain this tool. I've to create a tool in Matlab that resolve Navier-Stokes equations in a square domain, using the Finite Element Method and Galerkin matrix. I've to use a staggered grid. I cannot begin this tool, and so I'm waiting for your suggestions... Thanks.

May 23, 2010, 07:31
same problem
#2
New Member

Amar
Join Date: May 2010
Posts: 1
Rep Power: 0
I also need the same information. If you got it, can you share it with me.

Amar

Quote:
 Originally Posted by vincial Hello everyone, I'm an italian student of Aerospace Engineering, and I've to do just the last exam for the bachelor degree. Unfortunately, this exam is very difficult, and so I hope that someone can help me because the professor hasn't explain this tool. I've to create a tool in Matlab that resolve Navier-Stokes equations in a square domain, using the Finite Element Method and Galerkin matrix. I've to use a staggered grid. I cannot begin this tool, and so I'm waiting for your suggestions... Thanks.

 May 25, 2010, 10:10 #3 New Member   Join Date: May 2009 Posts: 28 Rep Power: 10 If you want to learn something: Do it for a simple mesh with paper and pen first, do not start coding right away... Start with Poisson's problem. Then Stokes and Advection-Diffusion. If you can do the stabilization of the advective term (e.g. by some upwindig like SUPG or similar) and a mixed problem, Navier-Stokes is more or less straightforward if you linearize the problem. The steps to develop a FE code are always the same. You need some mesh generation procedure or some import function for generated meshes. Then you need some piece of code to evaluate shape functions and their gradients and some transformation stuff between physical and reference geometries. The rest is just numerical integration, assembly and solving the linear system. There are a couple of books, which focus on FEM with Matlab. Maybe you can get one of those for further information. If you just want code for your exam... Google for IFISS and see if you can understand it. There are also many other code samples available online which you can modify. In any case... understanding what you do helps.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Palani Velladurai Main CFD Forum 7 September 6, 2013 02:51 msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58 liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07 Rajil Saraswat Main CFD Forum 2 June 9, 2003 07:21 Yuksel Onsoy Main CFD Forum 3 November 2, 2000 06:54

All times are GMT -4. The time now is 04:02.