Week 4 Challenge : CFD Meshing for BMW car
Aim: To perform 2D and volumetric Mesh on the given model
Procedure:
- When viewed in PID mode, a lot of single cons are present and topo should be given immediately
- The cons resolution is not good, the shapes are not accurate.
- Use the Fine option in auxiliaries and give perfect shapes to cons
- To perform this operation on a larger scale, Mesh→Length→set length as 1mm→Set macros as 1 mm
- Since the model is nearly symmetric, the symmetry option can be used to mesh the other part
- To use the symmetry option: Transfer→copy→Entity→Middle click→Symmetry→Chosses a plane
- Right-click to deselect
- Delete the other side except the symbol using the delete option
- Six volumes will be created, the volume inside the car, the Volume inside 4 wheels, the volume between the car and the wind tunnel
- The surface outside the car is bothered and not inside
- The inside surface is deleted so that there won't be any triple cons in the outside surface(Triple cons create unwanted volume)
- Two closely placed single cons can be pasted to double-cone
- If a triple cone is present despite only 2 surfaces joining, there may be a small surface present which can be deleted by selecting all surfaces in that region and deselecting bigger visible surfaces
- To retrieve any deleted surface do undelete
- Two cons can be extended to meet at a cone by selecting the cones and the respective faces where they are present
- There shouldn't be any volume formed inside any specific feature
- delete unwanted hotpoints to get the desired shape
- If there is a bubble present release that hot point
- The surface exposed to airflow is colored grey using the orient option in the faces
- If multiple cross edges are present there will be multiple surfaces
- Use the project cut option to cut in a perpendicular manner
- The heal cut option from the right bottom is chosen while using the cut operation while cutting through a curved plane
- Sharp corners must also be avoided on the end surfaces
- If the preview of both coons and fitted are not good small surface must be created part by part
- Remove close cuts so as not to make any problems while the volumetric mesh
- By now lights, emblem, grill, and glass are done. (Topo clean up)
- If there is complicated surface to create, create smaller conjointed surfaces
- The model must be closed completely from outside
- There must be a common volume through out the car
- Four tyres will have four different volumes and the car will have another separate volume
- do not create small surfaces because they may cause problem in meshing, instead delee adjacent surfaces and create a new bigger surface
- Do checks on geometry to make sure the geometry is having no errors
- Delete the vertical surfaces where tyre is coming in contact with
- cons to curve option is used from curves to imprint the curve on the model if when the face is deleted
- All distorted surfaces are deleted
- And curves are made through the edge middle part as a reminder of the previous shape
- First delete surfaces interfering with the wheel
- The more number of surface the more accurate the surface will be
- There are common volumes present in the silencer, which will be considered while doing 3-D mesh
- Delete all unchecked surfaces: uncheck on the screen→right click→show only
- After removing all single cons except the plane of symmetry, check with only enabling single cons, and after that use geometric checks
- Check the preview of the single cons and make sure they are from the plane of symmetry
- There is a triple cone present. Release the cone→Delete unnecessary hot points→Topo→Triple cone no longer presents
- A needle surface is also present. Check its neighbors and delete it.
- Topological clean-up ends here.
- Proceed to assign PIDs
- To apply PID isolate that part using the PID region
- To see the assigned color of the PID choose PIOD in draw mode
- PIDs named body, lights, windows, wheels and rim, optical rearview mirror, grills, silencer, and logo are created
- All the PIDs are assigned except the body and the rest of the model is assigned to the body
- To delete the rest of the PIDs compress them
- The next step is to give mesh length to each PID
- Tetra CFD elements are used to give volumetric mesh
- Insert the OPENFOAM deck in the window, beside the volumetric mesh
- Provide quality criteria at the topo
- Shells are 2D elements and solids are 3D elements(In Quality criteria)
- Tria elements are used but tria alone cannot be enabled in quality criteria, so quad is also kept
- Quality criteria and Mesh parameters can be saved with respective mesh parameters
- While meshing the body, the target length is given in 3mm in mesh parameters
- Measure the distance between smaller surfaces that may fail the quality criteria of min. length and remove the cut using cut→Right click
- Delete the least significant cone in the previous step
- Delete unnecessary hotpoints that may fail quality criteria
- Double cons are shown as green lines in the mesh
- There shouldn't be any parallel lines too
- The visibility of the stored measurements can be changed from the database side box. Double click will give detailed information on the stored distances.
- See the smallest distance in every PID and give the min and max mesh length accordingly
- After topo clean-up quality criteria and mesh parameters are given
- The skewness and angle values must be the same throughout the models
- Tri element type is chosen
- Give length as 1mm in perimeter and macro in mesh(for logo)
- Mesh generation>spot mesh>visible
- Go to hidden mode, entity view, wire
- Reconstruct>off: To reduce the number of off elements
- Deleting the hot points in mesh mode is favored over topo mode because it doesn't delete mesh
- Grills are meshed with .3 min length, 3 max length, and 1 target mesh length
- Logo meshed with .4 min length, 3 max length, and 1 target length
- For window PID, 2 target length, 1 min length and 3 max length
- For lights PID, target length is 4, 3 min length and 5 max length
- The off elements for light PID is mainly max length
- Give mesh parameters, target length average to get rid of these off-elements
- Elements>Split: To split meshed trias
- Right-click to take icons outside
- Shell Mesh>Smooth: To reduce off elements
- Grid>Move>Free: To move the node with respect to XYZ coordinates
- Grid>Move>Guide: To move the node with respect to the surface
- Spit and move the nodes
- Split and smooth(easiest)
- Move surface is used here
- Grid>Origin: To undo the move option
- For Rims and Tyre PID, 2 target length, 1 min length, and 3 max length
- PIDs with no contact with each other are meshed first. So body PID is kept to mesh the last
- Grids>Paste: To paste one node to the other
- Macro>Cut>In the options list, choose macros, join, reconstruct in the mesh section, and choose the cut to delete to remove the off elements(in the mesh window)
- To delete the cons in topo mode to get rid of off elements min length, create a cut to keep the shape and delete the cone
- Show only the unmeshed surface give spot mesh and reconstruct
- Delete the most unnecessary cut
- For silencer PID, the target length is 3, 1 min length, and 5 max length
- For rearview mirror PID, the target length is 2, 1 min length, and 3 max length
- For body PID, the target length is 3, 1 min length and 5 max length
- Only give mesh to macros as the body PID comes in contact with other PIDs with different mesh target lengths and check whether the other mesh still exists or not
- Give only perimeter length and remove the line in contact with 2 different PIDs
- Another approach is to give spot mesh without giving perimeter or macros. This will create smaller elements near other PIDs and the majority be 3 mm target length(creating 1 mm mesh throughout)
- Erase> visible: To erase a mesh
- After getting rid of off elements in the body PID, the symmetry option is used to complete the model
- Set view using View> Top view
- Transform> Copy> Entities > Symmetry> Mirror 3 point plane> Select 3 points to define the symmetry > Finish
- Paste the single cons if present in the plane of symmetry
- Delete hot point in mesh while keeping the mesh
- If a surface is deleted while pasting the cons mesh them
- The perimeter length while just choosing the surface will show the target length
- Give spot mesh to the surface
- Checks> Geometry> Enable unmeshed macros and single cons before doing volumetric mesh
- The wind tunnel is when the car moves how the air around it interacts with the car, wind flow, etc
- Create a wind tunnel and mesh it
- The wind tunnel must start 4x distance from the front point of the car(x is the length of the car=1300mm)
- Read face of the wind tunnel must be x distance from the back end of the car
- The top face of the wind tunnel must be 3 x the distance from the car's top face and the bottom surface must be near the wheels(because CFD behavior is above the car not below the car)
- The side faces of the wind tunnel must be x distance from the side ends of the car
- Create new points and then new surfaces for the wind tunnel
- Points> relative: To create points relative to the points on the surface
- Dx, Dy, and Dz in relative can used to denote the direction like 0, 0, 1, and distance given below. The Z coordinate will take that distance in this case.
- Curve> Create > Choose the points(and middle click): To create curves
- Join the bottom end points using the curve
- Create a surface using filled and assign it to a new PID BaseSurface_Tunnel
- Faces> Offset: Used to create a surface with an offset
- Delete all the curves and points made
- Create PIDs nameli TopSurface_Tunnel, SideSurface_Tunnel, FrontFace_Tunnel, RearFace_Tunnel
- Wind tunnel must be meshed with finer elements in regions near the car
- Remove quality criteria and mesh the top surface with a 100 mm target length(both perimeter and macros)
- The top surface has 100 mm mesh length and the bottom surface has 20 mm as mesh length
- Perimeter> Spacing(Biasing> Geometric>Factor 1.1>dmin20>dlimit100): To give variable mesh length along a cone
- Mesh every surface one by one
- 15 and 25 is min and max lengths for the bottom surface
- 80 and 120 is min and max lengths for the top surface
- Then mesh other surfaces
- For volumetric mesh, Volumes >Define >Autodetect
- We are only interested in the volume between the wind tunnel and the car body
- Delete unwanted volumes
- RightClick>Remesh: To mesh the volume
Learning Outcome: Learned how to do surface cleanup. Learned to do surface and volumetric mesh with varying mesh lengths and for different PIDs with different mesh lengths. And to create a wind tunnel.
Result: The CFD analysis is conducted on the wind tunnel volume.
Conclusion: It is easy to use the symmetric option if surfaces are symmetric. It saves a lot of time doing topo cleanup. Wind tunnel volume is meshed to understand the CFD applications. Use smooth, reconstruct, split, move, and join if off elements are present while meshing due to quality criteria.
*The screenshots when added in this text space are causing trouble in loading and uploading. So they are attached below. Kindly look into it.
**The result file: https://drive.google.com/file/d/1yUnSYTzEg2Sli0UI6j55-Sd0E7kg0Fk4/view?usp=sharing