exporting an imported dxf file form solidworks to comsol

Hi,

I imported a 2D geometry (which includes many curved lines) into solidworks from DXF and wanted to export it to COMSOL now. I have the livelink with COMSOL and checked the 'COMSOL adds on' box in Solidworks, and then tried synchronizing it in COMSOL but I get an error that says: the file does not contain any geometry.

I tried doing the same thing with a geometry that was built in Solidworks (3D) and it worked fine.

I was wondering if this is becasue I have a 2d geometry or is it becasue this is an imported geometry?

Thanks,

Dana

SolidworksSimulation
Answers 7
SF
SF 2013-09-18 Best Answer

Probably a good one for a comsol forum but your hypothesis sounds right.

I have little experience with comsol but I remember that you could make a region from the edges of a part. Could that work? Make a 3d part and then make the edges a region?

What will you do with 2d sketch in comsol? Could a surface work?

SF
SF 2013-09-18

Thanks for your response.

Well in COMSOL we can always create a work-plane in 3D and build our 2D geometry on that. However,  the 'synchronize' option only apears in 3D and not in 2D. For instance, with the 'import' option, I can use it both in 3D and 2D in general ;  if I make a work-plane, I can import a geometry on that surface but that's not the case for synchronizing option.

I also tried importing the solid work to both 2D and 3D but when the browse window opens, it does not recognize my sldprt file and doesn't show it at all, in 3D. And in 2D, sldprt is not an option in comsol to be imported at all!

The reason why I thought this would be a better question for a Solidworks forum than COMSOL is that there are not too many options under the 'synchronize'. And I have tried all and none has worked. Also, I do not know anything about solidworks and I was a bit suspicious on how solidworks treats an imported 2D object (from dxf) becasue I could not use any of the tools from the spline tool for instance on the object (they are all gray).

Here is the imported object:

Thanks,

Dana

comment imagecomment image
SF
SF 2013-09-18

those are all imported curve vs sketch elements, so you really can't modify them.

maybe you should start by creating a sketch to see if that works (imports into comsol) if it does, maybe you can just use convert entities to convert the imported curves and then import into comsol.

the "synchronize" option is a comsol only feature

SF
SF 2013-09-23

I am not sure what you mean by ''use convert entities to convert the imported curves and..''. Convert to what exactly you mean?

Also, as I mentioned before, I can not really use the import option in comsol to import anything from solidworks. Solidworks import is only for 3D.

Do you know if it is possible at all to synchronize a 2D geometry from Solidworks to COMSOL?

I was also trying to convert it to 3D but I couldn't. I t it because it's an imported object and can't be modified?

Thanks,

Dana

SF
SF 2013-09-23

Dana,

I think Jared meant to open a Sketch on a plane parallel to the plane that all of the curves are on and then use the Convert Entities button in the Sketch to make lines, arcs or splines in the Sketch. If a Sketch doesn't import into COMSOL, then this won't help.

What are these curves going to become in the COMSOL model? If we know that, perhaps we can suggest ways to get what you want out of SolidWorks.

Jerry S.

SF
SF 2013-09-26

I see.

I made a simple 2D geom in solidworks and tried importing it but didn't work. I suppose both the importing option and synchronizing, are for 3D and not 2D.

But thanks a lot for your help.

Dana

SF
SF 2013-09-27

np, if you find anything else out after talking to their tech support, let us know. sounds like a limitation of their tool.