Jeje3103
New member
- Oct 22, 2015
- 8
online
1 post
This post has NOT been accepted by the mailing list yet.
I m trying to extract the stresses with Python at each integration points (or an extrapolation to the nodes). I get the stresses but i dont succeed to use a nodelabel or something like that to
know where i m extracting data...
My aim is to extract some values as plastic strain and re use it in an other calculation so i
need to know exactly the labelling
My code is :
from odbAccess import *
import numpy as np
odb = openOdb(path='C:/Users/Jerome/Desktop/test_couplageFEM_DIC/Fish.odb')
lastFrame = odb.steps['Step-1'].frames[-1]
stress=lastFrame.fieldOutputs['S']
sortie = open('Resu_PE_maillage.txt', 'w')
sortie.write('Node label \t S11 \t\t S22 \t\t S33 \t\t S12 \t\t S23 \t\t S13 \n')
for S in stress.values:
sortie.write('%.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\n' % (S.data[0], S.data[1], S.data[2], S.data[3], S.data[4], S.data[5]))
sortie.close()
1 post
This post has NOT been accepted by the mailing list yet.
I m trying to extract the stresses with Python at each integration points (or an extrapolation to the nodes). I get the stresses but i dont succeed to use a nodelabel or something like that to
know where i m extracting data...
My aim is to extract some values as plastic strain and re use it in an other calculation so i
need to know exactly the labelling
My code is :
from odbAccess import *
import numpy as np
odb = openOdb(path='C:/Users/Jerome/Desktop/test_couplageFEM_DIC/Fish.odb')
lastFrame = odb.steps['Step-1'].frames[-1]
stress=lastFrame.fieldOutputs['S']
sortie = open('Resu_PE_maillage.txt', 'w')
sortie.write('Node label \t S11 \t\t S22 \t\t S33 \t\t S12 \t\t S23 \t\t S13 \n')
for S in stress.values:
sortie.write('%.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\t\t %.10e\n' % (S.data[0], S.data[1], S.data[2], S.data[3], S.data[4], S.data[5]))
sortie.close()