Slashdot Mirror


Best OSS CFD Package For High School Physics?

RobHart writes "I am teaching a 'physics of flight' unit to grade 11 Physics students. Part of the unit will have the students running tests on several aerofoils in a wind tunnel. I also want to expose them to a Computational Fluid Dynamics package which will allow them to contrast experimental results with those produced by the CFD package. There are a number of open source CFDs available (Windows- or Linux-based are both fine), but I don't have much time to evaluate which are the simplest to use in terms of setting up the mesh, initial conditions, etc. — a very important issue as students do not have much time in this unit." Can anyone offer insight about ease of use for programs in this niche?

23 of 105 comments (clear)

  1. Too Complicated by Thelasko · · Score: 4, Insightful

    I agree that CFD would be something nice to teach a high school student. However, unless this is an AP course, CFD is just too complex for high school students. Most people don't learn CFD until grad school.

    --
    One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
    1. Re:Too Complicated by blair1q · · Score: 2, Interesting

      That's what they used to say about computers.

      But when I was learning to write Fortran in school in 9th grade, grad students were learning to write Fortran at the university across town, and making more mistakes and understanding it less than I was.

      I would expect the CFD program that would suit this class is something that takes a simple grid input for the surface, simple initial conditions, then runs the flow and plots streamlines or vectors. No need to get into the theory behind the sim computations, just show how things flow across the surface.

      If the kids are bright, they'll be ingrained with a desire to figure out (a) more about fluid flow, or (b) how a computer knows how fluid flows, or (c) both.

    2. Re:Too Complicated by TheKidWho · · Score: 3, Informative

      Sorry, but trying to understand the results of a CFD simulation require a solid understanding of fluid mechanics and an understanding of shear stress, which in turn requires a solid understanding of calculus and differential equations.

    3. Re:Too Complicated by spazdor · · Score: 4, Insightful

      Similarly, no one has ever gotten good at baseball without first earning a PhD in ballistics.

      --
      DRM: Terminator crops for your mind!
    4. Re:Too Complicated by Chris+Mattern · · Score: 4, Insightful

      Two kids applying for a job, one has at least used CFD a few times and the other goes "No, but I can figure it out!" its pretty straightforward who is getting the job.

      Yep. Neither of them. No place that uses CFD as part of the job is going to accept anyone who isn't a certified engineer with extensive training in its use.

  2. openFOAM by Amigan · · Score: 4, Informative

    Check out openFOAM. You might find that it meets your needs.

    --
    "Software is the difference between hardware and reality"
    1. Re:openFOAM by blair1q · · Score: 3, Informative

      Took some digging but I found a page where they actually show some pictures:

              http://www.openfoam.com/docs/user/cavity.php#x5-110002.1.2

      You'd think they'd have some color somewhere on the home page, but OSS types rarely have a marketing clue...

  3. Code_Saturne by thatcadguy · · Score: 4, Informative

    I like Code_Saturne. It has a GUI that greatly simplifies the whole process. You can use SALOME to make the initial model and then mesh it, and also use it to visualize the results. All of these programs come precompiled on a live Linux distro called CAElinux. http://www.code-saturne.org/ http://www.caelinux.com/CMS/ http://www.salome-platform.org/ In any case, check out CAElinux. It's going to be the least hassle out of any of your choices because everything comes precompiled.

  4. Try XFOIL... leave CFD for later by Anonymous Coward · · Score: 2, Informative

    As an aerospace engineering PhD, I can tell you that CFD with mesh generation, turbulence model selection, numerical method selection, etc. is definitely above the level of your typical 11th grade student, even a gifted one. At best, you could have them run OpenFOAM tutorial cases, though it is highly doubtful that they would understand what is actually going on and would be able to say little more than "I've run a CFD code before, but I don't know what the results mean" at the end of the experience. There are number of panel-based aerodynamic analysis tools that would be appropriate, and of them, I'd say XFOIL is your best bet.

    1. Re:Try XFOIL... leave CFD for later by Davorama · · Score: 2, Interesting

      This is the advice you want to follow. Use XFOIL or some other panel method based program to analyze airfoils along side of your wind tunnel stuff.

      You can talk about all the things it doesn't do well (boundary layer separation, transonic flow...) and show them some Color Fancy Drawings made by a more advanced simulation as an aside.

      --

      Davo -- Free speech, free software, AND free beer.

    2. Re:Try XFOIL... leave CFD for later by sirrunsalot · · Score: 2, Informative

      This is the best advice you'll find here. I love CFD and I think any high school student could understand a good share of the basic physical concepts, but when you put it all together there's simply too much going on to yield much insight for all of the setup involved. If all you want is geometry in and pretty pictures out, then people have already listed a number of excellent packages, but spare the kids the details. A panel method is a good alternative, but be careful nonetheless.

  5. Good idea, but very hard to do well... by Slipped_Disk · · Score: 4, Insightful

    I like the idea of exposing your students to CFD packages, particularly the variation between experimental results & results off of a theoretical model. My concern would be that mastering a CFD package (or even become a basic user of one) is pretty time consuming. As others have pointed out you usually don't touch CFD packages until late undergrad or grad school.

    Consider building the models yourself and running them as a demonstration rather than asking your students: They get the benefits of seeing what the software can do & being able to reference the theoretical data generated, but won't have to deal with the frustration/learning curve of CFD software.
    If there's an interest you can offer an extra credit project where students design (or modify) a mesh & report the results.

    --
    /~mikeg
  6. Learning vs Exposure by pavon · · Score: 4, Informative

    Just because they don't have the mathematical background to fully understand the models, doesn't mean that it is worthless to expose them to the concepts. Playing around with flow simulations and seeing how changes in geometry affect flow is fun, and can give them a feel for the basic concepts of aerodynamics. It will make the class more interesting, and encourage them to pursue physics or engineering as a career.

    1. Re:Learning vs Exposure by Thelasko · · Score: 3, Interesting

      Playing around with flow simulations and seeing how changes in geometry affect flow is fun

      Agreed, but I'm afraid that playing with CFD will just leave the students frustrated and convinced that physics doesn't work because they can't get CFD to work. I remember kids in high school, (even some in college) deciding that physics doesn't work because they couldn't get newton's laws of motion to match the results they observed experimentally. In reality, they didn't do their math correctly.

      If the author want's to quickly demonstrate the principles of fluid mechanics to his/her students here is my plan:
      1) Make sure they have a firm grasp on Newton's laws of motion.
      2) Have them drop a paperclip and a coffee filter from the same height and measure how long it takes them to hit the floor.
      3) Explain to them that this is the effect of aerodynamic drag.
      I performed the same experiment in college physics. It's quick and effective.

      --
      One of our competitors trademarked the term "hypothesis". From now on, we will call them "boneheaded ideas".
    2. Re:Learning vs Exposure by RJFerret · · Score: 2, Interesting

      I believe I saw that demonstration in elementary or middle school back in the 1970s or 1980s. In high school, our physics teacher showed a feather falling in a vacuum (much cooler). Get with the '80s already! ;-)

    3. Re:Learning vs Exposure by DriedClexler · · Score: 2, Insightful

      Unless they're learning something about *how* the model generates the results -- which takes a lot of explaining even if you minimize the formula use -- all they'll get out of it is:

      "Magic computer gives magic results that we compare to some experiment."

      The most important thing to impart on the students is not any fact itself, but that nature is not magic, that we use models to understand and predict nature, and that you can learn how the models actually work if you try.

      Since they won't have the time to learn how the CFD software works, even at the pseudocode level, I don't see this as being a very helpful demonstration.

      Now, in a perfect system, students would have all the background to jump right in to CFD by age 16, but we don't have one, and I don't think that this school is an exception.

      --
      Information theory is life. The rest is just the KL divergence.
    4. Re:Learning vs Exposure by squizzar · · Score: 2, Informative

      We did this in physics with a feather and a penny. Teacher had a big tall glass tube and a vacuum pump. I can't actually remember how they 'dropped' the items (I've dreamt up a system with a rod through a bung in the end of the tube, with the feather/penny stuck on the end by a small piece of blu-tack or similar, when you pull the rod up it knocks the item free from the end of the rod), but basically what you saw was the feather drop at the same speed as the penny (give everyone a stopwatch). Shows the aerodynamics, and demonstrates the way that gravity accelerates everything at the same rate, regardless of weight or density.

  7. JavaFoil by louks · · Score: 3, Informative

    Basically, this is similar to XFoil, which is the standard 2-D CFD software for beginning Aeronautical Engineers (after they made us write our own...in FORTRAN77).

    Since it is not 3-D, it runs MUCH faster and lets them discover the basics of pressure over an airfoil, which is the important part of wing design. The details of taper, sweep, tip shape, twist, and such are a bit too much for a high-school project. Surface area and aspect ratio are the simplest and most important criteria for airplane design. These values can be calculated on paper after coefficients of lift and drag are generated.

    Javafoil can be run stand-alone or in an applet. It's free, and fairly straightforward to use.

    Best of luck. I'd be interested to hear how quickly they catch on to the concepts.

    http://www.mh-aerotools.de/airfoils/javafoil.htm

  8. 'Ease of use' relative by multimediavt · · Score: 3, Interesting

    I've taught computational fluid dynamics and molecular dynamics workshops to university faculty members and can say this: You need to setup the examples for them to play with BEFORE class. There's really no such thing as an easy to use CFD or MD package, especially when looking at what it takes to setup initial conditions. I would strongly recommend that you do a good deal of the leg work, especially for participants that do not have the mathematical background or a background in fluid dynamics, period. It will only help you in the end.

    This link will take you to lists of free and free-to-academics CFD codes, but the free ones are really, really bare bones in a lot of cases when it comes to UI. I would not turn high school students loose on these codes without pre-determined examples.

  9. CFD or Load Analysis? by riboch · · Score: 2, Informative

    Are you looking for real CFD software for pressure distributions or are you looking for something that returns lift, drag, side and moments?

    On the CFD side: OpenFOAM. Learning this is quite a bit of work because you need to work with meshing, boundary conditions, etc. But I would be very surprised you really want flow visualisation.

    For loads: XFOIL or AVL (Athena Vortex Lattice, http://web.mit.edu/drela/Public/web/avl/). AVL allows 3D visualisation of loads, perturbations, etc. When it comes to a first iteration in aeroplane design this is first thing we use in academia and is quite nice. XFOIL is 2D and is used for analysis on an aerofoil. Both allow arbitrary geometries, but I believe both are strictly for inviscid flows.

    What theories in particular are you trying to validate?

    --
    GO BLUE!
  10. Here are two great CFD packages for airfoil sim by vincentbetro · · Score: 5, Informative

    I will be getting my PhD in Computational Engineering in August, and as a former university, high school and middle school math teacher, there are things that can be applied to teaching young students about CFD without them having all the mathematics background they need. I am the STEM outreach coordinator at the SimCenter, and I have a website http://www2.utc.edu/ which includes an Euler solver on a NACA 0012 airfoil with changeable parameters for students to study the various solutions based on mach, angle of attack, etc. It also does grid adaptation. There is a graduate student tutorial and a high school student activity. I have used it with precalc, calc, and physics students at local high schools. Please feel free to contact me at vincent-betro@utc.edu for anything else I can help with. Vince P.S. Another good (and longer running) package can be obtained from NASA Lewis and can be run on any platform: http://www.grc.nasa.gov/WWW/K-12/airplane/foil2.html. Good luck!

  11. Airfoils by lbarbato · · Score: 2, Interesting

    If you're looking for an airfoil simulator, you might try NASA's FoilSim II. "Elementary," student, and undergraduate versions are available, and the non-applet download gives an even more complete version that allows file output. While it's not a full CFD package, it may be good enough for an introduction to airfoil analysis. And while it's not open source, it is free and in the public domain (since it was government produced).

    Also, if you're generally looking for open source physics simulations, you should check out Open Source Physics at http://www.compadre.org/osp/

    In particular, a brief search there yielded the Tracker Air Resistance Model - a level appropriate simulation that lets students explore the air resistance of falling coffee cups with both viscous (linear) and drag (quadratic) models.

    Nearly all of the OSP items have the source code available for modification of the models.

    --
    Dance like no ones looking and love like it's never going to hurt.
  12. Entirely irrelevant and wasteful answer. by LostMyBeaver · · Score: 4, Insightful

    Yes, I know this is Slashdot, but you got the first post and the first thing I read when I clicked on the to read comments is your somewhat counterproductive answer.

    I would imagine that the instructor has already decided that the topic would match the students. If it were a regular level course, then it's likely he'd show a video on the topic and it would be good enough. Instead he's chosen to broach the math involved by attempting to simulate a fluid dynamics scenario.

    In short, instead of assisting the teacher in his attempt to try and broaden the minds of ambitious youngsters, it almost appears that you're simply recommending that he stops doing his job, packs up and maybe instead teaches ABCs and 123s.

    Let's face it, if he's a teacher who is "qualified" to teach a topic like computational fluid dynamics, I'd imagine that he wasn't hired to teach just the average "who gives a shit" student. There are enough useless teachers who wouldn't bother out there already. This guy at least makes the effort of trying to figure out how he can best accomplish the task of teaching a complex subject.

    Please don't EVER!!!! stop an ambitious teacher from attempting to educate ambitious students in the future. Especially not under the premise of suggesting that it shouldn't be done.