Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Function similiar to AutoCAD's Offset

Please login with a confirmed email address before reporting spam

Quite often I'm drawing a geometry in AutoCAD using the offset function to convert lines to 2d-objects.
Now I'm wondering if there is a similar feature also in COMSOL?

8 Replies Last Post Dec 1, 2021, 9:54 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Apr 14, 2016, 9:44 a.m. EDT
Hello Mickael,
In 3D, the Design Module offers that capability; we call it "Thicken". See www.comsol.com/design-module .
Best,
Jeff
Hello Mickael, In 3D, the Design Module offers that capability; we call it "Thicken". See https://www.comsol.com/design-module . Best, Jeff

Please login with a confirmed email address before reporting spam

Posted: 9 years ago Apr 15, 2016, 1:39 a.m. EDT
Dear Jeff,

thank you for your fast reply.
Unfortunately, I'm mostly interested in creating 2d-Geometries.

Is there also a function for such kind of geometry creation in 2d?

Best regards

Michael
Dear Jeff, thank you for your fast reply. Unfortunately, I'm mostly interested in creating 2d-Geometries. Is there also a function for such kind of geometry creation in 2d? Best regards Michael

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Dec 1, 2016, 12:22 p.m. EST
Hey Michael,

I'm not sure if you need this anymore, but I was searching for the same thing for days now and I finally had to come with my own solution. So, if you would like to have the equivalent of AutoCAD's "Offset" command in Comsol, and if a circle is the geometry of interest, then do this:

1. Define the following parameters:
R - for Radius (in m/mm/in/ft)
dx - for the offset (in m/mm/in/ft)

2. Create the geometry:
Geometry > Create Circle (with a radius R)

3. Create the offset:
Geometry > Transforms > Scale

4. Configure the scale:
Select the circle as an input object, and on the scaling factor box write the following formulas:
"1 + (dx/R)" if you want an outside offset
"1 - (dx/R)" if you want an inside offset

and make sure that you have the "Keep input objects" selected.

You will get the same effect as the offset, but with a bit more effort than a simple command.

For a rectangular, you need to make sure that you align the centers, but otherwise, it should work the same (you might eventually multiply dx by 2).

Paul
Hey Michael, I'm not sure if you need this anymore, but I was searching for the same thing for days now and I finally had to come with my own solution. So, if you would like to have the equivalent of AutoCAD's "Offset" command in Comsol, and if a circle is the geometry of interest, then do this: 1. Define the following parameters: R - for Radius (in m/mm/in/ft) dx - for the offset (in m/mm/in/ft) 2. Create the geometry: Geometry > Create Circle (with a radius R) 3. Create the offset: Geometry > Transforms > Scale 4. Configure the scale: Select the circle as an input object, and on the scaling factor box write the following formulas: "1 + (dx/R)" if you want an outside offset "1 - (dx/R)" if you want an inside offset and make sure that you have the "Keep input objects" selected. You will get the same effect as the offset, but with a bit more effort than a simple command. For a rectangular, you need to make sure that you align the centers, but otherwise, it should work the same (you might eventually multiply dx by 2). Paul

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Dec 2, 2016, 9:27 a.m. EST
Hello Michael and Paul,

There is a way to use the 3D thickening capability I mentioned earlier to handle your 2D situation. This method will work even for non-trivial 2D shapes (Scaling only works for very special cases).

The idea is to add a 3D component to your model, bring your 2D curve into a work plane in that 3D component, extrude that curve into a surface, thicken that surface into a solid, add a work plane that intersects that solid, and then back in the original 2D component you use the cross section capability to bring in the intersection of the solid and that last work plane.
This method is illustrated in the attached file. Again, please note that it requires the Design Module.

I hope this helps.
Best,
Jeff
Hello Michael and Paul, There is a way to use the 3D thickening capability I mentioned earlier to handle your 2D situation. This method will work even for non-trivial 2D shapes (Scaling only works for very special cases). The idea is to add a 3D component to your model, bring your 2D curve into a work plane in that 3D component, extrude that curve into a surface, thicken that surface into a solid, add a work plane that intersects that solid, and then back in the original 2D component you use the cross section capability to bring in the intersection of the solid and that last work plane. This method is illustrated in the attached file. Again, please note that it requires the Design Module. I hope this helps. Best, Jeff


Please login with a confirmed email address before reporting spam

Posted: 8 years ago Dec 6, 2016, 4:39 a.m. EST
Dear Paul and Jeff,

thanks for your helpful comments.
The solution of Paul is a bit compliated - i want to use complicated lines.
Jeff's solution seems good, but I cannot test it due to Design module.

Thanks and best regards

Michael
Dear Paul and Jeff, thanks for your helpful comments. The solution of Paul is a bit compliated - i want to use complicated lines. Jeff's solution seems good, but I cannot test it due to Design module. Thanks and best regards Michael

Please login with a confirmed email address before reporting spam

Posted: 8 years ago Apr 7, 2017, 6:21 p.m. EDT
This is such a basic command that I was surprised to find that COMSOL doesn't have that capability. I've needed it quite often.
This is such a basic command that I was surprised to find that COMSOL doesn't have that capability. I've needed it quite often.

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Oct 4, 2017, 11:58 a.m. EDT

I would also be** very **interested to see this implemented as a feature in the Geometry builder. I spend a lot of effort offsetting my curves by trigonometric calculations.

I would also be** very **interested to see this implemented as a feature in the Geometry builder. I spend a lot of effort offsetting my curves by trigonometric calculations.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 3 years ago Dec 1, 2021, 9:54 a.m. EST

Hello Kerem, Thayne and Michael,

In the soon-to-be-released COMSOL Multiphysics version 6.0, both a 2D Thicken and a 2D Offset operation will be available, no Design Module required.

The Design Module continues to support 3D Thicken.

Best,

Jeff

-------------------
Jeff Hiller
Hello Kerem, Thayne and Michael, In the soon-to-be-released COMSOL Multiphysics version 6.0, both a 2D Thicken and a 2D Offset operation will be available, no Design Module required. The Design Module continues to support 3D Thicken. Best, Jeff

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.