Using Named Selections


Note:  You cannot change the reference named selection after field data objects are added to the database. Field data objects are always defined on a reference named selection. By default, oSP3D uses the entire reference mesh.


Setting Named Selections Imported Within the Reference Mesh

oSP3D recognizes and imports named selections within the reference mesh.

To start a new project and set a reference mesh and named selections within the reference mesh:

  1. Set up the project:

    1. Start a new oSP3D project.

    2. For Filename, select the mesh file sos_mesh.cdb in oSP3D_examples\ansys\simple_cube.

    3. For Project name, set a name of your choice.

  2. Set the named selection:

    1. Select File > Mesh > Set reference named selection.

    2. For nodes used for statistics/models, set the named selection SOS_MODEL_NODES.

       

      All field data objects of the node type, such as field designs, models, and statistics results, are defined on this reference named selection.

    3. Click OK.

  3. Create a synthetic random field model:

    1. Select Field data models > Random fields > Create synthetic random field model.

    2. For Ident, set an identifier of your choice.

    3. For Data type, select Node.

    4. Click OK.

You can now visualize a shape of the newly created random field model.

This image shows a random field model defined on a reference named selection of type node.

 

Importing Named Selections from a CSV File

To start a new project, set a reference mesh, and import named selections from a CSV file:

  1. Set up the project:

    1. Start a new oSP3D project.

    2. For Filename, select the mesh file sos_mesh.cdb in oSP3D_examples\ansys\simple_cube.

    3. For Project name, set a name of your choice.

      While this mesh file contains named selections, you can still add your own named selections from a CSV file.

  2. Import the named selection from the CSV file:

    1. Select File > Mesh > Import named selection from CSV.

    2. Open the file named_selection.csv in oSP3D_examples\ansys\simple_cube\named_selections.

      This file contains a list of element and node identifiers.

    3. For Ident, set an identifier of your choice.

    4. For Data type, select Element set.

    5. Click OK.

    oSP3D interprets the CSV file as a list of element or node Identifiers, depending on selected data type.

  3. Set the imported named selection:

    1. Select File > Mesh > Set reference named selection.

    2. For elements used for statistics/models, set the imported named selection.

       

      All field data objects of the element type, such as field designs, models, and statistics results, are defined on this reference named selection.

    3. Click OK.

  4. Create a synthetic random field model:

    1. Select Field data models > Random fields > Create synthetic random field model.

    2. For Ident, set an identifier of your choice.

    3. For Data type, select Element.

    4. Click OK.

You can now visualize a shape of the newly created random field model.

This image shows a random field model defined on a reference named selection of type element.

 

Setting a Fixed Boundary for Mesh Morphing

To start a new project, import named selections, and set a fixed boundary for mesh morphing:

  1. Set up the project:

    1. Start a new oSP3D project.

    2. For Filename, select the mesh file sos_mesh.cdb in oSP3D_examples\ansys\simple_cube.

    3. For Project name, set a name of your choice.

      While this mesh file contains named selections, you can still add your own named selections from a CSV file.

  2. Import named selections from a CSV file:

    1. Select File > Mesh > Import named selection from CSV.

    2. Open the file bottom_and_one_side.txt in oSP3D_examples\ansys\simple_cube\named_selections.

    3. For Ident, set an identifier of your choice.

    4. For Data type, select Node set.

      Click OK.

  3. Import and set more named selections:

    1. Import named selections from the file top_surface.txt in oSP3D_examples\ansys\simple_cube\named_selections as a Node set.

    2. For nodes used for statistics/models, set the named selection TopSurface.

    3. For fixed nodes for mesh morphing, set the named selection BottomAndOneSide.

    4. For elements used for statatistics/models, set All elements.

       

    5. Click OK.

  4. Create a synthetic random field model:

    1. Select Field data models > Random fields > Create synthetic random field model.

    2. For Ident, set an identifier of your choice.

    3. For Data type, select Node

    4. For Standard deviation, select Define homogeneous and set the value to 0.002.

       

    5. Click OK.

  5. Visualize the morphed mesh:

    1. In the Choose visible data toolbar, select Contour plot, Node data, SyntheticField, and Random field.

    2. Click Add.

    3. In the Choose visible data toolbar, select Normal displacement, Node data, SyntheticField, and Random field.

      Click Apply.

    4. In the Field data model inspector, use the sliders to adjust the palette bounds as necessary, observing how the mesh is morphed according to the synthetic random field.

 

The mesh is morphed on the fly when adjusting the normal displacements according to the random field. The nodes of the named selection TopSurface that was set for nodes used for statistics/models are being morphed while the nodes of the named selection BottomAndOneSide that was set for fixed nodes for mesh morphing remain in place.

This shows that when these two named selections "touch" each other, morphing partially fails, resulting in broken mesh elements. Remember to always maintain nodes that are not part of any reference named selection between the fixed and morphed named selections.