Discussion Forum

Import CAd file (.dwg or .dxf) to COMSOL V3.5a

Topics: no topics

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   1 Reply   Last post: September 10, 2010 8:37am UTC
Amissa Arifin

Amissa Arifin

September 8, 2010 10:30pm UTC

Import CAd file (.dwg or .dxf) to COMSOL V3.5a

Hi there,
I have been trying to import a file into COMSOL. I drew my motor model having stator and rotor geometries. Using the 'Import CAD Data from file' I tried saving my files using both .dwg and .dxf. With the .dwg file, I am able to open the file in COMSOL, however the model does not have any subdomain. In my case, it should be potrayed as 2 different subdomain (stator and rotor). Does anybody know what I have missed out? If I use the 'split' function, the model is separated into soo many parts and I don;t know how to go about joining the parts to form 1 subdomain.

Also if I tried importing using the .dxf file, I get an error message as below:

Error: 2031
DXF file is corrupt
- Line number: 1

One more thing, I observe that when the drawing is imported from the CAd file, my units is x10e6. How do I reset the unit so that the model is on the 0,0 axis?

Please advice. Thank you soo much


Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

Ivar Kjelberg

Ivar Kjelberg
Moderator

September 10, 2010 8:37am UTC in response to Amissa Arifin

Re: Import CAd file (.dwg or .dxf) to COMSOL V3.5a

Hi

it seems that you dxf files are of either too old, or to new format ;)

Note that dxf or dwg are essentially a file containing points and staight lines so when imported they must form a logical assembly such to be grouped into surfaces, this is normally done by COMSOL (merging all items smaller than the repair tolerance), but sometimes there are "holes" or gap in your geoemtry that are not filled in, or done in a way that does not fit you => manual correction in COMSOL, or improve the drawing in the CAD software.

Some software also save their DXF without units, then you need to scale either in the CAD software or in COMSOL

finally some software does not have the circle or bezier curve features, then curves are "simulated" by a large series of small straight lines and these can/will make tougher for you when you need to edit them

Welcome to the world of formats/language (in)compatibilities ;)

--
Good luck
Ivar

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines