faceIDs,faceCfs=cellPoints(output,CoR,angles)# TODO check reference frame transformation, start from fixed and transform total force
# faceIDs, faceCfs=cellPoints(output, CoR, angles) # TODO check reference frame transformation, start from fixed and transform total force
# alpha=np.array(output.GetCellData().GetArray("alpha.water")) ## les valeurs au centre des cellules
...
...
@@ -230,7 +201,7 @@ print('Initialisation : selection of cells within section cut')
# faceCfs = np.loadtxt('tmp/faceCfs.txt')
# faceSf = np.loadtxt('tmp/faceSf.txt')
faceIDs,faceWeights,faceCfs,faceSf=lib.find_and_keep_faces(output,cutPoint,faceCfs,CoR,angles)# TODO check reference frame transformation, start from fixed and transform total force
faceIDs,faceWeights,faceCfs,faceSf=lib.find_and_keep_faces(output,cutPoint,CoR,angles)# TODO check reference frame transformation, start from fixed and transform total force
# with open('tmp/faceIDs.txt', 'w') as f:
...
...
@@ -291,7 +262,8 @@ for dt in range(0,len(time_foamstar)):