Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
3 déc. 2019, 14:42 UTC−5
Updated:
5 years ago
3 déc. 2019, 09:42 UTC−5
Hello Joydeep,
COMSOL can import a number of different formats for geometry and mesh. Which ones your license can import will depend on which COMSOL products your license includes. You can see a list of the supported mesh formats and CAD formats and what products are needed to import them on the CAD specification chart.
The .grd format is not currently covered out of the box, but using the COMSOL Java API you could write a converter app to read .grd files and output files in one of the formats your license can read. The COMSOL Java API is documented in the Programming Reference Manual, which you'll find inside the software, under File > Help > Documentation. Some of the formats in which your app could write are documented in the COMSOL Mesh Import and Export Guide.
Best regards,
Jeff
-------------------
Jeff Hiller
Hello Joydeep,
COMSOL can import a number of different formats for geometry and mesh. Which ones your license can import will depend on which COMSOL products your license includes. You can see a list of the supported mesh formats and CAD formats and what products are needed to import them on [the CAD specification chart](https://www.comsol.com/products/specifications/cad/).
The .grd format is not currently covered out of the box, but using the COMSOL Java API you could write a converter app to read .grd files and output files in one of the formats your license can read. The COMSOL Java API is documented in the Programming Reference Manual, which you'll find inside the software, under File > Help > Documentation. Some of the formats in which your app could write are documented in the [COMSOL Mesh Import and Export Guide](https://www.comsol.com/model/comsol-multiphysics-mesh-import-and-export-guide-72351).
Best regards,
Jeff
Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
4 déc. 2019, 07:01 UTC−5
Hi Joydeep
You can also use our COMSOL API directly to create a mesh in Comsol without having to export a file.
If you have Matlab there is a high probability that someone already has made a Matlab function that can read this file format. You can then use LiveLink for Matlab to create the mesh in Comsol.
If you can't find a Matlab function that does the conversion you can contact support and we'll see what we can do.
-------------------
Lars Gregersen
Comsol Denmark
Hi Joydeep
You can also use our COMSOL API directly to create a mesh in Comsol without having to export a file.
If you have Matlab there is a high probability that someone already has made a Matlab function that can read this file format. You can then use LiveLink for Matlab to create the mesh in Comsol.
If you can't find a Matlab function that does the conversion you can contact support and we'll see what we can do.