MATLAB How to Import a Matlab File into COMSOL?

AI Thread Summary
Creating 3D geometry in COMSOL from a text file poses challenges due to import limitations. Users can create geometry objects in COMSOL and export them to understand the required file format. By copying and pasting MATLAB data into an exported file, geometry can be imported successfully. Alternatively, using CAD software like SolidWorks simplifies the process of importing geometry into COMSOL. Some users have attempted using Maple13 to create geometry and export it as a .dxf file, but encountered issues with COMSOL converting 3D geometry into 2D. Further assistance is sought on how to address this conversion issue.
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
Views
2K
Replies
4
Views
1K
Replies
5
Views
2K
Replies
3
Views
1K
Replies
2
Views
2K
Replies
1
Views
18K
Back
Top