Supported File Formats

After completing a design study as you have done, you often want to use the results in some other context. For instance, you may want to output an optimal geometry in a dedicated CAD format. In fact, the broadly applicable nature of multiphysics simulation brings with it the need for interaction with many other scientific computing platforms. For this reason, COMSOL Multiphysics provides the capability to read and write a wide array of file formats. The list below contains several formats that are compatible with COMSOL. These formats are categorized according to the associated type of software.

COMSOL

File Format Read Write
Model (.mph)
Model (.java) No
Model (.class) No
Model (.m)1
Reaction Engineering Lab 3.5a Model (.rxn)2 No
Geometry (.mphbin, .mphtxt)
Mesh (.mphbin, .mphtxt)
Material Library (.mph)
Interpolation Function (.txt)
Variables (.txt)
Parameters (.txt)
Postprocessing Data (.txt)
Color Table (.txt) No
1 Requires LiveLink™ for MATLAB®
2 Requires Chemical Reaction Engineering Module

MCAD

File Format Read Write
Autodesk AutoCAD® (.dwg, 3D only)1 6 6
Autodesk Inventor® (.ipt, .iam)2 6
Creo™ Parametric (.prt, .asm)3 6 6
Pro/ENGINEER® (.prt, .asm)2 6
SolidWorks® (.sldprt, .sldasm)2 6
SpaceClaim® (.scdoc)4 6 6
DXF(.dxf, 2D only)
Parasolid® (.x_t, xmt_txt, .x_b, .xmt_bin)2
ACIS® (.sat, .sab)2 No
STEP (.step)2 No
IGES (.iges)2 No
CATIA® V5 (.CATPart, .CATProduct)5 No
VRML, v1 (.vrml, .vrl) No
STL (.stl)
1 Requires LiveLink™ for AutoCAD®
2 Requires one of the LiveLink™ products for AutoCAD®, Creo™ Parametric, Inventor®, Pro/ENGINEER®,
SolidWorks®, or SpaceClaim®; or the CAD Import Module
3 Requires LiveLink™ for Creo™ Parametric
4 Requires LiveLink™ for SpaceClaim®
5 Requires the CAD Import Module (or one of the LiveLink™ products for AutoCAD®, Creo™ Parametric, Inventor®, Pro/ENGINEER®, SolidWorks®, or SpaceClaim®) and the File Import for CATIA® V5
6 Via the LiveLink interface

ECAD

File Format Read Write
NETEX-G (.asc)1 No
ODB++(X) (.xml)1 No
GDS II (.gdx)1 No
SPICE (.cis)1 No
1 Requires one of AC/DC Module, RF Module, or MEMS Module

Material Databases

File Format Read Write
NASA file (.dat)1 No
CHEMKIN (.dat)1 No
CAPE -OPEN1 (direct connection) n/a n/a
LXCAT file (.lxcat)2 No
1 Requires Chemical Reaction Engineering Module
2 Requires Plasma Module

Mesh

File Format Read Write
NASTRAN Bulk Data (.nas, .bdf, .nastran, .dat) No
VRML, v1 (.vrml, .vrl) No
STL (.stl)

Numerical Data, Images, and Movies

File Format Read Write
Plain text (.txt)
Comma-separated values (.csv)
Copy and paste spreadsheet format
JPEG (.jpg)
PNG (.png)
BMP (.bmp)
GIF (.gif) No
EPS (.eps) (2D graphs) No
DEM (.dem) No
Animated GIF (.gif) No
Adobe® Flash (.swf) No
AVI (.avi)1 No
1 Available for Windows only

Programming Languages

File Format Read Write
MATLAB®: Model M-File (.m)1
MATLAB®: Function (.m)1 No
Java: Model Java File (.java)
C: Function No
1 Requires LiveLink™ for MATLAB®

Interpolation Data Formats

File Format Read Write
Spreadsheet
Grid No
Sectionwise