This tutorial is to inform COMSOL Multiphysics users on how to import an AutoCAD drawing into their model. The main reason behind this post is the actual absence of such information of how to prepare the drawing (set the Layers) etc. If the shapes in the drawing are not differentiated by Layers than (for me) it imports the drawing (.dxf) as a single entity without giving permision to intervene on that shape. Meaning, perform booleans (difference etc) by selecting shapes already on the drawing.
Lets talk about it...
Initialy we will create a two Layer CAD drawing, A and B.
We will then create two simple shapes (a rectangle and a circle in it) were each shape belongs to a diffent Layer.
and then we will save it as an "AutoCAD 2007 DFX (*.dxf)".
This is an option in the AutoCAD 2009 i am using.
Now open comsol set up a 2D model such a CFD laminar flow, anything...
Now...
final result.
Even if you do not import each layer seperately you can do one import with the 'Layer selection' set to 'All'
Initialy we will create a two Layer CAD drawing, A and B.
We will then create two simple shapes (a rectangle and a circle in it) were each shape belongs to a diffent Layer.
and then we will save it as an "AutoCAD 2007 DFX (*.dxf)".
This is an option in the AutoCAD 2009 i am using.
Now open comsol set up a 2D model such a CFD laminar flow, anything...
Now...
- click import (in the ribbon).
- click browse and find the file.
- go to the "Layer selection" and choose selected.
- from the layers bellow choose A or B (i choose B).
- then click import.
- redo the same prosedure for the other Layer.
final result.
Even if you do not import each layer seperately you can do one import with the 'Layer selection' set to 'All'