Liquid Level Sensors or Float Switches can be used to calculate the volume of liquid available in a bottle or container.

The float sensor will report back the height of the liquid, which can then be used to calculate the volume, assuming the dimensions of the bottle are know.

For simple, cylindrical bottles; the volume will increase directly with liquid level and this should be easy to calculate.However, for bottles with unusual geometry, the relationship between volume and liquid level may need more investigation.

The steps below show how SolidWorks can be used to calculate the relationship between volume and liquid level in a bottle with unusual geometry.

1. Model the Bottle geometry (using “Shell” method).

2. Use “Move-Copy Body” to create a copy of the body in the exact place of the original.

3. Create a new body that completely fills the internal space of the Bottle.

4. Use “Combine” with the “Subtract” feature to subtract one body from the other. The copied Bottle body will be absorbed.

5. Add an Extruded Cut for the liquid level.

6. Create a new Design Study.

7. Create a new Model Dimension Parameter and link it to the Extruded Cut.

*(Open Parameters, select dimension on sketch, type in a name)*

8. Add a “Sensor” for the Volume of the liquid body.

9. Set the Min, Max and Step values.

10. Run the Design Study.

11. Export the results to Excel. Create a lined XY Scatter graph.

Finished CAD model

Step 2

Step 3

Step 11