How to Import a Matlab File into COMSOL?

  • Context: MATLAB 
  • Thread starter Thread starter nostris
  • Start date Start date
  • Tags Tags
    Comsol File Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 16K views
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.