Supported File Formats


The COMSOL Model file type, with the extension .mph, is the default file type containing the entire model tree and application tree from the Model Builder and Application Builder, respectively. The file contains both binary and text data. The mesh and solution data is stored as binary data, while all other information is stored as plain text.

The COMSOL binary and text file types, with the extension .mphbin and .mphtxt, respectively, contain either geometry objects or mesh objects that can be imported directly to the Geometry or Mesh nodes in the model tree.

The Physics Builder file type, with the extension .mphphb, contains one or more user-defined physics interfaces that you can access from the Model Builder.

Format de Fichier Extension Lire Ecrire
Modèle et Application COMSOL .mph Oui Oui
Données Binaires .mphbin Oui Oui
Données Texte .mphtxt Oui Oui
Physics Builder .mphphb Oui Oui


The CAD Import Module and Design Module allow for import of a range of industry-standard CAD file types. Additional file types are available through the bidirectional functionality of the LiveLink products for CAD as well as with the File Import for CATIA® V5 add-on.

The 3MF (3D), DXF (2D), PLY (3D), VRML (3D), and STL (3D) file types are available for import with COMSOL Multiphysics and do not require any add-on products. Unless noted otherwise in the table below, import of the listed file types is available on all supported versions of Linux®, Mac OS X, and Windows® operating systems.

Format de Fichier Extension Import Export
AutoCAD®1,2,3 .dwg Oui Oui9
Inventor®1,2,3 .ipt,.iam Oui Oui9
NX®1,4 .prt Oui Non
PTC® Creo® Parametric1,3 .prt,.asm Oui Oui9
PTC® Pro/ENGINEER®1,3 .prt,.asm Oui Oui9
Revit® Architecture3,5 .rvt Oui9 Oui9
Solid Edge®3,6 .par,.asm Oui9 Oui9
SOLIDWORKS®1,2,3 .sldprt,.sldasm Oui Oui9
DXF (3D1,2 and 2D) .dxf Oui Oui10
Parasolid®1 .x_t,.xmt_txt,.x_b,.xmt_bin Oui Oui
ACIS®1 .sat,.sab,.asat,.asab Oui Oui
STEP1 .step,.stp Oui Oui
IGES1 .iges,.igs Oui Oui
CATIA® V52,7 .CATPart,.CATProduct Oui Non
VRML, v18 .vrml,.wrl Oui Non
3MF .3mf Oui Non
PLY .ply Oui Non
STL .stl Oui Oui

1Nécessite un des produits LiveLink™ pour AutoCAD®, Revit®, PTC® Creo® Parametric™, Inventor®, PTC® Pro/ENGINEER®, Solid Edge®,SOLIDWORKS®, le CAD Import Module, ou le Design Module
2Import supporté uniquement sous Windows®
3Synchronization of files between COMSOL Multiphysics® and a linked CAD program supported on Windows® 7, 8.1 and 10 operating systems only
4Import supported on Windows® and Linux operating systems only
5Nécessite le LiveLink™ for Revit®
6Nécessite le LiveLink™ for Solid Edge®
7Nécessite le CAD Import Module, le design module (ou un des produits LiveLink™pour AutoCAD®, PTC® Creo® Parametric™, Inventor®, PTC® Pro/ENGINEER®, Solid Edge®,ou SOLIDWORKS®) et le File Import for CATIA® V5
8Fonctionnalité limitée à un domaine géométrique unique
9A partir de/ Vers un fichier via un logiciel de CAO
10Writing to file is supported for 2D geometry only


The ECAD Import Module allows for import of 2D layout files with automatic conversion to 3D CAD models. The Touchstone file type is used for exporting S-parameters, impedance, and admittance values from simultaneous port and frequency sweeps. The SPICE Circuit Netlist file type is converted at import to a series of lumped circuit element nodes under an Electrical Circuit node, in the model tree.

Format de Fichier Extension Lire Ecrire
IPC-25811 .cvg, .xml Oui Non
ODB++1 .zip,.tar,.tgz,.tar.gz Oui Non
GDS1 .gds Oui Non
Touchstone2 .s2p, .s3p, .s4p, ... Non Oui
SPICE Circuit Netlist3 .cir Oui Oui

1Requires the ECAD Import Module
2Requires one of the AC/DC Module, RF Module, MEMS Module, or Wave Optics Module
3Requires one of the AC/DC Module, RF Module, MEMS Module, Plasma Module, or Semiconductor Module

Material Databases

The Chemical Reaction Engineering Module and the Plasma Module can read CHEMKIN® files to simulate complex chemical reactions in the gas phase. The Plasma Module can read LXCAT files for sets of electron impact collision cross sections.

Format de Fichier Extension Lire Ecrire
CHEMKIN®1 .dat, .txt, .inp3 Oui Non
CAPE-OPEN (direct connection)1 n/a N/A N/A
LXCAT file2 .lxcat,.txt Oui Non

