MpcAttributeType.QuantityMatrix
Posted: Wed Jul 07, 2021 5:30 pm
Dear STKO team,
can you please let us know how the MpcAttributeType.QuantityMatrix is populated from the STKO preprocessor?
We are trying to implement automatically the Pressure Independent Multi Yield material as shown below:
meta = doc.metaDataPhysicalProperty('materials.nD.PressureIndependMultiYield')
xobj = MpcXObject.createInstanceOf(meta)
xobj.getAttribute('nd').integer = 3
xobj.getAttribute('rho').quantityScalar.value = 20
xobj.getAttribute('refShearModul').quantityScalar.value = 12
xobj.getAttribute('refBulkModul').quantityScalar.value = 25
xobj.getAttribute('cohesi').quantityScalar.value = 3.14
xobj.getAttribute('peakShearStra').real = 23
xobj.getAttribute('Optional').boolean = True
xobj.getAttribute('frictionAng').real = 250
xobj.getAttribute('refPress').quantityScalar.value = 123
xobj.getAttribute('pressDependCoe').real = 2500
xobj.getAttribute('surface').string = 'User defined surfaces'
xobj.getAttribute('r_Gs').quantityMatrix.value = ?
Unfortunately, we are unable to understand how to complete the last line for the user-defined case.
Thank you in advance for your help.
Best wishes,
Raffaele
can you please let us know how the MpcAttributeType.QuantityMatrix is populated from the STKO preprocessor?
We are trying to implement automatically the Pressure Independent Multi Yield material as shown below:
meta = doc.metaDataPhysicalProperty('materials.nD.PressureIndependMultiYield')
xobj = MpcXObject.createInstanceOf(meta)
xobj.getAttribute('nd').integer = 3
xobj.getAttribute('rho').quantityScalar.value = 20
xobj.getAttribute('refShearModul').quantityScalar.value = 12
xobj.getAttribute('refBulkModul').quantityScalar.value = 25
xobj.getAttribute('cohesi').quantityScalar.value = 3.14
xobj.getAttribute('peakShearStra').real = 23
xobj.getAttribute('Optional').boolean = True
xobj.getAttribute('frictionAng').real = 250
xobj.getAttribute('refPress').quantityScalar.value = 123
xobj.getAttribute('pressDependCoe').real = 2500
xobj.getAttribute('surface').string = 'User defined surfaces'
xobj.getAttribute('r_Gs').quantityMatrix.value = ?
Unfortunately, we are unable to understand how to complete the last line for the user-defined case.
Thank you in advance for your help.
Best wishes,
Raffaele