Boundary layer.

This is a discussion on Boundary layer. within the C Programming forums, part of the General Programming Boards category; Could someone give me some programming idea to predict boundary flow over a 2d chaannel please?..I'm reaaly poor in programmng..some ...

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    1

    Unhappy Boundary layer.

    Could someone give me some programming idea to predict boundary flow over a 2d chaannel please?..I'm reaaly poor in programmng..some steps on how to carry out this..

  2. #2
    Registered User carrotcake1029's Avatar
    Join Date
    Apr 2008
    Posts
    398
    Well then this is definitely something you shouldn't try if you are poor at programming. From my mechanical engineering classes, like fluid mechanics and heat and mass transfer, I know some of these formulas can be fairly complicated and usually need Calculus to solve.

    If you gave more information as to what exactly you are trying to accomplish, there may be an easier way than calculating flow patterns and shape vectors.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome to the forum, sunish5!


    Now take your complicated math problem, and go home. << just kidding >>

  4. #4
    Registered User Swarvy's Avatar
    Join Date
    Apr 2008
    Location
    United Kingdom
    Posts
    195
    It has already been previously pointed out in this thread that boundary layer flow problems are not particularly easy to solve, and since you openly admit that your programming experience is rather limited I suggest that using a Computational Fluid Library is your best option. One of the best ones open source ones I can find is OpenFOAM although this is actually a C++ library, which means you would have to become quite familiar with classes, inheritance, friendship (personally, I virtually never use it because it by and large seems to defeat the point of Object Orientation IMO), namespacing and a few other crafty tricks that C++ uses.

    If you are new to C, then you may have a lot to learn before you know C and C++ to an adequate level to make full use of this library.

    Ofcourse, the alternative is that you program your own, much smaller and more specialised library which is written in C and specifically geared towards the problems you are trying to solve. This would involve writing quite a few functions and then having to test them extensively before you could put them together to solve fluid flow problems.

    Unfortunately, however you try and look at it, the situation looks a bit bleak, but the second option (writing your own library) would probably get the job done quicker than having to learn lots of C++ and would give you a lot of practice at C, but again, the learning curve will be very steep.

    Edit: You could try finding CFD libraries written in C, but given the complexity of CFD as a topic, I don't think there are many (if any) which are written entirely without object orientation. Ofcourse, if you do intend to start writing your own basic C code to solve this specific type of problem then people on this forum would be more than happy to help, so feel free to post code if you get stuck or need advice.

    Edit 2: For some reason, Adak seems to be going a bit overboard with the Welcome messages recently. lol. I do find it slightly amusing, but question for Adak - Why? Are you just trying to be friendly? lol.
    Last edited by Swarvy; 10-28-2010 at 10:53 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 15
    Last Post: 09-16-2010, 05:05 PM
  2. neural nets input layer question
    By jianna in forum General AI Programming
    Replies: 3
    Last Post: 04-29-2009, 12:11 PM
  3. Design layer question
    By mdoland in forum C# Programming
    Replies: 0
    Last Post: 10-19-2007, 05:22 AM
  4. 3D Solar System - web demo
    By Jeremy G in forum Game Programming
    Replies: 5
    Last Post: 12-02-2004, 08:41 AM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 02:30 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21