Evaluating Gasket Tightness

This multi-part tutorial shows how to create an advanced oSP3D analysis, combining multiple field-MOPs and a custom algorithm. The oSP3D analysis is then exported as an FMU, allowing consumption with Ansys optiSLang or Ansys Twin Builder, which is part of Electronics Desktop.

The objective of this analysis is to determine if the gasket is tight, given a certain bolt pretension and pressure of the flowing medium.

 

The folder oSP3D_examples\ansys\gasket contains the files that are used in this tutorial. Because the oSP3D database file gasket_tightness.sdb already contains imported simulation data and field-MOPs, if you load this file, you can skip to Exporting the Custom Analysis Workflow as an FMU. However, if you want to step through the entire process in a new oSP3D database file, perform the procedures in the next two topics.

Identifying the Contact Tightness Algorithm

To identify the contact tightness algorithm.

  1. Select File > Macros > Manage macros.

  2. In the Manage macros window, select the macro identifyContactTightness and click Edit.

    In the Edit chunks / macros window, the Input arguments area displays two scalar parameters that tune the algorithm (minimumPressure and minimumContactState) and two variables of type string that set the named selections of the inner and outer closed rings across which tightness is to be evaluated.

     

  3. After viewing these arguments, close the Edit chunks / macros window and then the Manage macros window.

Importing Simulation Data and Creating Field-MOPs

In a new oSP3D project, import the simulation data:

  1. To import the reference mesh, select File > Mesh > Set reference mesh and open sos_mesh.cdb in oSP3D_examples\ansys\gasket\workflow\gasket.opd\Sensitivity\Design0002\dp0\SYS-6\MECH\SoS_Export.


    Note:  Design0001 failed and no mesh was exported during the DOE.


  2. To import named selections for the inner and outer edges:

    1. Select File > Mesh > Import named selection from CSV and open ns_gasket_seal_edge_inner.csv in oSP3D_examples\ansys\gasket\components.

    2. Set the identifier to INNER_EDGE and create a node set.

    3. Select File > Mesh > Import named selection from CSV and open ns_gasket_seal_edge_outer.csv in oSP3D_examples\ansys\gasket\components.

    4. Set the identifier to OUTER_EDGE and create a node set.


    Caution:  The identifiers for the named selections must be set precisely to INNER_EDGE and OUTER_EDGE. Otherwise, the identifyContactTightness algorithm fails.


  3. To import field designs:

    1. Select File > Process multiple designs > Import field designs.

    2. In the Files to parse area, add the LS-PrePost output file sos_results.k in Design0002\dp0\SYS-6\MECH\SoS_Export.

    3. Set Path of reference design to \oSP3D_examples\ansys\gasket\workflow\gasket.opd\Sensitivity\Design0002\.

       

    4. Finish the import.

    The number of field designs imported should be 45.

  4. To import scalar input parameters:

    1. Select File > Import data > Import scalars from optiSLang .bin and open StartSet.bin in oSP3D_examples\ansys\gasket\workflow\gasket.opd.

    2. Accept the default values in the Import scalar parameters to oSP3D window.

    3. Select Edit > Deactivate incomplete designs.


      Note:  During the DOE, some designs have failed to produce results. Designs without field results must be excluded from field-MOP training.


  5. To create field-MOPs:

    1. Select Field data models > Field-MOP > Create Field-MOP.

    2. Drag and drop all scalar quantities to the Input (selectable) list.

    3. Drag and drop the field node quantities STATUS and PRESSURE to the Output list.

       

    4. Click OK to create the field-MOPs with the default settings.

    By evaluating the two newly created field-MOPs, you are now ready to approximate the contact pressure field and contact state field for any given set of input parameters (within the range of training data).

Exporting the Custom Analysis Workflow as an FMU

To determine if the gasket is tight for a given set of input parameters, you can export the macro-based custom analysis workflow as an FMU.


Note:  If you skipped to this step after loading the oSP3D database file gasket_tightness.sdb, you can export the custom analysis workflow in this database file as an FMU.


To export the custom analysis workflow as an FMU:

  1. Select File > Export for simulation > Macro-based FMU.

  2. In the Custom solver definition window, click Add Macro.

  3. Select Evaluate Field-MOP nodeEvaluateFieldMOP.

  4. Click Next.

  5. In the fieldMOP field, enter PRESSURE.

  6. From the fmopIdent list, select PRESSURE. 

  7. Click Finish.

    The macro is added to the custom solver definition.

  8. Click Add Macro.

  9. Select Evaluate Field-MOP nodeEvaluateFieldMOP.

  10. In the fieldMOP field, enter STATUS.

  11. From the fmopIdent list, select STATUS.

  12. Click Finish.

    The macro is added to the custom solver definition.

  13. Click Add Macro.

  14. Select Identify tightness of a contact area.

  15. Enter the following information:

    FieldValue
    pressureFieldPRESSURE
    isTightisTight
    contactFieldSTATUS
    minimumPressureminimumPressure
    minimumContactStateminimumContactState
    Named selectionns_gasket_seal_edge_inner
    Named selectionns_gasket_seal_edge_outer
    tighnessFieldtightnessField
  16. Click Finish.

    The macro is added to the custom solver definition.

  17. Add additional macros of your choice.

    For example, you might add the macro for extracting the maximum value of the PRESSURE field.

  18. Click Next.

  19. Click the folder icon.

  20. Select a file name, type, and location for your exported FMU file.

  21. Click Save.

    The file path is added to the Output file field.

  22. Click Finish.

Executing the Exported FMU

In a tool of your choice, execute the exported FMU. The following tools are recommended: