Beginner's approach to CFD software?

In summary: So your first recommendation would be to seek out a more comprehensive introductory textbook on fluid dynamics, such as "Introduction to Fluid Dynamics" by S.K. Sen and R.C. Hill, which is available online for free.In summary, I am currently an "intern" at a company for a position primarily involving drafting cell site equipment. The owner of the company (an old friend of mine) has asked me to look up computational fluid dynamics softwares and begin to tinker with one, because he is interested in it for the sake of either hobby or perhaps expanding his horizons occupation-wise. His motive is not finally the point. I do, in fact, have a LOT of time on
  • #1
deltapapazulu
84
12
I am currently an "intern" at a company for a position primarily involving drafting cell site equipment. That is going quite well. But the owner of the company (an old friend of mine) has asked me to look up computational fluid dynamics softwares and begin to tinker with one, because he is interested in it for the sake of either hobby or perhaps expanding his horizons occupation-wise.

His motive is not finally the point.

I do, in fact, have a LOT of time on my hands and would like to start messing with some CFD softwares. I downloaded trial version of Autodesk CFD and haven't the slightest idea where to begin with it. There is NOT a good internet resource base/community for jumping into this cold turkey. I am not even sure if I am supposed to have Inventor installed first or whatever (I don't at the moment).

A few years ago I installed Inventor and Solidworks and learned quite a bit of those with no problem and no need for advanced engineering education.

BUT with this CFD stuff I have kind of hit a wall.

Any suggestions for a total beginner in CFD ? I currently have trial Autodesk CFD installed on my system and am looking for some absolute beginner tutorials.
 
Engineering news on Phys.org
  • #2
Unless it's dramatically improved recently, I have never been very impressed with any of the CAD software CFD packages (SolidWorks or Autodesk). Ansys or OpenFOAM is much better. OpenFOAM has a pretty good tutorial guide and wiki too which should help get you started. Be aware that results are very sensitive to problem setup and mesh generation in CFD, and just because you get a result out doesn't mean that the result is anywhere close to right. What kind of flows are you looking to model?
 
  • Like
Likes russ_watters
  • #3
This is mostly in relation to just hobby and that of aerodynamics for cycling, e.g. handlebars, wheels, body position, etc.
 
  • #4
Yeah, I'd definitely recommend OpenFOAM for that. I'd recommend taking a look at their beginner/tutorial guides and see if that makes sense to you.
 
  • Like
Likes deltapapazulu
  • #5
Thank you for your reply. It is a good lead.
 
  • #6
what was your impression of openfoam?
 
  • #7
I'm not the original poster, but my impression of OpenFOAM is that it's a powerful software package that has broad industry support, but isn't intended for anyone new to CFD... and neither is the documentation. I echo the OP's statement "There is NOT a good internet resource base/community for jumping into this cold turkey" -- and that includes the OpenFOAM Wiki and other associated documentation.

I've spent two solid weeks using OpenFOAM with SimFlow (free version) as the GUI front end for OpenFOAM, and that helps a lot, particularly SimFlow's cookbook step-by-step tutorials. But even that is lacking any explanatory clarity in what I'm doing and what all those options and settings mean.

