Using the PCB 3D model for FEM and thermal simulation
Thermal and mechanical simulations of a PCB need the copper where it really is: a ground plane with its anti-pads, a power trace with its real width, the vias that carry heat to the other side. Drawing that by hand is slow, and the STEP exported by most EDA tools is meant for enclosure design rather than for meshing. The Gerber to 3D export of PCB Tools builds the model directly from the fabrication files.
What the model contains
Each layer is extruded with its exact outline from the Gerber file and the thickness you set: the substrate, every copper layer (outer and inner), the solder mask and the silkscreen. The holes from the Excellon files are cut through the whole stack, and plated holes get a copper barrel on their wall, 25 µm thick by default. Holes in files marked as non-plated (NPTH) stay open. Components are not included, because Gerber files do not describe them.
Why it can be meshed
- Every body is a closed (watertight) triangle mesh: a solid, not just a surface.
- The bodies touch each other face to face, copper on substrate and mask on copper, with no gaps and no overlaps, because they are all built from the same outlines.
- Units are millimetres and z = 0 is the bottom face of the substrate, so the model keeps the Gerber coordinates.
The download includes a README.txt that lists each body with its height range, its volume and a suggested material, so you can check the stackup before you start.
Which format to choose
STL per layer gives one file per body (substrate.stl, top_copper.stl, hole_plating.stl and so on), which is the easiest way to assign one material to each. 3MF keeps every body as a named object in a single file. OBJ keeps the bodies as named groups and is better suited to renders.
Importing it
- FreeCAD: import the STL files, then Part → Create shape from mesh and Part → Convert to solid for each body.
- ANSYS SpaceClaim or Discovery: open the STL files and convert the facets to solids; use Share topology to obtain a conformal mesh.
- COMSOL: import each STL as a mesh, create geometry from it and form a union so that the bodies share their faces.
- Gmsh: merge the STL files, create the topology and define one volume per surface loop.
Tips for good results
Use the stackup of your manufacturer: board thickness, copper weight (35 µm for 1 oz) and plating. A larger triangle tolerance (for example 0.02 mm) gives fewer triangles and a lighter mesh; a smaller one follows curves more closely. Thin layers such as mask and silkscreen can usually be left out of a thermal model. Treat the result as a starting point and validate it against measurements when the decision matters.
Open the Gerber to FEM model tool, or print the board on paper first with the 1:1 PDF guide.