Build my own virtual wind tunnel

In summary, you can use a virtual wind tunnel to study the drag coefficients of projectiles and rockets at various speeds.
  • #1
darkdave3000
242
5
I want to build a computer simulated wind tunnel. I have experience building physics simulators. I undersand that there are already some existing free wind tunnel simulators out there, but do they work at supersonic speeds?
I want to predict the drag coefficient of various rockets and bullets at various speeds both sub and supersonic speeds.
Can I do that with free existing software? If not how should I go about to code my own wind tunnel?

I can create particle physics where each particle represents a mole or even a molecule. But I think molecules will be too many and a strain on the cpu. Would I need to give the particles an electrical charge so that they repel each other if too close due to electron - electron interaction?

I can give the particles (representing moles) mass , velocity and momentum. I can also feed similar properties into the object in question.

Once I work out the Drag coefficient for various bullets and rockets at various speeds I will add rockets and bullets into my "what if" simulator. I can then make a simple game out of it.
 
Last edited:
Physics news on Phys.org
  • #2
You may find that the spec of a computer which can do this job turns out to make it too expensive for you.
 
  • #3
sophiecentaur said:
You may find that the spec of a computer which can do this job turns out to make it too expensive for you.
I can decelerate time in the simulator and increase number of particles and leave the computer on over night for a more accurate solution.

Otherwise the solution doesn't need to be perfect.
 
  • Like
Likes sophiecentaur
  • #4
People get supercomputer awards in the millions of hours for this. "Overnight" might not cut it.
 
  • #5
its not for the airforce
just for a simple gaming sim.
 
  • #6
darkdave3000 said:
its not for the airforce
just for a simple gaming sim.

The does not matter. There are limits to how much you can simplify things and still get sensible answers; and the only way to to do these simulations on a normal computers would be to simplify things to the point where the the numbers you would get out would have no relation to reality whatsoever.; at least if you want your simulations to work with generic geometries. You would be better off just looking things up in a table or just guessing.
 
  • #7
darkdave3000 said:
its not for the airforce
just for a simple gaming sim.
What you are describing vs what you are saying you want don't match. Solving for a flow condition from scratch in a long-running (hours/days) computation is called Computational Fluid Dynamics (CFD). It is a science/engineering tool that is highly specialized, difficult and expensive. Trying to design a piece of CFD software isn't something you are likely to be able to handle until you are working on your aerospace engineering phd.

Video games, on the other hand, use highly simplified models for aircraft performance in order to provide realtime (30 times a second) performance calculation.

Can you clarify what you are really after?
 
  • #8
f95toli said:
The does not matter. There are limits to how much you can simplify things and still get sensible answers; and the only way to to do these simulations on a normal computers would be to simplify things to the point where the the numbers you would get out would have no relation to reality whatsoever.; at least if you want your simulations to work with generic geometries. You would be better off just looking things up in a table or just guessing.

Sim can be left running for several days, weeks, months there's no limit. The progress can even be saved and resumed to match the performance of a super computer running at proportionally shorter time frames while maintaining as many variables/particles needed to get practically useful and accurate values.

Also there are already free online virtual wind tunnels some of which were mentioned in this forum:

https://www.physicsforums.com/threads/drag-calculation-in-3d-virtual-wind-tunnel.133939/ Are you saying they have no use either?

Purpose: I want the Drag coefficients of rockets and bullets at various speeds from 0 to mach 5 for several gaming sim projects. Also for mortars and artillery shells and grenades from grenade launchers. With a virtual wind tunnel I can work them out instead of being at the mercy of the internet for available info.
 
Last edited:
  • #9
220px-14ilf1l.svg.png


So... yeah I would just make it up. You can design a fake wind tunnel which might give realistic/intuitive results. Take these simple drags and when the mach number increases, increase the drag. So if you put 1 shape in, the game just increases the drag a set amount. If you have a weirdly shaped object, just count the number of squares and points for example. If it is a rough surface, make it turbulent flow. If it goes very high mach number, increase the drag a lot due to chemically reacting flow.
I think its your best bet.
 

Attachments

  • upload_2017-5-3_14-37-33.png
    upload_2017-5-3_14-37-33.png
    45.5 KB · Views: 522
  • #10
fahraynk said:
View attachment 198204

So... yeah I would just make it up. You can design a fake wind tunnel which might give realistic/intuitive results. Take these simple drags and when the mach number increases, increase the drag. So if you put 1 shape in, the game just increases the drag a set amount. If you have a weirdly shaped object, just count the number of squares and points for example. If it is a rough surface, make it turbulent flow. If it goes very high mach number, increase the drag a lot due to chemically reacting flow.
I think its your best bet.

