# Meshing a solid part with 2D elements

**URL:** <https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308>\
**Category:** Feature Requests\
**Created:** [July 20, 2022, 4:11pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308 "2022-07-20T16:11:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [July 20, 2022, 4:11pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/1 "2022-07-20T16:11:14Z")

</div>

Hi, sometimes is usefull mesh solid parts with 2D elements, in order to use as shell in the calculus, would it be possible in future releases???

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [July 20, 2022, 4:34pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/2 "2022-07-20T16:34:32Z")

</div>

Are you talking about taking the outer surface of a 3D model for meshing with shell elements (something like shell from solid feature in Abaqus) instead of extracting the midsurface ? Currently, the easiest way would be to downgrade and then upgdrade the model in FreeCAD’s Draft workbench.

---

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [July 20, 2022, 5:06pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/3 "2022-07-20T17:06:09Z")

</div>

Yes, you could create a surface mesh, and then in modeling just delete the elements not needed to create the shell part. Is a dirty way to create a shell model without using the CAD to create midsurfaces, or delete surfaces.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [July 20, 2022, 8:29pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/4 "2022-07-20T20:29:22Z")

</div>

So a feature “Solid to Shell” and a feature “Delete shell faces” would be needed. Is that correct? I think that would not be so hard to do.

---

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [July 20, 2022, 10:18pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/5 "2022-07-20T22:18:46Z")

</div>

Maybe in the actual mesh dialog, in the case of solid parts an option to choose to mesh only the faces (so "mesh 3D (by default) / mesh 2D), and in FE Model, under the Mesh menu a new entry with “Delete elements”, and with the usual way of choosing elements (by surface, angle…). The deletion of elements can be done with the actual tools, but the user needs to create an element sets, transform to part and then delete the part.

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [July 20, 2022, 10:40pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/6 "2022-07-20T22:40:02Z")

</div>

Deletion of selected elements from mesh could indeed be quite useful. But maybe instead of mesh 2D option (which could be somewhat confusing) it would be better to add a solid to shell (and possibly also shell to solid) tool.

---

<div class="post-metadata">

**Author:** ![mkraska](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mkraska](https://prepomax.discourse.group/u/mkraska)\
**Post date:** [July 21, 2022, 5:38pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/7 "2022-07-21T17:38:39Z")

</div>

A generic approach would be for solid parts:

- optional mesh settings for selections of faces and edges (just for truss elements, beams would require a lot of added infrastructure)
- optional suppression of the volume mesh

and for surface parts:

- optional mesh settings for selections of edges
- optional suppression of the surface mesh

If I understand it correctly, then netgen creates edge and surface meshes anyways. one just has to convey the requested ones to the database.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [July 23, 2022, 2:55pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/8 "2022-07-23T14:55:13Z")

</div>

You are right. Netgen creates and stores all three steps of the mesh: edges, surfaces and solids. All of them are imported into PrePoMax and then only the one that is needed is kept. The other two are removed.

But I still think that something like that should be done before meshing. So first prepare the geometry in the right way and then mesh it. I this way the user can later change the mesh sizes and remesh the part with ease.

---

<div class="post-metadata">

**Author:** ![mkraska](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@mkraska](https://prepomax.discourse.group/u/mkraska)\
**Post date:** [July 31, 2022, 8:55am UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/9 "2022-07-31T08:55:36Z")

</div>

A natural place to specify which entities to mesh would be the Sections branch of the model tree.

Currently, you only can apply Section specs to already existing elements.

One could go a step further and specify mesh settings in that branch, may be including element sizes.

If all other entities can be specified based on geometry, meshing would be the final step before actually issuing the simulation job.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [July 31, 2022, 11:15am UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/10 "2022-07-31T11:15:21Z")

</div>

> [@Matej](#):
>
> But I still think that something like that should be done before meshing.

maybe in the `Geometry` module tabs the face of a part can selected and extracted. creates new face part to be possible in meshing 2D, later in `FE Model` an offset of shell element can be set to match original solid models.

 ![2022-07-31 18_03_22-2Dmids](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/679116b46a54fd970acbb1660adb1c87fb0830f3.png)

but it’s not common workflow, many external pre-processor do extract 2D face from mid side of solid models.

another problems at the plate intersection, there will be a gap in sloped or perpendicular position. an option can be extend to match the neighbor plate (more complex) or simple using bonded tie approach.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [July 31, 2022, 8:14pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/11 "2022-07-31T20:14:08Z")

</div>

> [@mkraska](#):
>
> If all other entities can be specified based on geometry, meshing would be the final step before actually issuing the simulation job.

That is true for geometries meshed inside PrePoMax. But users also import the mesh from other tools, and I wish to keep the workflow for both possibilities the same. So I think it has to happen before the meshing.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [July 31, 2022, 8:16pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/12 "2022-07-31T20:16:03Z")

</div>

> [@synt](#):
>
> maybe in the `Geometry` module tabs the face of a part can selected and extracted. creates new face part to be possible in meshing 2D, later in `FE Model` an offset of shell element can be set to match original solid models.

Yes, this is the idea. I really do not have the time to develop a CAD program.

---

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [August 2, 2022, 12:03pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/13 "2022-08-02T12:03:51Z")

</div>

I understood that is a hard work dealing with the CAD geometry. Maybe if the mesher would have the option to mesh only the faces of the solids, and, in the model environment an option to easily select elements do delete manually, then it will be enough for creating shell models from solid parts, without developing a CAD program.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 2, 2022, 12:21pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/14 "2022-08-02T12:21:41Z")

</div>

Change from solid to shell should not be hard to do. Since the CAD kernel I am using is the same as in Salome, and this feature is available in Salome, I can recreate the procedure. That is not a problem. A problem is getting the mid surface. And probably from shell to solid Is the same.

---

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [August 2, 2022, 1:48pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/15 "2022-08-02T13:48:10Z")

</div>

But I’m not talking about generating a midsurface, with this procedure we´ll impor the part as a solid, then mesh as shell (all the surfaces), and in the model, we’ll select which side we want (or is better due to boundary conditions) to keep, upper or lower, and delete all the rest element (there we need a way to select and delete element directly, today we could make it creating components and then delete components). After that we should use an appropiate shell ofsset to compensate the fact that the mesh is not exactly the midsurfaces. Some preprocessos even have an option to tell directly that the mesh is upper/mid/lower side, so the user doesn´t have to think (well, thickness/2…).

As far as I see, if you can include the shell meshing, all can be done with the actual tools.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [August 2, 2022, 2:20pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/16 "2022-08-02T14:20:27Z")

</div>

> [@Matej](#):
>
> A problem is getting the mid surface.

i see, Salome itself has no features to extract mid surfaces from solid part. only have an option to extract of face (sub-shapes) from solid part by exploding.

![2022-08-02 21_12_29-Sub-shapes Selection](https://global.discourse-cdn.com/free1/uploads/prepomax/original/1X/48dbf0df46b8b559839a10278113dfe60542c915.png)

when interested, may this approach is enough to avoid difficulty at implementation in PrePoMax

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 2, 2022, 2:24pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/17 "2022-08-02T14:24:26Z")

</div>

I understand what you mean @SergioP1975. And it is doable since when meshing a volume, the surface mesh always exists.

But I think that from a point of view of a workflow, it makes more sense to have appropriate geometry first. Such a process then better fits in the workflow that already exists. And a tool to delete faces can also come in handy in other scenarios.

I think both solutions will take a similar time to develop so this is also not a factor.

---

<div class="post-metadata">

**Author:** ![SergioP1975](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/sergiop1975/32/37_2.png) [@SergioP1975](https://prepomax.discourse.group/u/SergioP1975)\
**Post date:** [August 2, 2022, 2:54pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/18 "2022-08-02T14:54:00Z")

</div>

Having the midsurfaces is the canonical way to solve sheet metal parts, but very often the designer doesn´t have the time, software or skills to get it, that’s why that alternative method is very common.

Obviously, having a tool to delete and move/offset the surfaces in the CAD module of Prepomax would be amazing.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [August 3, 2022, 7:30pm UTC](https://prepomax.discourse.group/t/meshing-a-solid-part-with-2d-elements/308/19 "2022-08-03T19:30:10Z")

</div>

Hmm, I was talking only about a tool to delete faces or maybe move them. Offset is another matter 🙂
