Supported File Formats

COMSOL®


The COMSOL Model filetype, with the extension .mph, is the default file type containing the entire Model Tree. The file contains both binary and text data.The mesh and solution data are 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 which can be imported directly to the Geometry or Mesh branches in the Model Tree.

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

Formato do Arquivo Extensão Leitura Escrita
COMSOL Model .mph Sim Sim
Binary Data .mphbin Sim Sim
Text Data .mphtxt Sim Sim
Physics Builder .mphphb Sim Sim

MCAD


The CAD Import Module allows 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 DXF (2D), VRML (3D), and STL (3D) file types are available for import with COMSOL Multiphysics® and don’t require any add-on products.

Formato do Arquivo Extensão Leitura Escrita
AutoCAD® (3D only)1 .dwg Sim8 Sim8
Autodesk Inventor®2,3 .ipt, .iam Sim Sim8
Creo™ Parametric2 .prt, .asm Sim Sim8
Pro/ENGINEER® .prt, .asm Sim Sim8
Solid Edge® 4 .par, .asm Sim8 Sim8
SolidWorks®2,3 .sldprt, .sldasm Sim Sim8
SpaceClaim®5 .scdoc Sim8 Sim8
DXF (2D only) .dxf Sim Sim
Parasolid®2 .x_t, xmt_txt, .x_b, .xmt_bin Sim Sim
ACIS®2 .sat, .sab, .asat, .asab Sim Não
STEP2 .step, .stp Sim Não
IGES2 .iges, .igs Sim Não
CATIA® V53,6 .CATPart, .CATProduct Sim Não
VRML, v17 .vrml, .vrl Sim Não
STL7 .stl Sim Sim

1Requires LiveLink for AutoCAD®
2Requires one of the LiveLink products for AutoCAD®, PTC® Creo® Parametric, Inventor®, PTC® Pro/ENGINEER®, SOLIDWORKS®, or SpaceClaim® CAD systems; or the CAD Import Module
3Import supported on Windows operating systems only.
4Requires LiveLink for Solid Edge®
5Requires LiveLink for SpaceClaim®
6Requires the CAD Import Module (or one of the LiveLink products for AutoCAD®, PTC® Creo® Parametric, Inventor®, PTC® Pro/ENGINEER®, SOLIDWORKS®, or SpaceClaim®) and the File Import for CATIA®V5
7Limited functionality for a single geometric domain only
8From/To file via linked CAD package

ECAD


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.

Formato do Arquivo Extensão Leitura Escrita
NETEX-G1 .asc Sim Não
ODB++1 .zip, .tar, .tgz, .gz, .Z Sim Não
ODB++(X)1 .xml Sim Não
GDS II1 .gds Sim Não
Touchstone .s2p, .s3p, .s4p, ... Não Sim
SPICE Circuit Netlist2 .cir Sim Não

1Requires the ECAD Import Module
2Requires one of the AC/DC, RF, MEMS, or Plasma Modules

Material Databases


The Chemical Reaction Engineering 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.

Formato do Arquivo Extensão Leitura Escrita
CHEMKIN® .dat, .txt, .inp3 Sim Não
CAPE-OPEN1 (direct connection) n/a n/a n/a
LXCAT file2 .lxcat, .txt Sim Não

1 Requires Chemical Reaction Engineering Module
2 Requires Plasma Module
3 Any file format is allowed, these are the most common extensions

Numerical Data, Images, and Movies


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.

Formato do Arquivo Extensão Leitura Escrita
JPEG .jpg, .jpeg Sim Sim
PNG .png Sim Sim
BMP .bmp Sim Sim
.tif, .tiff .bmp Não Sim
GIF .gif Sim Sim
EPS (1D graphs) .eps Não Sim
Animated GIF .gif Não Sim
Adobe® Flash® .swf Não Sim
AVI1 .bmp Não Sim

1Available for Windows only

Interpolation Data Formats


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.

Formato do Arquivo Extensão Leitura Escrita
Copy and paste spreadsheet format n/a Sim Sim
Excel® spreadsheet1 .xlsx Sim Sim
Table .txt, .csv, .dat Sim Sim
Grid .txt Sim Sim
Sectionwise .txt, .csv, .dat Sim Sim
Spreadsheet .txt, .csv, .dat Sim Sim
Parameters .txt, .csv, .dat Sim Sim
Variables .txt, .csv, .dat Sim Sim
Continuous and Discrete color table .txt Sim Não
DEM .dem Sim Não

1Requires LiveLink for Excel®, available for Windows® only

Mesh


The NASTRAN® Bulk Data file types are used to import a volumetric mesh. The VRML and STL file types are used to import a triangular surface mesh, and cannot be used for creating a volumetric mesh. If imported as a Geometry, then VRML and STL files can be used as a basis for creating a volumetric mesh for a single geometric domain.

Formato do Arquivo Extensão Leitura Escrita
NASTRAN® Bulk Data .nas, .bdf, .nastran, .dat Sim Sim
VRML, v1 .vrml, .wrl Sim Não
STL .stl Sim Sim

Programming Languages


Model Java® files are editable script files, with the extension .java, that contain sequences of COMSOL Multiphysics 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.

Model M-files are editable script files, similar to the Model Java® files, for use with MATLAB®. Model M-files, which have the extension .m, contain a sequence of COMSOL Multiphysics commands as a MATLAB® M-file. Run the Model M-files in MATLAB® like any other M-file scripts. Also edit the files in a text editor to include additional COMSOL Multiphysics commands or general MATLAB® commands. Running files in the Model M-file format requires the LiveLink for MATLAB®.

Formato do Arquivo Extensão Leitura Escrita
MATLAB®: Model M-File .m Não Sim
MATLAB®: Function1 .m Sim Não
Java®: Model Java® File .java Não Sim
Java®: Model Class File .class Sim Não
C: Function .dll3, .so4, .dylib5 Sim Não
Excel®2 .xlsx Sim Sim

1Requires LiveLink for MATLAB®
2Requires LiveLink for Excel®, available for Windows® only
3Available for Windows® only
4Available for Linux® only
5Available for Mac OS X only