The XML definition file defines 4 attributes; 3 are material constants and are to be grouped under a single Attribute Group. The final one is the result set, used to obtaining intermediary results at a given time. The attribute section of the XML definition file is defined as:
<Attributes ObjId="2" Type="CAERepBase" Ver="2">
<DAAttribute ObjId="101" Type="DAAttribute" Ver="2">
<AttributeName PropType="string">Const 1</AttributeName>
<AttributeType PropType="string">Double</AttributeType>
<Application PropType="string">All</Application>
<Validation PropType="vector<string>">-100,100</Validation>
<Default PropType="string">0.247</Default>
</DAAttribute>
<DAAttribute ObjId="102" Type="DAAttribute" Ver="2">
<AttributeName PropType="string">Const 2</AttributeName>
<AttributeType PropType="string">Double</AttributeType>
<Application PropType="string">All</Application>
<Validation PropType="vector<string>">-100,100</Validation>
<Default PropType="string">2.2</Default>
</DAAttribute>
<DAAttribute ObjId="103" Type="DAAttribute" Ver="2">
<AttributeName PropType="string">Const 3</AttributeName>
<AttributeType PropType="string">Double</AttributeType>
<Application PropType="string">All</Application>
<Validation PropType="vector<string>">-100,100</Validation>
<Default PropType="string">0.25</Default>
</DAAttribute>
<DAAttribute ObjId="110" Type="DAAttribute" Ver="2">
<AttributeName PropType="string">Set Number</AttributeName>
<AttributeType PropType="string">Int</AttributeType>
<Application PropType="string">All</Application>
<Validation PropType="vector<string>">1,100</Validation>
<Default PropType="string">1</Default>
</DAAttribute>
</Attributes>And to group the 3 material constants together we have an Attribute Group. Defining these in the Attribute Group means that the values can be parameterized if required. This enables a range of coefficients and associative results obtained by running Design Explorer.
<AttributeGroups ObjId ="3" Type="CAERepBase" Ver="2">
<DAAttributeGroup ObjId="100000" Type="DAAttributeGroup" Ver="2">
<GroupType PropType="string">ASME VIII Division 3 High Pressure Vessels</GroupType>
<GroupSubtype PropType="string">Material Constants</GroupSubtype>
<AttributeIDs PropType="vector<unsigned int>">101,102,103</AttributeIDs>
</DAAttributeGroup>
</AttributeGroups>The solve and evaluate files are to reside in the user files folder so that they can be easily distributed with the project. All of the processing is to be performed during the evaluate script, so no intermediary files are created to pass data from the solve process to the evaluate process. Combination results are not required and we have no additional system based selection data to define.
<DAScripts ObjId="4" Type="DAScripts" Ver="2"> <Solve PropType="string">%DAUSERFILES%\DA-AFT-012_m1-S_empty.py</Solve> <Evaluate PropType="string">%DAUSERFILES%\DA-AFT-012_m1-E_v3_ST.py</Evaluate> <DAData PropType="int">1</DAData> <CombResults PropType="int">0</CombResults> </DAScripts>
In the final section, 3 types of DAResults are defined based on the following equations:
X - Based on 3 entered constants, plus principal and Von Mises stress
(90) |
Damage - The damage value: change in plastic strain divided by X
(91) |
Damage Sum - Accumulative damage; i.e. sum of current and previous Damage values for each result set.
The results section of the XML definition file appears as follows:
<Results ObjId="5" Type="CAERepBase" Ver="2"> <DAResult ObjId="100001" Type="DAResult" Ver="3"> <GroupType PropType="string">ASME VIII Division 3 High Pressure Vessels</GroupType> <GroupSubtype PropType="string">Value X</GroupSubtype> <AttributeIDs PropType="vector<unsigned int>">110</AttributeIDs> <DisplayType PropType="string">ElementNodal</DisplayType> <DisplayStyle PropType="string">Scalar</DisplayStyle> <DisplayUnits PropType="string">Stress</DisplayUnits> </DAResult> <DAResult ObjId="100002" Type="DAResult" Ver="3"> <GroupType PropType="string">ASME VIII Division 3 High Pressure Vessels</GroupType> <GroupSubtype PropType="string">Damage</GroupSubtype> <AttributeIDs PropType="vector<unsigned int>">110</AttributeIDs> <DisplayType PropType="string">ElementNodal</DisplayType> <DisplayStyle PropType="string">Scalar</DisplayStyle> <DisplayUnits PropType="string">No Units</DisplayUnits> </DAResult> <DAResult ObjId="100003" Type="DAResult" Ver="3"> <GroupType PropType="string">ASME VIII Division 3 High Pressure Vessels</GroupType> <GroupSubtype PropType="string">Culmative Damage</GroupSubtype> <AttributeIDs PropType="vector<unsigned int>"></AttributeIDs> <DisplayType PropType="string">ElementNodal</DisplayType> <DisplayStyle PropType="string">Scalar</DisplayStyle> <DisplayUnits PropType="string">No Units</DisplayUnits> </DAResult> </Results>