CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > COMSOL

Femlab: why isn't this code working?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 27, 2008, 09:53
Default Femlab: why isn't this code working?
  #1
Max
Guest
 
Posts: n/a
Hey people,

I'm new to Femlab but I used to do a few things in Matlab. I found sth. interesting in a publication on the net and would like to get it to work. It's just some sphere in a Navier Stokes fluid. http://www2.mic.dtu.dk/research/MIFT...FlowSphere.pdf

Now when I save those 2 m files from the appendix and try to open the main file Femlab doesn't understand a bunch of functions as tic;,toc; or even num2str();. It also seems to be unable to include the second m-file even though it's in the same directory and it has the right filename.

Anyways I just included (copy paste) the code from the second file (http://www.xammm.com/setappmode.m) twice into the main file and I also made comments out of any tic;,toc;,num2str(); functions since afaik they aren't really necessary for the code to run.

So I end up using this m-file: http://www.xammm.com/calcdrag.m Now when I try to run it in Femlab there are no errors but nothing happens (cpu usage goes to 100% and computer almost freezes). Can anyone try the last m-file? Maybe it's just not working because of the Femlab version I'm using here. Thanks, Max

Max
  Reply With Quote

 


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
Original OpenFOAM author(s)? roenby OpenFOAM 21 July 14, 2021 12:08
Fortran->Assembly : How to remove redundant non-vectorized code? aerosayan Main CFD Forum 6 November 20, 2020 05:37
COBRAS code novan tofany Main CFD Forum 0 October 8, 2012 04:40
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10


All times are GMT -4. The time now is 09:56.