For example: I'm trying to do a CFD analysis of a simple rocket body with an annular indentation and protrusion. This, obviously, is an axisymmetric problem. It took me a while to figure out that I needed a wedge mesh -- but there is ZERO information on:
  • Is the wedge angle adjustable? (doesn't seem to be)
  • If not, what is the fixed angle being used? Do I even need to know this?
  • How large should the mesh volume be compared to my rocket body?
  • Is the surface area in the force monitoring supposed to be the entire cross sectional area incident on the airflow, or just the area enclosed by the wedge mesh? And why is surface area and length ignored by the tutorials?
  • How do I adjust the drag coefficient to represent the whole body? (The Cd result seems consistently ridiculously low with a wedge mesh, in 6 different geometries I've simulated.)
  • If the simulation doesn't converge after a few thousand iterations, what do those initial condition parameters mean, so I can set them? (I had a problem that didn't converge so I tweaked some initial conditions at random and then the solution converged, but I had no idea what I was doing, and that is disturbing.)
  • Why is it when I set up the problem with some turbulence, I see no turbulence in the streamlines generated in ParaView, especially since I know the tail end of the body generates a lot of turbulence all on its own?
I could go on and on. This is a partial list of questions yet to be answered. Some others I have already found answers. I get the impression that a simple axisymmetric wind tunnel problem is too trivial for those "in the know" to bother writing about.

I was once an undergraduate physics major, over 30 years ago. Since then, my career has been mostly project management and software development rather than physics, so there's much physics I've forgotten -- and anyway we never learned fluid dynamics back then, let alone CFD. So I'm approaching this as a total newbie who has the background to understand things, if only they were explained somewhere. The documentation assumes a lot of prior knowledge that a newbie doesn't have.
 
  • Informative
Likes anorlunda
  • #8
I definitely agree that it isn't very beginner friendly. CFD is very sensitive to a lot of inputs, and unfortunately, as you said, there's a lot of knowledge that isn't well documented and is just common among people who work with it frequently. Initial conditions and boundary conditions are important, and turbulence models are a massive subject even just on their own. My recommendation for OpenFoam above wasn't because it was particularly easy or beginner friendly (it's not, but it's not any worse than any of the other ones in my experience) but because it's a significantly better CFD package than any of the ones built into Solidworks or similar CAD packages. As for your specific questions (with the caveat that it's been a while since I've run anything in openFOAM, so I make no promises here):

  • Is the wedge angle adjustable? (doesn't seem to be)
  • If not, what is the fixed angle being used? Do I even need to know this?
I've never cared about wedge angle (I also haven't done much with axisymmetric problems), but I believe it should be 5 degrees, and can be checked with checkMesh. From my quick googling, apparently it's configurable in extrudePatchDict .

  • How large should the mesh volume be compared to my rocket body?
Depends a bit on your flow geometry, but I'd think 8 or 10 radii would be more than sufficient.
  • Is the surface area in the force monitoring supposed to be the entire cross sectional area incident on the airflow, or just the area enclosed by the wedge mesh? And why is surface area and length ignored by the tutorials?
Should be the whole wetted area of the object, though as I said, I haven't done much axisymmetric stuff
  • How do I adjust the drag coefficient to represent the whole body? (The Cd result seems consistently ridiculously low with a wedge mesh, in 6 different geometries I've simulated.)
Have you checked what it's using for a reference area? My guess is that it's not using the cross section, but rather the complete surface area (or something like that).
  • If the simulation doesn't converge after a few thousand iterations, what do those initial condition parameters mean, so I can set them? (I had a problem that didn't converge so I tweaked some initial conditions at random and then the solution converged, but I had no idea what I was doing, and that is disturbing.)
Which parameters were you messing with, and which ones are you curious about?
  • Why is it when I set up the problem with some turbulence, I see no turbulence in the streamlines generated in ParaView, especially since I know the tail end of the body generates a lot of turbulence all on its own?



What turbulence model are you using, and what's your reynolds number? I would expect some turbulence in the object's wake, so it's surprising if you aren't seeing that.
 
  • #9
Thanks for responding. Yes, I'll agree that OpenFOAM is a better CFD engine than the ones built into CAD packages; I surmised that much from my online research before deciding to go with it. But I also knew I would need some sort of GUI front end to make sense of it.

cjl said:
I've never cared about wedge angle (I also haven't done much with axisymmetric problems), but I believe it should be 5 degrees, and can be checked with checkMesh. From my quick googling, apparently it's configurable in extrudePatchDict .
OK, looks like I'll have to delve into OpenFOAM proper. I've been avoiding that, instead exposing myself only to the SimFlow front end. As far as I can tell, SimFlow doesn't tell you the wedge angle or let you adjust it, but it does show you a 3D view of the mesh you're setting up.