I don't think it will come to reading that many pages, but I would prefer to do the research, I think I have gathered enough keywords from this thread and another:

https://www.physicsforums.com/threads/drag-calculation-in-3d-virtual-wind-tunnel.133939/

already to get started reading on wikipedia on the related topics:

1. Reynolds Number
2. Computational Fluid Dynamics
3. Drag Coefficient
4. Stokes Formula (need elaboration on this) "Diff Eq form of the Navier-Stokes fluid flow equations,"
5. Any further suggestions from this community will be appreciated

The thread also gave me a few leads with existing software simulated wind tunnels:

"There seems to be several (free) 3D Navier-Stokes solvers in the net, e.g.

http://fun3d.larc.nasa.gov/chapter-1.html
http://wissrech.iam.uni-bonn.de/research/projects/NaSt3DGP/index.htm
http://www.fenics.org/
http://www.opencfd.co.uk/openfoam/index.html#openfoam
"
I am yet to check them out to either use them for calculating Drag Coefficients at various speeds(subspnic and supersonic) of rockets and bullets and/or use them as a base to create my own simulated wind tunnel.

Usually with programming in scientific behaviours into simulators I skim through the materials and look for one or two formulas that will be programmed into the software as a key algorithm. I would also need to know how to use the formula correctly so once I find what I am looking for I do more reading and research surrounding the formula so I can put it into context. In my other thread:

https://www.physicsforums.com/threa...t-ball-shot-bullet.910655/page-2#post-5753842

I was trying to find the formula for predicting changes in the Drag Coefficient for a sphere at various speeds and successfully integrated this into my software, the screenshots of which are available on yet another thread

https://www.physicsforums.com/threa...sing-at-supersonic-speed.913205/#post-5753621

I created to try and get confirmation of certain interesting outcomes of my simulator on the Hiroshima Mushroom cloud which appeared to be rising at Mach 1 in my simulator and at times slightly beyond Mach 1. Turns out there is some evidence that my simulator was correct in predicting a supersonic mushroom cloud that broke the sound barrier and thus created secondary shock-wave independent of the blast.

The supersonic ball of hot gas rising in the mushroom cloud was assumed to be a sphere so the drag formula as well as buoyancy related formulas simulated a supersonic "ballistic" mushroom cloud which another community member verified has been observed in reality by citing a scientific article.

Now I want to do the same for non spherical shaped objects, should I use the same formula I used to adjust the Drag Coefficient for the sphere for non spherical shapes as a rough approximation to save my self the trouble of building a simulated wind tunnel?
http://www.lpi.usra.edu/meetings/lpsc2009/pdf/2059.pdf

David Ong
Portfolio/CV
Http://Simulti.Tech
 
Last edited by a moderator:

1. What is a virtual wind tunnel?

A virtual wind tunnel is a computer simulation of a physical wind tunnel, used to study the effects of air flow on objects such as airplanes or buildings. It allows scientists and engineers to test and analyze different designs and conditions without the need for a physical wind tunnel.

2. What are the benefits of building my own virtual wind tunnel?

Building your own virtual wind tunnel can save time and resources compared to using a physical wind tunnel. It also allows for more flexibility and control over the testing conditions, as well as the ability to easily modify and repeat experiments.

3. What equipment or software is needed to build a virtual wind tunnel?

The specific equipment and software needed may vary, but in general, you will need a computer with a powerful processor and graphics card, as well as specialized software for creating and running simulations. Some commercial software options include ANSYS Fluent, OpenFOAM, and STAR-CCM+.

4. How accurate are the results from a virtual wind tunnel compared to a physical wind tunnel?

The accuracy of virtual wind tunnel results depends on the quality of the simulation setup and the software used. With proper validation and verification, virtual wind tunnels can provide results that are comparable to physical wind tunnels. However, some factors, such as turbulence and flow separation, may be more difficult to accurately simulate in a virtual environment.

5. Are there any limitations to using a virtual wind tunnel?

While virtual wind tunnels offer many advantages, they also have some limitations. For example, they may not be able to accurately simulate extreme conditions or certain types of complex flows. Additionally, the accuracy of the results may be affected by the quality of the simulation setup and the assumptions and simplifications made during the simulation process.

Similar threads

Replies
15
Views
2K
Replies
69
Views
10K
Replies
5
Views
926
  • STEM Academic Advising
Replies
2
Views
844
Replies
20
Views
2K
  • Mechanical Engineering
Replies
11
Views
2K
Replies
10
Views
2K
  • Introductory Physics Homework Help
Replies
1
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
2K
  • General Engineering
Replies
7
Views
2K
Back
Top