Mig_
Aerospace
- Jan 14, 2022
- 1
How is it possible to create a FieldOutput with multiple types (e.g. TENSOR_3D_FULL and TENSOR_3D_PLANAR) ?
in my odb file,
returns :
Meaning that :
odb.steps['Step'].frames[-1].fieldOutputs['S'].baseElementTypes = ('C3D8', 'M3D4R')
odb.steps['Step'].frames[-1].fieldOutputs['S'].getSubset(elementType='C3D8').type = TENSOR_3D_FULL
odb.steps['Step'].frames[-1].fieldOutputs['S'].getSubset(elementType='M3D4R').type = TENSOR_3D_PLANAR
but odb.steps['Step'].frames[-1].fieldOutputs['S'].type = TENSOR_3D_FULL (it should be of many types : TENSOR_3D_FULL and TENSOR_3D_PLANAR)
My problem is that I want to create a fieldOutput for 'C3D8' and 'M3D4R' elements, if I define the FieldOutput with FieldOutput(name="var",description="var",type=TENSOR_3D_FULL), I can add data to 3D elements using addData() but not to M3D4R elements.
Do you have any solution ?
Thanks in advance
in my odb file,
Python:
odb.steps['Step'].frames[-1].fieldOutputs['S']
Python:
({'baseElementTypes': ('C3D8I', 'M3D4R'), 'bulkDataBlocks': ' object', 'componentLabels': ('S11', 'S22', 'S33', 'S12', 'S13', 'S23'), 'description': 'Stress components', 'isComplex': OFF, 'locations': 'FieldLocationArray object', 'name': 'S', 'type': TENSOR_3D_FULL, 'validInvariants': (MISES, MAX_PRINCIPAL, MID_PRINCIPAL, MIN_PRINCIPAL, TRESCA, PRESS, INV3), 'values': 'FieldValueArray object'})
Meaning that :
odb.steps['Step'].frames[-1].fieldOutputs['S'].baseElementTypes = ('C3D8', 'M3D4R')
odb.steps['Step'].frames[-1].fieldOutputs['S'].getSubset(elementType='C3D8').type = TENSOR_3D_FULL
odb.steps['Step'].frames[-1].fieldOutputs['S'].getSubset(elementType='M3D4R').type = TENSOR_3D_PLANAR
but odb.steps['Step'].frames[-1].fieldOutputs['S'].type = TENSOR_3D_FULL (it should be of many types : TENSOR_3D_FULL and TENSOR_3D_PLANAR)
My problem is that I want to create a fieldOutput for 'C3D8' and 'M3D4R' elements, if I define the FieldOutput with FieldOutput(name="var",description="var",type=TENSOR_3D_FULL), I can add data to 3D elements using addData() but not to M3D4R elements.
Do you have any solution ?
Thanks in advance