How to 3D Print COMSOL Models

June 25, 2013

Quite often we get asked the question “can I 3D print my COMSOL model?” Well, as of version 4.3b, the answer is “yes!” This is because it is now possible to export geometries and meshes asSTLfiles, which is one of the standard file formats for 3D printing. This allows for rapid prototyping of designs; there is no need to outsource parts to machine shops. It is quite remarkable that you could conceive, simulate, optimize, and prototype a design using only COMSOL Multiphysics and a 3D printer. As 3D printing technology improves, it may also be possible to efficiently and cost-effectively manufacture your design. Here, I will demonstrate how you can 3D print COMSOL models, with a video and written instructions.

The STL File Format

STL (Stereolithography, or Standard Tessellation Language) is a file format developed in the late 80’s by 3D Systems to facilitate the prototyping of designs created using computer-aided design software. The file format represents three dimensional geometric entities as triangulated surfaces in a Cartesian coordinate system. Scale, color, and material property information are not stored in the file. Color printing of STL files is hence only possible if the color information is added after the design has been imported into the software that connects to the 3D printer.

Video on How to 3D Print COMSOL Models

Written Instructions for 3D Printing a COMSOL Model

Opening the Model

In this example I will print the model that computes the thermally-induced stresses in a turbine stator blade. The model is available in the Structural Mechanics Module Model Library, but the process by which you can 3D print is the same regardless of the model. In theModel Librarytab, select the modelStructural Mechanics Module>Thermal-Structure Interaction>turbine_statorand click theOpen Modelbutton.

Opening the turbine stator model in COMSOL Multiphysics

When the model is opened, the default view is a plot of the displacement induced by the thermal stresses.

Turbine stator: Total displacement

Exporting the Geometry

There are two ways you can export the geometry for printing. The first way is to go to theGeometrynode in theModel Builder, right-click, and selectExport to File.

First 3D printing export method: Exporting geometry through Model Builder

As discussed above, the standard geometry representation for 3D printing is the STL file. In theExport Geometrysection, set theFile typetoSTL binary (.stl).

Geometry export: Set file type to STL binary

Next, enter a file name for the STL file and click theExportbutton.

Geometry export: Enter file name and export

An alternative method of exporting the geometry for printing is to export the mesh as an STL file. In general, this will result in a larger file size that may be harder to import into the software that comes with the 3D printer. In this case, go to theMeshnode in theModel Builder. Right-click, and chooseExport to File.

Second 3D printing export method: Export mesh

As before, set theFile typetoSTL binary (.stl).

Mesh export: Set file type to STL binary

Next, enter a file name for the STL file and click theExportbutton.

Mesh export: Enter file name and export

Printing the Model

All that remains is to open the STL file in the software that comes with your 3D printer. The software should be able to align and scale the STL file so it fits within the feasible printing area.

Printing a COMSOL model with 3D printer

Finally, selectPrint!

How to 3D print COMSOL models, a turbine stator example

Above is a picture of the physical turbine stator we printed. This specific model took around an hour to print.

Considerations for 3D Printing

There are some additional details to keep in mind when 3D printing:

  • If you are printing a single solid object, internal boundaries should be deleted from the geometry. Otherwise, the printer will insert a small gap where the interior boundaries are present.
  • Larger assemblies can be constructed by printing individual parts one at a time.
  • Exporting the mesh and printing may give slightly different results compared to exporting the geometry.
  • You can also export the deformed mesh resulting from a model including theMoving Meshinterface. To do this, use theRemesh Deformed Configurationoption which is available for theSolutiondata set. This creates an additional mesh in theMeshnode which you can export as an STL file.

Contest: Submit Your Own 3D Printed Model

Now that you know how to 3D print your COMSOL models, why don’t you try it out? Once you have printed your model, take a photo of it, and submit it to3dprint@comsol.comfor a chance to be featured in a future blog post.

Categories


Comments (1)

Leave a Comment
Log In | Registration
Loading...
Jaramogi Khalfani Adofo Odhiambo
Jaramogi Khalfani Adofo Odhiambo
January 20, 2021

Thanks for the elaborate explanation

Though the procedure was quite different with my version 5.4, I used the Geometry toolbar and successfully exported the file

EXPLORE COMSOL BLOG
Baidu
map