Partition an Imported Face into Circular/Rectangular Regions in COMSOL?

Please login with a confirmed email address before reporting spam

Hello everyone,

I’m working with imported geometries in COMSOL (typically STL/MPHTXT files), and I would like to partition specific faces into smaller circular or rectangular regions of defined size. The ultimate goal is to assign different boundary conditions on these partitions later in my simulation workflow.

Here’s what I’m aiming for:

Workflow: Import the geometry. Partition a selected face (for example, Face 2/3 in my attached geometry) into circular or rectangular regions (e.g., a circle of 1mm radius centered on a certain point on Face 2). Use these partitions to define boundary conditions in the physics modules and mesh them separately. Ideally, automate or repeat this sequence via MATLAB.

Challenge: I’m able to find the “Partition Faces” operation in the Geometry module, but it only seems to offer splitting via work planes, extended edges, or curves between existing vertices. I don’t see an option to directly create arbitrary-shaped partitions (like circles or rectangles) purely on an existing face, especially on imported surfaces.

Is there a way to do this?

Thank you very much for your time and assistance!



1 Reply Last Post 16 set 2025, 12:21 GMT-4
Robert Koslover Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 5 hours ago 16 set 2025, 12:21 GMT-4

See the attached edited file for an example approach. I created a workplane parallel to one of your surfaces and drew a closed polygon in it. You could just as easily use circles, rectangles, or other curves or polygons. Then, I was able to set a floating potential specifically inside that polygon. So does this approach address/solve your problem?

-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
See the attached edited file for an example approach. I created a workplane parallel to one of your surfaces and drew a closed polygon in it. You could just as easily use circles, rectangles, or other curves or polygons. Then, I was able to set a floating potential specifically inside that polygon. So does this approach address/solve your problem?

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.