Skip to main content
emobility.academy
B.Tech / BEPowertrain & mountsIntermediate About 5 weeksSolidWorks & Alias

Motor Controller Enclosure with Integrated Heat Sink

Design a sealed motor-controller enclosure with an integrated finned heat sink in SOLIDWORKS, then use SOLIDWORKS Flow Simulation to predict MOSFET mounting-plate temperature in natural and forced airflow, and iterate fin geometry to meet a temperature limit.

Tools: SOLIDWORKS · SOLIDWORKS Flow Simulation

Motor Controller Enclosure with Integrated Heat Sink: Students handling a two-wheeler BLDC hub motor at DIYguru
Representative photo from DIYguru's EV lab, not of this specific project.

The problem

Motor controllers in two- and three-wheelers often sit under the seat or floor, sealed against water and dust, and must reject tens to hundreds of watts of switching and conduction losses. The enclosure is the heat sink. Getting fin count, thickness and orientation right decides whether the controller derates on a hot afternoon, and Flow Simulation lets students test this before cutting metal.

Objectives

  • Estimate controller heat loss from an example current and device data.
  • Model a die-cast or extruded aluminium enclosure with fins, a lid, gasket groove and cable glands.
  • Set up conjugate heat transfer in Flow Simulation with heat sources, materials, contact resistance and ambient conditions.
  • Compare natural convection with forced airflow from vehicle motion.
  • Iterate fin geometry and report the design that meets the temperature limit.

What you need

Tools and toolboxes

  • SOLIDWORKS Part and Assembly — Enclosure body, fins with Linear Pattern, lid, PCB and device placeholder bodies.
  • SOLIDWORKS Flow Simulation — External conjugate heat transfer with gravity, volume heat sources, contact thermal resistance and surface and point goals.
  • Configurations — Fin count, height and thickness variants for a parametric study.
  • Excel — Loss estimate and a hand estimate of heat sink thermal resistance for comparison.
  • SOLIDWORKS Drawings — Enclosure drawing with draft, gasket groove and IP-rated gland positions.

Software

  • SOLIDWORKS 2023 or later
  • SOLIDWORKS Flow Simulation (separate licence)
  • Excel

Extra parts and data

  • Thermocouple or thermal camera and a bench controller (optional) — A measured plate temperature at a known loss is the best way to check the simulation.

Key concepts

Conjugate heat transfer
Solving heat conduction in solids together with convection in the surrounding fluid, so fin temperature and air flow affect each other.
Thermal resistance
Temperature rise per watt between two points, for example from device case to ambient. It allows quick hand estimates and comparison with simulation.
Natural versus forced convection
In natural convection, buoyancy drives air along fins, so fin spacing and orientation matter. Forced flow from vehicle motion usually cools better but is not available when parked.
IP rating
IS/IEC 60529 codes such as IP65 or IP67 describe dust and water protection. A sealed enclosure cannot use internal airflow, so all heat leaves through the walls.

