extract stress values in material system

Adriano_Koga
Adriano_Koga
Altair Employee
edited October 2020 in Community Q&A

Hi,

 

is it possible to retrieve the Stress values in the material system in Compose, using the readvector/readmultivector?

The default is analysis system, but it depends on the node numbering sequence. I'd like to have it in my standard material system.

Thanks in advance,

 

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.47407dc9bf56b232b197b5de79a84451.png

Tagged:

Answers

  • robertavarela
    robertavarela New Altair Community Member
    edited January 2020

    Unfortunately it is not possible, because these readers behave exactly like HyperGraph's. And in HyperGraph there is no such way to retrieve data in the material system.

    <?xml version="1.0" encoding="UTF-8"?>image.thumb.png.e991ffe81a63bdfb83aabce4412ad990.png

    My suggestion is to create a simple parser to read coordinate systems from the .fem model and then transform these results in Compose. These parsers are fairly simple and I can share an example here in the forum depending on your need.

     

    Regards,

     

    Roberta

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited January 2020

    Hi Roberta,

     

    It would be nice to have an example of parser.

    Anyway, I will export from HM the element orientation angles from the shell elements.

     

    Thanks for the quick response.

    Adriano

  • robertavarela
    robertavarela New Altair Community Member
    edited January 2020

    Adriano,

     

    In the attached file, you can see an example of function:

    [setIDlist, elemIDlist, elemprop, propmat, matparam] = readset_prop_mat(modelfile,inputSet)   

     

    Inputs:

    • modelfile: .fem file name (string)
    • inputSet: set ID (number)

    Outputs:

    •  setIDlist: list of set IDs (eg: 1, 2, 3, 4)
    • elemIDlist: list of element IDs in a way that Compose/HyperGraph readers understand them (eg: E1, E2, E3, E4)
    • elemprop: list of element IDs with respective properties (current version looks for CQUAD4 and CTRIA3 only)
    • propmat: list of properties that have been queried based on the elements and respective materials
    • matparam: list of materials that have been queried based on the properties and respective parameters (considering MAT8 with 5 parameters)

    The step by step is:

    1. A certain set is parsed based on the input ID
    2. The element list stored in that set is parsed
    3. Those elements are searched in order to determine their properties
    4. Those properties are searched in order to determine their materials
    5. Those materials are searched in order to determine their parameters

    Regards,

     

    Roberta

    Unable to find an attachment - read this blog

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited January 2020

    Thanks a lot, @robertavarela

    This will be helpful!