Import step assembly with its compound

Hi,

I would like to share a thought: it might make sense, if pmx automatically creates compounds if they exist in the native step file.

In the following example created for this post:

  • coumponds were made in freecad (volume were split)
  • if the step is imported into pmx, we can (only) see elementary volume (see fig)
  • if the same step is imported into gmsh and meshed, one can notice each compond corresponds to 1 physical tag (see the latest figs)
  • (does the pmx import module is based on gmsh kernel?)
  • the zip file contains the freecad files, the step one and the gmsh ones

This feature will be usefull for assemblies espacially if we’re dealing with dozens of elementary volumes.

The discussion remains open :grinning_face_with_smiling_eyes:

Paul

Assembly.zip (1.3 MB)





,

PrePoMax uses OpenCASCADE to handle geometry.

IMO such feature should be optional because you don’t always want compounds. Abaqus does it this way:

Personally, I would prefer an option to export multiple parts from PrePoMax to one .step file instead of generating a single file for each part.

Why not indeed; In my mind compounds are usefull if you have several parts and dozens (or more) of volume: it becomes easy to identify which volume belongs to which part (amonf other things)

You may e.g. want to mesh the parts with other hex meshing techniques that don’t support compounds (unlike transfinite mesh). Also, compound creation may fail in some cases: Deformation in 2 or more bodies - #10 by Matej

But it would just need a setting in Tools → Settings like other import options.

I also think this would be a nice feature :slight_smile:

How does this model looks in FreeCAD? Does it have only 3 bodies?

I used “A2plus” (assembly) workbench to perform the assembly; in the zip file all the native freecad files have been inserted


you’re right, but you can decide on your own to remove the compound if you want (volumes have been saved anyway); once again, if you’re working on an assembly:

  • such compounds will easy to identify which volume belongs to which part
  • with a huge amount of voulmes, it becomes difficult to dig into the volumes and you’ve to manually rename it (typically to create Elsets afterward)

my opinion … :grinning_face_with_smiling_eyes: