Chapter 19: Fatigue Analysis Using Named Selections for Materials Assignment

This example uses Named Selections to assign material properties in the DesignLife Add-on.

Analysis TypeFatigue
Features DemonstratedDesignLife Add-on, DesignLife system
Licenses RequiredAnsys Mechanical Enterprise PrepPost and Ansys nCode Premium/Enterprise
Help ResourcesDesignLife Add-on
Tutorial FilesFatigueNamedSelection.zip

19.1. Access Data Files

The data file for this tutorial can be found here on the Ansys customer site.

The file you need is:

  • sae_shaft_1.wbpz - this is the model that you will set up by following the steps below. Copy the file to a working folder and complete the worked example using the copy. Make sure that you have write permission to the working folder.

19.2. Update Material Properties in Workbench

  1. Start Workbench and select File > Open.

  2. Browse to your working directory and select sae_shaft_1.wbpz.

The model is a steel shaft subjected to a constant bending load. The shaft was manufactured by a rolling process, and the center section was then machined down to final tolerances.

The first step is to define the material properties to be used in the analysis:

  1. Right-click the Engineering Data cell (B2) and select Edit.

  2. Click the Engineering Data Sources tab located at the top of the form to expose the Engineering Data Sources window.

    This window lists the data sources available.

  3. Scroll down and select nCode_matml.

    If nCode_matml is not a currently-available data source, scroll to the bottom of the list and select Click here to add a new library (see below). Then browse to the GlyphWorks/mats folder in your ANSYS nCode DesignLife installation and select nCode_matml.xml.

  4. Once nCode_matml is selected as a Data Source, its contents will be visible in the Outline of nCode_matml panel. Scroll down in that panel to find the AISI_4340_125 dataset. Click the Add button (see below) for that dataset to add it to the Contents of Engineering Data.

  5. Click the Engineering Data Sources tab again to hide the Engineering Data Sources panel and verify that AISI_4340_125 has been added to the Contents of Engineering Data (below).

  6. Select AISI_4340_125 in the Outline of Schematic B2: Engineering Data (above) to display its properties in the Properties panel.

    The selected material contains the appropriate ANSYS and nCode material definitions for performing a stress life analysis in DesignLife using a multicurve interpolation mean stress correction. You will add an additional property set to this material to allow it to be used to perform an FKM mean stress correction.

  7. Under nCode Properties in the Toolbox, select nCode FKM Meanstress Parameters and drag it onto AISI_4340_125 in the Contents of Engineering Data column.

  8. In the Properties panel for AISI_4340_125, set the nCode FKM Meanstress Parameters to the following values:

    • M1 = 0.0

    • M2 = −0.2

    • M3 = −0.2

    • M4 = −0.2

  9. Click the Project tab to return to the Project.

  10. Right-click the Model cell (B4) and select Edit.

    Select Yes if requested to read the upstream data.

    This opens the model in Mechanical.

  11. Expand the Geometry element in the project tree and select Solid.

  12. In the Details panel, under Material, set the Assignment to AISI_4340_125.

  13. From the Home toolbar, select Solve.

19.3. Identify Named Selections in Mechanical

  1. Expand the Named Selections element under Model (B4) in the project tree.

  2. Select As Rolled and then Machined and observe the pre-defined Named Selection scopings as shown in the figures below. These define portions of the model that will be assigned different surface finish corrections.

    Named Selection As Rolled:

    Named Selection Machined:

19.4. Load the DesignLife Add-on

  1. To make the DesignLife capabilities available, click the DesignLife icon in the Add-ons ribbon.

    The icon is highlighted in blue, indicating that the add-on is loaded.

    Once the add-on is loaded, the Ansys nCode DesignLife ribbon is visible, exposing all the DesignLife capabilities.

19.5. Insert a DesignLife System

  1. From the DesignLife ribbon, select New Analysis to insert a new DesignLife analysis directly from Mechanical.

  2. Click the New Analysis icon and verify that the nCode DesignLife (C5) object is inserted into Mechanical.

  3. In Workbench, verify that a Mechanical Embedded DesignLife system has been added to the project.

  4. Select the Solution cell of the Static Structural system and connect it to the Setup cell of the Mechanical Embedded DesignLife system.

