Parametric Study ANSYS Meshing losing body references

  • Last Post 07 February 2019
  • Topic Is Solved
Ryan27 posted this 07 February 2019

I Currently have a parametric study set up with varying geometry constructed using SpaceClaim scripting. The issue is when a parameter changes and the geometry updates, the mesh looses references to the body selections. To overcome this I made the body a named selection in SpaceClaim and selected the "Named Selection" option (instead of Geometry Selection) in ANSYS meshing. However when using a Body of Influence you can only select the body.

I also receive the following Warning in ANSYS Mesher

'One or more objects have lost scoping attachments during the geometry update.

Parametric Study setup

Parametric study setup


Initial mesh setup

Meshing after initial setup


Mesh after updating the geometry with changed parameter. Note the body is no longer selected

After updating geometry mesh looses reference to body selection


Solution is to make the body a named selection

Can be fixed by making named selection of body


This solution does not work for Body of Influence as you can't select it as a Named Selection

This solution still doesn't work when creating a body of influence

Order By: Standard | Newest | Votes
sathya posted this 07 February 2019


Apply the following setting and fire again.

  • Liked by
  • Ryan27
Ryan27 posted this 07 February 2019

Thanks, I tried those settings and it still doesn't work. Something else that may be of importance is each time a parameter is changed the SpaceClaim script deletes all components/bodies and completely rebuilds the geometry based on the new parameters.

peteroznewman posted this 07 February 2019

I haven't used SpaceClaim scripts, but you have identified the problem that the script deletes all components/bodies. Is is possible for the script to create the Groups (Named Selections) that are used in Meshing?

I have succeeded in using parameters to change the shape of bodies in SpaceClaim when the parameters just move faces. Then Meshing has a persistent face ID to attach items to.  Can you achieve the needed changes using this approach?

  • Liked by
  • Ryan27
  • Jackely
Ryan27 posted this 07 February 2019

I've got the script creating all the named selections and this works well and I can use them when meshing. The problem is when creating a body of influence it doesn't give the option to select the BOI as a named selection, only a geometry selection (which is where it loses its reference).

What the script does is import some geometry, rotates the bodies (which is a parameter) then creates an enclosure around it. It also creates another body used as a BOI, along with all the named selections.

I've tried just moving the faces in the enclosure however the geometry seems to be complicated enough that it just ends up deleting them or produces some kind of error.

peteroznewman posted this 07 February 2019

Sounds like you will have to give up on the BOI as a meshing control.

Ryan27 posted this 07 February 2019

So I've found a bit of a work around. As the BOI doesn't change when changing the parameters, I just left it as a permanent body so the script only deletes and rebuilds the enclosure.

  • Liked by
  • peteroznewman