As far as the area used for force calculations:
Should be the whole wetted area of the object, though as I said, I haven't done much axisymmetric stuff
In that case, the drag coefficient is way too small. OpenFOAM is giving me 0.001 and I know it should be somewhere between 0.1 and 0.2. It's been consistently giving me unreasonably low numbers for drag coefficients for several different geometries I've run, some with a box mesh rather than a wedge mesh.

Which parameters were you messing with, and which ones are you curious about?
Well, all of them. The initial condition U with three components seemed obviously velocity in the x,y,z directions, so I set them as my initial flow velocity. The other three, p, k, ##\omega##, and vt default to 0, 1, 1, 1 respectively, and I have fiddled with those randomly and got a solution to converge but didn't know what I was doing.

With respect to not seeing turbulence in the flow lines:
What turbulence model are you using, and what's your reynolds number? I would expect some turbulence in the object's wake, so it's surprising if you aren't seeing that.
I'm using RANS modeling k-##\omega## SST, because that's what this SimFlow tutorial suggested using. I looked up the different turbulence models available and agreed it was appropriate for my needs.

The Reynolds number is about 2,000,000. It's a water rocket body (picture attached), made from a 2-liter Coke bottle with a nose cone, the whole thing being about 0.4 m in length traveling at 77 m/s through air at 300°K (kinematic viscosity of air is about 1.57e-5 m2/s).

I see smooth laminar flow, although now I see there are a couple of small whorls close to the bottle opening (nozzle) end. I had to position the ParaView initial flow line in exactly the right place at the nozzle to see these. But I would expect separation at the shoulder of the bottle. I attached a picture of the nozzle end flow lines.

I fully admit I don't really know what I am doing. After struggling with this for 2 weeks I was ecstatic that I finally got any result at all... I just now question the results, or more accurately, the steps I took to get them.
 

Attachments

  • cokebottlewithnose.png
    cokebottlewithnose.png
    6.8 KB · Views: 315
  • flowlines.png
    flowlines.png
    52.3 KB · Views: 286
Last edited:

1. What is CFD software and how does it work?

CFD (Computational Fluid Dynamics) software is a computer program used to simulate and analyze the behavior of fluids and gases. It works by solving complex mathematical equations to predict fluid flow, heat transfer, and other related phenomena.

2. What are the benefits of using CFD software for beginners?

CFD software allows beginners to visualize and better understand complex fluid dynamics problems. It also provides a cost-effective and time-efficient way to test and optimize designs before physical prototypes are created.

3. What are some common features of beginner-friendly CFD software?

Some common features of beginner-friendly CFD software include user-friendly interfaces, pre-defined templates and tutorials, and the ability to import and export geometry and data from other software programs.

4. How can I learn to use CFD software as a beginner?

As a beginner, it is recommended to start by learning the basic concepts and principles of fluid dynamics. Then, familiarize yourself with the user interface and features of the CFD software you are using. You can also take online courses or attend workshops to improve your skills.

5. Are there any free or open-source CFD software options for beginners?

Yes, there are several free and open-source CFD software options for beginners, such as OpenFOAM, SU2, and Code_Saturne. These programs are continuously developed and maintained by a community of users, making them a cost-effective and accessible choice for beginners.

Similar threads

  • Mechanical Engineering
Replies
1
Views
1K
  • Programming and Computer Science
Replies
1
Views
992
  • Mechanical Engineering
Replies
9
Views
6K
  • STEM Career Guidance
Replies
16
Views
7K
  • Mechanical Engineering
Replies
13
Views
5K
  • Calculus and Beyond Homework Help
Replies
14
Views
915
Replies
24
Views
55K
  • New Member Introductions
Replies
2
Views
214
Replies
13
Views
2K
  • STEM Career Guidance
Replies
8
Views
2K
Back
Top