How to Import a Matlab File into COMSOL?

  • Context: MATLAB 
  • Thread starter Thread starter nostris
  • Start date Start date
  • Tags Tags
    Comsol File Matlab
Click For Summary

Discussion Overview

The discussion revolves around the challenges of importing a MATLAB file into COMSOL for creating 3D geometry. Participants are exploring various methods and formats for successful integration, focusing on the compatibility of file types and the potential use of other software tools.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant seeks assistance in creating a 3D geometry in COMSOL from a MATLAB file, noting difficulties with loading text files.
  • Another participant expresses a similar need for help, indicating they have not yet found a solution.
  • A suggestion is made that importing into COMSOL requires proper formatting, recommending that users export a geometry from COMSOL and adapt their MATLAB data to match that format.
  • It is proposed that using a CAD program like SolidWorks might simplify the process of importing geometry into COMSOL.
  • One participant mentions using Maple13 to create geometry and exporting it as a .dxf file, but notes issues with COMSOL converting 3D geometry into 2D upon import.

Areas of Agreement / Disagreement

Participants do not appear to reach a consensus on the best method for importing MATLAB files into COMSOL, with multiple competing approaches and unresolved issues regarding file formats and software compatibility.

Contextual Notes

Limitations include potential dependencies on specific software versions, the need for correct file formatting, and unresolved issues with the conversion of 3D to 2D geometry in COMSOL.

nostris
Messages
1
Reaction score
0
Hello,
I have a file with points and I want to create a 3D geometry in Comsol, but it's impossible to load a txt file in this software.
In Comsol we can import something called "geometry object" and I know it's possible to create this geometry with Matlab but I don't know how to do.
Can someone help me ?
 
Physics news on Phys.org
hi,
I want to do the same thing but can't figure out how...
did you find a solution? if so could you help me please?
thanks
 
Importing stuff into comsol is all about formatting. Just draw something in COMSOL, then export it. Using the same format of the file you exported just copy and paste your MATLAB data into it.

FYI, if your just importing geometry into comsol, its a LOT easier just to do it with a CAD program like solidworks.
 
hey guys,

try to use maple13 to creare geometry.. then export picture as .dxf (drawing exchange format)

COMSOL can read .dxf geometry BUT in my case it covert 3d geom into 2d..

if anybody know how to treat it, please let me know.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
18K