1 Any file format is allowed, these are the most common extensions
2Requires the Plasma Module
3Any extension is allowed; These are the most common extensions


The NASTRAN® Bulk Data file types are used to import a volumetric mesh. The VRML, STL, PLY, and 3MF file types are used to import a triangular surface mesh that can serve as a starting point for creating a volumetric mesh.

Format de Fichier Extension Lire Ecrire
3MF .3mf Oui Oui
NASTRAN® Bulk Data .nas, .bdf, .nastran, .dat Oui Oui
PLY .ply Oui Oui
Sectionwise .txt, .csv, .dat Oui Oui
STL .stl Oui Oui
VRML, v1 .vrml, .wrl Oui Non
VTK .vtu Non Oui

Images et Vidéos

Results visualization can be exported to a number of common image file types; See the table below. Images can also be read and used as interpolation functions for physics modeling. Animations can be exported to one of the Animated GIF, Adobe® Flash®, and AVI file types. The 3D representation from a 3D plot can be exported to the glTF™ format for 3D scene exchange.

Format de Fichier Extension Lire Ecrire
Adobe® Flash® .swf Non Oui
Animated GIF .gif Non Oui
AVI1 .avi Non Oui
BMP .bmp Oui Oui
EPS (1D graphs) .eps Non Oui
glTFTM .glb Non Oui
JPEG .jpg, .jpeg Oui Oui
MP42 .mp4 Oui Non
OGV2 .ogv Oui Non
PNG .png Oui Oui
TIFF .tif, .tiff Non Oui
WEBM2 .webm Oui Non

1Uniquement disponible pour Windows®

2Available in the Application Builder, for Windows® only, in the video form object

Langages de programmation

Model files for Java® are editable files with the extension .java that contain sequences of COMSOL commands as Java® code. Edit the files in a text editor to add additional commands. You can compile these Java® files into Java® Class files with the extension .class and run them as separate applications. Program code used in model files for Java® is essentially identical to that of the Method editor in the Application Builder. However, the Method editor comes with an integrated Java® compiler.

Model files for MATLAB® are editable script files (M files), similar to the model files for Java®, for use with MATLAB®. These model files, which have the extension .m, contain a sequence of COMSOL commands as a MATLAB® M file. You can run the model files in MATLAB® like any other M file scripts. It is also possible to edit the files in a text editor to include additional COMSOL commands or general MATLAB® commands. Running model files in the M file format requires LiveLink™ for MATLAB®.

With a license for LiveLink™ for Excel®, you can save models on the Visual Basic for Applications (VBA) format for use with Excel®.

Complied C-code can be linked with a model or application in several ways including the External Material and External Function interfaces in the Model Builder and as the External Library interface in the Application Builder.

Format de Fichier Extension Lire Ecrire
MATLAB®: Model file for MATLAB® .m Non Oui
MATLAB®: Function1 .m Oui Non
Java®: Archive File .jar6 Oui Non
Java®: Compiled model file for Java® .class Oui Non
Java®: Model file for Java® .java Non Oui
C: Function .dll3, .so4, .dylib5 Oui Non
Excel®2 .xlsx,.vba Oui Oui

1Nécessite LiveLink™ for MATLAB®
2Nécessite LiveLink™ for Excel®, disponible uniquement pour Windows®
3Uniquement disponible pour Windows®
4Uniquement disponible pour Linux®
5Uniquement disponible pour Mac OS X
6Can be linked to a method in an application using the Application Builder

Formats de données d'interpolation

The grid, sectionwise, and spreadsheet file types can be read for defining interpolation functions. The sectionwise and spreadsheet file types can furthermore be read and used for defining interpolation curves and written for exporting results. In addition, tables can be copy-pasted on spreadsheet format.

Parameters and Variables can be imported and exported to the Plain text, Comma-separated values, or Data file types.

The Continuous and Discrete color table text file types are used for user-defined color tables for Results visualization.

Digital Elevation Model (DEM) files can be read and used as a Parametric Surface for defining a Geometry.

Format de Fichier Extension Lire Ecrire
Copy and paste spreadsheet format n/a Oui Oui
Excel® spreadsheet1 .xlsx Oui Oui
Table .txt, .csv, .dat Oui Oui
Grid .txt Oui Oui
Sectionwise .txt, .csv, .dat Oui Oui
Spreadsheet .txt, .csv, .dat Oui Oui
Parameters .txt, .csv, .dat Oui Oui
Variables .txt, .csv, .dat Oui Oui
Continuous and Discrete color table .txt Oui Non
Point data for Cut Point data sets .txt Oui Non
DEM .dem Oui Non
VTK .vtu Non Oui

1Nécessite le LiveLink™ for Excel®, disponible seulement pour Windows®