Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Import a matlab file in comsol

  1. Mar 6, 2009 #1
    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 ?
  2. jcsd
  3. Jul 2, 2009 #2
    I want to do the same thing but can't figure out how...
    did you find a solution? if so could you help me plz?
  4. Jul 3, 2009 #3
    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.
  5. Jan 19, 2010 #4
    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.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook