![]() |
Greenpower VWT |
|
Greenpower VWTCFD Wind Tunnel SystemT.Barnaby - Rotary Racer - Chipping Sodbury SchoolIntroductionThis page gives information on the Greenpower Car Virtual Wind Tunnel system developed to simulate the Rotary Racer's aerodynamics performance. It has been developed using the Open Source OpenFOAM CFD (Computational Fluid Dynamics) software together with some pre-processing, post-processing and web interface code. This uses heavy weight mathematics to simulate the airflow over the cars shape in a virtual wind tunnel.To use, the cars design has to be drawn, to scale, in a 3D CAD program. We have used the Open Source, Blender program to achieve this although other programs can be used such as Pro/Enginneer andPro/Desktop. Indeed any 3D CAD program can be used as long as it is able to output files in ".stl" stereolithography format. The input to the VWT is a small set of configuration parameters and an STL file which is exported from the 3D CAD program. The cars design is then be simulated in the wind tunnel and the overall aerodynamic drag in Newtons and CD values calculated. The VWT software also provides data for a 3D data viewing package, paraview, to allow streamers, arrows and coloured "hot spots" to be shown. This allows the aerodynamic faetures of the car to be investigated and refined. We have made this VWT software available from the web in a simple way so that the pupils can easily use it to simulate the cars performance. This does not have the full features of the native software CFD but is more accessible and easier to use. The software is not fully tested ... Although the VWT produces an absolute drag force in Newtons and a CD value, it will not be that accurate. The VWT is best used to determine if design changes increase or decrease the drag value with respect to another similar design. How To Use the Web VWT
The web VWT is simple to use, but limited in features. It runs on a Linux based computer cluster with 12 to 20 CPU's. Example Car DesignsInformation on ResultsThe web results page shows the Drag in Newtons at 13m/s (46.8 Km/H) in the X, Y and Z directions. The X direction is the one we are most interested in for Greenpower cars. A lower number means better aerodynamics and increased speed in the race. The Drag forces based on preasure and viscous are given. The Total forces are the ones we are interested in.The results also display the calculated Cd value. This is based on a calculated frontal area. A Greenpower car, with 25 Amps flowing into the motor uses 600 Watts of power (24V * 25A = 600W). Assuming a motor and gearing efficiency of about 65% this results in 390 Watts available. The speed of the car, assuming the gearing is set correctly, is given by: speed = power / dragForce
dragForce = (carRollingFrictionCoeff * weight * 9.8) + (0.5 * airDensity * carAirDragCoeff * carFrontArea * (speed * speed)) Assuming the cars rolling resistance is about 10N and the car moves at 13m/s (46.8Km/H) at 25 Amps, then the air drag is 30 - 10 = 20.0 Newtons. The air drag is proportional to the square of the velocity. So reducing the cars airdrag by 10% will yield, approximately, a 3.00% increase in speed. So reducing the drag from 20N to 18N, at the same speed, would increase the cars maximum speed to 13.39m/s (48.2Km/H). Details of SimulationThe VWT software creates a VWT of size 8x4x3 meters. It creates a 10x10x10 set of cubes within this space. The cars design is then placed in this cubic grid and the grid is "refined" around the edges of the cars surface. This subdivides the cubes until there are a lot of cells just around the surface of the car and a little way beyond. The VWT is set to use just under 1 million cells. The cells that cross the cars surface are marked.The software then sets up some initial conditions with a 13m/s airflow from the left and the road moving at 13m/s (46.8 Km/H). It then calculates the air pressure, air velocity and other values for each cell in the VWT taking into account all the neighboring cubes. This set of calculations is repeated to see how the airflow changes with time. After about 120 itterations the complete set of data for all VWT cells is written to a set of files and the pressure on each cars surface is calculated to determine the overall force in Newtons in each of the major axis. The results are stored for retrieval later. Picture of simple car in the VWT with streamers![]() Picture of Cube Showing turbulence![]() Some Rotary Racer Pictures![]() ![]() ![]() ![]() Using Blender for 3D Design EntryYou can download Blender from www.blender.org for Linux or Microsoft Windows. It is free Open Source software. Blender is quite a sophisticated 3D drawing and animation package. However, Blender is not really a 3D engineering CAD, it is more of a 3D drawing package. It has a "unique" GUI and takes a little getting used to but works well for this purpose.Make sure the design is scaled correctly (2.5 meters long etc) and is of the correct orientation (-X to the front of the car, Y is the sideways dimension and Z is the vertical dimension). Notes:
Using Pro/Desktop for 3D design entryThe Pro/Desktop package can be used for car design entry. Note that, by default, dimensions are in mm.
You will be interested to know that there is a way of exporting STL from Viewing the VWT output data using ParaviewYou will need the "paraview" application installed on your computer to do this.First download the result data. This is in the form of a "zip" archive of VTK files. Unpack this archive onto your local hard disk. We have provided a basic Paraview state file, vwt.pvsm, that can be loaded using the "Load State" button of Paraview. This loads the main data files and sets up some basic views. Alternatively you can manually open the "VTK/vwt_200.vtk" and the "VTK/car/car_200.vtk" files using the Paraview program. Click on the "Apply" buttons to load the data sets. Then to view streamers:
Installing CAD programs on Microsoft WindowsA CD and USB Drive is available with the necessary Microsoft Windows applications for editing car 3D CAD drawings and viewing the resulting data from the VWT. Alternatively they can be downloaded over the Internet. The actual VWT simulation is performed on a Linux system accessed via the Internet.For the CD/USBDrive Installation, perform the following actions:
The results are viewed via the web. The results give the overall forces on the car at 46.8Km/H. The Paraview application is used to view the VWT's output data in graphical form. The VWT's data can be downloaded from the simulator via the web. This is in a "zip" archive which needs to be unpacked to the local disk drive before use. Paraview can then view this information and put on streamers, or show pressure zones in colour etc. The Programs can be downloaded from the following Internet web sites:
Note that for Blender to access files on a network server, the network servers path needs to be mapped to a local drive letter. Web Links |
||||||||||||||