CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Question about Lid Driven Cavity Flow modeled by FEM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 28, 2014, 16:54
Unhappy Question about Lid Driven Cavity Flow modeled by FEM
  #1
New Member
 
Mahdi Salami
Join Date: Feb 2014
Posts: 6
Rep Power: 12
msalamih is on a distinguished road
Dear All,
I have written a FEM code in MATLAB to analyse Lid Driven Cavity flow . But I have a big problem with that. When I run the code, MATLAB tells me that the stiffness matrix is singular and there is some irrelevant results for velocity and nonsense for pressure. I'm attaching the all codes and required file here. Just execute mixed.m and view the results in GiD 11 (*.res and *.msh file should be copied to fem22.gid folder).
I tried to find the problem but I couldn't.... I check every routine but everything seems correct.....

PS: I have checked my code for flow in a duct... it is not working
Attached Files
File Type: zip FEM_mixed.zip (33.3 KB, 6 views)
File Type: zip fem22.gid.zip (46.1 KB, 5 views)

Last edited by msalamih; February 28, 2014 at 18:02.
msalamih is offline   Reply With Quote

Old   March 1, 2014, 10:43
Default
  #2
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
I opened your main code with MATLAB version 2013b and it gave dozens of warnings. You might try to eliminate these before continuing to examine the code for logic or implementation errors.

Earlier versions of MATLAB did not have this capability to analyze the code in the editor before execution. I was surprised to find so many warnings (and errors) in my working codes when I first upgraded to a current version, though many of these were due to changes in the MATLAB language. It is important to know that your program is free from syntax errors before spending a lot of time following and analyzing the flow of the computation. The most difficult error to find is the conceptual error, where you think the program is doing one thing but it is doing something else.
Jonas Holdeman is offline   Reply With Quote

Old   March 1, 2014, 15:41
Default
  #3
New Member
 
Mahdi Salami
Join Date: Feb 2014
Posts: 6
Rep Power: 12
msalamih is on a distinguished road
Thanks for your comment. I will try to check it with a newer version of MATLAB (I'm currently using R2011).
msalamih is offline   Reply With Quote

Reply

Tags
cavity flow, fem development


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lid driven cavity varying results yasmil OpenFOAM Running, Solving & CFD 2 October 6, 2016 21:42
Three Dimensional Lid Driven Cavity for high Re Numbers suhas jain Main CFD Forum 0 January 7, 2014 01:38
plz help:supersonic flow in shear driven cavity rajaero86 ANSYS 0 March 8, 2011 01:50
is there any parallel code for the famous Lid Driven Cavity flow? gholamghar Main CFD Forum 0 August 1, 2010 01:55
Two sided Lid Driven Cavity Flow Perumal Main CFD Forum 1 January 22, 2007 13:27


All times are GMT -4. The time now is 23:08.