Defining solution parameters

Viktoria33 Member Posts: 3
First Comment


I saw in a few posts, that from v2021R2 on it is possible to define own parameters.

I want to define three Stress Intensity Factors along the crack as an output parameter.
At point 1, 16 and 31 of my crack front division. Is that possible and how?

Thank you so much.

Best regards,


Best Answer

  • Mike.Thompson
    Mike.Thompson Member, Employee Posts: 280
    First Anniversary First Comment 5 Likes Ansys Employee
    edited November 2023 Answer ✓

    You can do this with an APDL command snippet under the solution. This is an example of how to select a node by its index along the crack front (ARG1). The output of this will be 'my_K1' and will be parametric as needed in mechanical/workbench

    !------------------------- Notes -------------------------
    !This will calculate the fracture paramters for a crack via *GET CINT operations
    !It will allow to have the calculated values set as parametric if desired by using the Output Search Prefix option
    !------------------------- User Args -------------------------
    !If using this by: "RMB>Execute Post Commands" you need to explicitly change the MyCrackId as it wont be known from the previous model
    !MyCrackId = 1 !- > defined in the command object under the Crack in Fracture branch

    CrackNodeIndex = ARG1 !Index of the node along the crack front. NOT the node ID
    ContourNum = ARG2 !Contour number to use for the evaluation

    !------------------------- General routine -------------------------

    !export all the CINT info to a file: Fracture.out
    PRCINT, MyCrackId, ALL, K1

    !get the node Id of the node at the index = CrackNodeIndex
    !Get the SIF_I from the requested data
    !------------------------- END -------------------------


  • Viktoria33
    Viktoria33 Member Posts: 3
    First Comment
    edited November 2023

    Perfect, thank you so much, that already helped a lot. Now there is a text file with all the SIFS at the output of each design point. That already is really good.

    Unfortunatly it says 0 is there a mistake I made?
    I think it is the Index of the node along the crack, which one is that exactly/how do I find that out?