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) Ja Ja
Model (.java) Nein Ja
Model (.class) Ja Nein
Model (.m)1 Ja Ja
Reaction Engineering Lab 3.5a Model (.rxn)2 Ja Nein
Geometry (.mphbin, .mphtxt) Ja Ja
Mesh (.mphbin, .mphtxt) Ja Ja
Material Library (.mph) Ja Ja
Interpolation Function (.txt) Ja Ja
Variables (.txt) Ja Ja
Parameters (.txt) Ja Ja
Postprocessing Data (.txt) Ja Ja
Color Table (.txt) Ja Nein
1 Requires LiveLink™ for MATLAB®
2 Requires Chemical Reaction Engineering Module

MCAD

File Format Read Write
Autodesk AutoCAD® (.dwg, 3D only)1 Ja6 Ja6
Autodesk Inventor® (.ipt, .iam)2 Ja Ja6
Creo™ Parametric (.prt, .asm)3 Ja6 Ja6
Pro/ENGINEER® (.prt, .asm)2 Ja Ja6
SolidWorks® (.sldprt, .sldasm)2 Ja Ja6
SpaceClaim® (.scdoc)4 Ja6 Ja6
DXF(.dxf, 2D only) Ja Ja
Parasolid® (.x_t, xmt_txt, .x_b, .xmt_bin)2 Ja Ja
ACIS® (.sat, .sab)2 Ja Nein
STEP (.step)2 Ja Nein
IGES (.iges)2 Ja Nein
CATIA® V5 (.CATPart, .CATProduct)5 Ja Nein
VRML, v1 (.vrml, .vrl) Ja Nein
STL (.stl) Ja Ja
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 Ja Nein
ODB++(X) (.xml)1 Ja Nein
GDS II (.gdx)1 Ja Nein
SPICE (.cis)1 Ja Nein
1 Requires one of AC/DC Module, RF Module, or MEMS Module

Material Databases

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

Mesh

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

Numerical Data, Images, and Movies

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

Programming Languages

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

Interpolation Data Formats

File Format Read Write
Spreadsheet Ja Ja
Grid Ja Nein
Sectionwise Ja Ja