19.6. Configure the DesignLife System

  1. In Mechanical, select the Analysis Settings element under nCode DesignLife (C5) in the project tree.

  2. Set the Analysis Type to Stress Life.

  3. Set the Mean Stress Correction to FKM.

  4. Under Solve Process Settings ensure that the following options are set correctly:

    • Set the Number of Analysis Threads to 4 (default).

      The Number of Analysis Threads property can be used to set the number of threads for a job or an individual run. For a distributed job, this count will apply to each process that comprises the job. This property corresponds to the NumAnalysisThreads parameter in the input.dcl file consumed by the nCode solver. More than four threads requires an Ansys nCode DesignLife Parallel Add-on license.

    • Set the Number of Translational Processes to 2 (default).

      This property controls the number of processes used simultaneously during the translation process. It corresponds to the NumTranslationProcesses parameter in the input.dcl file consumed by the nCode solver.

  5. Select the Solution Group element in the project tree and check the settings.

    This defines the portion of the geometry that will be used for the fatigue analysis calculation. By default, all bodies are selected. In this case, there is only one geometry, so there is no need to modify the setting.

    You will now add a Loading Event for the system and set the loading condition to the first time step of the structural analysis.

  6. Select the Load Mapper element in the project tree.

  7. Click the Add button next to Add Loading Event and click Apply.

    This adds the first Loading Event.

  8. Select the newly-created Loading Event and check that the loading Type is set to Constant Amplitude.

  9. Set Repeat Count to 1e9.

    The fatigue loads can be either Constant Amplitude, Time Step or Time Series for the Time based domain.

  10. Under Add Load, click Add and then Apply to create a new Constant Amplitude Load.

  11. Ensure that Environment is set to Static Structural and set Define By to Time.

  12. Set the Time to 1.

    This sets the loading condition to the first time step of the structural analysis.

  13. Set the Max Factor to 2500 and Min Factor to 0.

  14. Re-select the Loading Event object in the project tree.

    The details of the Loading Event are visible in the Tabular Data view.

    You will now add a Materials Assignment object to modify the material used in the fatigue calculation. Be aware that the upstream systems connected to nCode will still use the material defined in Engineering Data. Only the material parameters for the fatigue calculation within the nCode system will be modified.

    For more information, see Materials Assignment in the Mechanical Add-ons Guide.

  15. Right-click Materials under the nCode DesignLife (C5) tree element and select Modify Material Parameters.

  16. Set the Scoping Method to Named Selection and select the As Rolled named selection.

    The Based on Material property will be set to AISI_4340_125 by default, with properties as defined in the engineering data.

  17. In the Details panel, under Definition, set the nCode Material Type to Steel.

  18. Under Material Parameters, set the Surface Finish to As Rolled.

    The S-N Curves are displayed in Mechanical in the Materials Assignment Graph panel.

  19. Right-click Materials under the nCode DesignLife (C5) tree element and once again select Modify Material Parameters.

    This creates a new Materials Assignment 2 object.

  20. Set the Scoping Method to Named Selection and select the Machined named selection.

  21. In the Details panel, under Definition, set the nCode Material Type to Steel.

  22. Under Material Parameters, set the Surface Finish to Machined.

    The S-N Curves are displayed in Mechanical in the Materials Assignment Graph panel.

19.7. Solve and Review the Results

  1. Right-click the Solution (C6) object in the project tree and select Solve.

    While solving, selecting Solution Information will show the solver's progress and display errors as they are encountered.

    The fatigue results may be viewed as either life or damage.

  2. Insert Life and Damage results by clicking those buttons in the DesignLife toolbar with Solution (C6) active in the tree.

    Alternatively, right-click the Solution (C6) object and insert Life and Damage results (see below).

  3. Observe that the Tabular Data contains the 5 most damaged nodes.

    If a NodeId is selected in the table, this node will be highlighted in the graphics window.

  4. Change the Most Damaged Ids to Display property to 15.

    This filters the number of node Ids to display in the tabular data. Observe that the tabular data immediately updates.

  5. Select the first 4 most damaged nodes from the tabular data NodeId column to highlight these in the graphical display (see below).

You have completed the fatigue analysis using Named Selections and accomplished the overall objective for this tutorial.

Congratulations! You have completed the tutorial.