Model Dimensions
The ultraFluidX 2023.0 Setup guidelines for vehicle aerodynamics, provides various setup recommendations which rely on the model dimensions and position. HMCFD’s Case Setup environment allows you to gather this information through the GUI and the Python Window.
Python Window
- Open the Python Window by going to or pressing F4 on your keyboard.
-
Execute the following:
- from hwx import inspire
- model = inspire.getActiveModel()
-
model.axisAlignedBoundingBox
Output: Box(x=4.96514, y=2.1354, z=1.42625)
-
model.axisAlignedBoundingBox.minMax
Output: (Point (-0.9074339866638184, -1.0676989555358887, -0.010730000212788582),
Point (4.057706832885742, 1.0676989555358887, 1.415518045425415))
GUI
- Select all parts in the viewer.
-
Click on the Measure tool.
Figure 1. A bounding box fitted to the selected parts will show along with its X, Y, Z dimensions. - Given that z-min is zero, the vehicle’s centerline is at y = 0, and the vehicle can be assumed to be symmetric about the Y plane, we can derive the Y and Z mins and maxes from this data. One way to find x-min is to use the RL Box creation tool.
- Click on the .
- Click on any surface of the body.
- From the Length to 4.07 (shown by the Measure tool). , set the
- Orient your model to the Right view.
- Drag the box along X until the front and rear of the box appear to be just touching the front and rear surfaces of the model respectively.
- Note the x-min and x-max values in the .
- Delete the box by right-clicking on the part in the .