Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Adding points and lines to 3D models with parametric surfaces

Please login with a confirmed email address before reporting spam

Hi all,

I was wondering if there is a way to add a point or line to a model in which I have a 3D block with the top surface replaced by a parametric surface derived from a DEM (digital elevation model).

I guess this can be done in either the geometry section so it is there for the entire model run, or in the results section under data sets.

The end result I am after is the displacements along a line that traverses the parametric surface or at a certain point on the parametric surface.

Any help in this matter would be greatly appreciated, and let me know if I haven't explained the problem sufficiently.

Thank in advance!

James.

7 Replies Last Post 20 mag 2013, 09:22 GMT-4
Josh Thomas Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 mag 2013, 11:17 GMT-4
James,

If all you are looking to do is post-process, then I would suggest using the "Surface" Data Set. Right-click on Data Sets and select Surface. This creates a 2D data set of your parametric surface.

Or, you could also do a Parameterized Curve 3D (under More Data Sets) where you can define a path in 3D. Or, take Cut Point 3D to take data from a general point.

These lower dimension subsets of the original 3D data sets can then be plotted, operated on, evaluated, and/or exported.

Best regards,
Josh Thomas
AltaSim Technologies
James, If all you are looking to do is post-process, then I would suggest using the "Surface" Data Set. Right-click on Data Sets and select Surface. This creates a 2D data set of your parametric surface. Or, you could also do a Parameterized Curve 3D (under More Data Sets) where you can define a path in 3D. Or, take Cut Point 3D to take data from a general point. These lower dimension subsets of the original 3D data sets can then be plotted, operated on, evaluated, and/or exported. Best regards, Josh Thomas AltaSim Technologies

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 mag 2013, 12:57 GMT-4
Hi Josh,

Thanks! That worked very well!

Eventually I also need to be able to add points to the geometry before I run the model. Do you know a way to do this? I can't just add a point in the regular way as I don't know the exact Z-coordinate to place it directly on the parametric surface. I thought I might be able to define the z-coordinate with 'ps1' (for the parametric surface) instead of a number but it obviously didn't work. Is there a similar way around it?
Hi Josh, Thanks! That worked very well! Eventually I also need to be able to add points to the geometry before I run the model. Do you know a way to do this? I can't just add a point in the regular way as I don't know the exact Z-coordinate to place it directly on the parametric surface. I thought I might be able to define the z-coordinate with 'ps1' (for the parametric surface) instead of a number but it obviously didn't work. Is there a similar way around it?

Josh Thomas Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 16 mag 2013, 13:50 GMT-4
James,

Here is a way to do it. Under the Geometry, you can define a parametric curve that is a vertical line (no variation in the z-dir) that intersects the parametric surface at the correct x,y location. Then, use the new partition Boolean functionality to create a point at the intersection. In this way, you don't have to know the exact z-location. COMSOL will calculate it for you.

Be sure to click on the "Select Points" filter icon at the top of the Graphics window to visualize that indeed a point has been created on the surface.

See attached *.mph file. And, screenshot.

Best regards,
Josh Thomas
AltaSim Technologies
James, Here is a way to do it. Under the Geometry, you can define a parametric curve that is a vertical line (no variation in the z-dir) that intersects the parametric surface at the correct x,y location. Then, use the new partition Boolean functionality to create a point at the intersection. In this way, you don't have to know the exact z-location. COMSOL will calculate it for you. Be sure to click on the "Select Points" filter icon at the top of the Graphics window to visualize that indeed a point has been created on the surface. See attached *.mph file. And, screenshot. Best regards, Josh Thomas AltaSim Technologies


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 mag 2013, 04:55 GMT-4
Hi Josh,

Thanks again. I tried a similar technique with a line and then deleting entities. This partition tool seems to do the same thing. It works in that it creates a point on the surface in the correct place. However it also impedes the interpolation of the parametric surface in the immediate area. I've attached a screen shot to show what I mean.

Do you know a way around this?

Cheers!
Hi Josh, Thanks again. I tried a similar technique with a line and then deleting entities. This partition tool seems to do the same thing. It works in that it creates a point on the surface in the correct place. However it also impedes the interpolation of the parametric surface in the immediate area. I've attached a screen shot to show what I mean. Do you know a way around this? Cheers!


Josh Thomas Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 mag 2013, 08:24 GMT-4
James,

Hmmm.... the only thing I can think of is adjusting the "Relative repair tolerance" on the Partition Boolean operation settings window. Judging by the screenshot you sent over, I'd suggest reducing this value although you could try both increasing and decreasing and see what happens.

I'm interested to know how it goes.

-Josh
James, Hmmm.... the only thing I can think of is adjusting the "Relative repair tolerance" on the Partition Boolean operation settings window. Judging by the screenshot you sent over, I'd suggest reducing this value although you could try both increasing and decreasing and see what happens. I'm interested to know how it goes. -Josh

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 mag 2013, 09:06 GMT-4
I've just tried values between 1.0e-2 and 1.0e-100 but there was no change in the resulting geometry unfortunately. With a value of 1.0e-1 the geometry of the surface more resembles what it should be, but the point is no longer on the surface and the shape of the block becomes seriously deformed (no longer cubic!).

I've sent a request to COMSOL support so hopefully they'll come up with something smart.
I've just tried values between 1.0e-2 and 1.0e-100 but there was no change in the resulting geometry unfortunately. With a value of 1.0e-1 the geometry of the surface more resembles what it should be, but the point is no longer on the surface and the shape of the block becomes seriously deformed (no longer cubic!). I've sent a request to COMSOL support so hopefully they'll come up with something smart.

Josh Thomas Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 mag 2013, 09:22 GMT-4
Okay, I hope you find a solution.
Okay, I hope you find a solution.

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.