Step-by-step guide

  1. 1

    Estimate losses and limits

    Take an example 72 V, 100 A peak controller with six MOSFETs. Estimate conduction loss from on-resistance and RMS current and add a switching-loss estimate from the datasheet, giving a total in the example range of 50 to 150 W at continuous rating. Set a mounting-plate limit, for example 85 °C at 45 °C ambient, and note that device junction temperature limits and thermal resistances must come from the real datasheet.

    Checkpoint: A loss table per device and a written temperature target with the ambient condition stated.

  2. 2

    Model the enclosure

    Model a rectangular base with a thick device-mounting plate, side walls, a lid with a gasket groove and mounting lugs. Add straight fins on the outer face with Linear Pattern driven by global variables for count, height, thickness and pitch. Add draft and fillets suitable for die casting and two bosses for IP-rated cable glands. Use an example cast aluminium alloy from the library.

    Checkpoint: Changing fin count in the Equations dialog rebuilds fins evenly without errors.

  3. 3

    Add internal bodies

    Insert a simplified PCB as a board body and the MOSFETs as small blocks clamped to the mounting plate. Represent the thermal pad or grease layer as a contact thermal resistance rather than a thin body if possible, since very thin bodies need many cells. Remove screws, small holes and text that do not affect heat flow, keeping a separate simplified configuration for the analysis.

    Checkpoint: The analysis configuration has no tiny features and Check Geometry in Flow Simulation reports a valid fluid volume.

  4. 4

    Set up the Flow project

    Run the Wizard for an external analysis with heat conduction in solids and gravity switched on in the real mounting direction. Set air at 45 °C ambient. Assign solid materials, define a volume heat source on each MOSFET body and apply contact thermal resistance between device and plate. Size the computational domain several fin heights around the part, larger above it to capture the rising plume.

    Checkpoint: The project runs to completion and the heat balance reported in the results is close to the total heat input.

  5. 5

    Control the mesh

    Choose a global mesh level suited to the part size, then add a local mesh in a region around the fins so there are several cells across each fin gap and through each fin. Add surface goals for mounting-plate maximum and average temperature and point goals at each device. Run at two mesh refinements and compare the goals, refining further if they still move.

    Checkpoint: Mounting-plate maximum temperature changes by less than 2 °C between the two meshes.

  6. 6

    Check by hand

    Estimate the heat sink's thermal resistance with a textbook natural-convection correlation for vertical plate fins, using fin efficiency and the total wetted area, then compute the expected plate temperature from the total loss. Compare with the simulation. A difference within about 20 per cent is reasonable given correlation uncertainty; a large gap usually points to a wrong gravity direction or a heat source error.

    Checkpoint: Hand and simulated plate temperatures agree within the stated band, or the difference is explained.

  7. 7

    Compare natural and forced cooling

    Clone the project and add an external flow velocity, for example 5 m/s along the fins to represent slow riding, labelled as an assumption because real airflow under a seat or floor is much lower and disturbed. Compare plate temperature with the parked natural-convection case. Note that the worst case is often parked straight after a hard ride, which a steady-state run does not capture.

    Checkpoint: A table of plate and device temperatures for both cases, with the governing case identified.

  8. 8

    Iterate fin geometry

    Use a Parametric Study in Flow Simulation, or the configurations, to vary fin count and height. In natural convection, too many fins choke the airflow and temperature starts to rise again, so look for the optimum spacing. Record enclosure mass and plate temperature for each variant and choose the lightest one that meets the limit in the governing case with a small margin.

    Checkpoint: A plot of plate temperature against fin count showing an optimum, and a chosen design that meets the limit.

  9. 9

    Detail sealing and drawings

    Detail the gasket groove for an example O-ring cord following the seal maker's groove guidance, specify flatness on the sealing face and place glands for an IP67 target, stating that the rating must be proved by testing to IS/IEC 60529. Produce an enclosure drawing and a report covering losses, setup, mesh study, hand check, cooling comparison and fin iteration, with a bench test proposal.

    Checkpoint: A drawing with sealing details and a report with every assumption and a recommendation for a bench thermal test.

Testing & validation

  • Solver energy balance closes and mesh refinement changes peak temperature by under 2 °C.
  • Hand correlation and simulation agree within about 20 per cent.
  • The chosen design meets the temperature limit in the governing case.
  • A bench test at a known loss, if available, matches the simulated plate temperature within a stated band.

Expected results

A sealed controller enclosure with an optimised finned heat sink, Flow Simulation temperature results for parked and riding cases, a fin-count study and a drawing with IP-oriented sealing details.

Take it further

  • Run a transient study of a hard climb followed by parking.
  • Compare a pin-fin design with straight fins.
  • Add a liquid-cooled plate and compare with air cooling.
  • Check enclosure stress from vibration with a Frequency study.

Viva and review questions

Why do more fins not always help?

In natural convection the air needs room to flow between fins. Too many closely spaced fins restrict buoyant flow, so heat transfer per fin falls and there is an optimum spacing.

How did you know the CFD result was trustworthy?

I checked the solver energy balance, refined the mesh until plate temperature changed by under 2 °C, and compared with a hand correlation. A bench measurement would be the final check.

Which case governs, riding or parked?

Parked natural convection is usually worse because there is no forced airflow, so I designed for it.

Learn it at DIYguru

These DIYguru courses and programmes teach what this project needs.

Related EV projects

All 100 SolidWorks & Autodesk Alias EV projects