How to get time-history table for a ACT custom result object?

Ayush Kumar
Ayush Kumar Member, Moderator, Employee Posts: 389
First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
edited June 2023 in Structures

How to get time-history table for a ACT custom result object?

enter image description here

Tagged:

Answers

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 389
    First Anniversary Ansys Employee Solution Developer Community of Practice Member First Answer
    Answer ✓

    The timehistory Tag in result Tag of the XML should be set to "True"

    Example XML

        <result name="result_evaluate_problem" version="1" caption="custom_result" icon="hand" location="node" type="scalar" timehistory="True" contextual="false" >
            <callbacks>
                <getvalue>start_evaluation_gv</getvalue>
            </callbacks>
            <property name="GeometryDefinition" caption="Geometry Definition" control="scoping" readonly="false"/>
        </result>   
    

    Example Python

    from System import Array
    
    def start_evaluation_gv(result, nodeid):
        return Array[float]([nodeid])