medfield.MEDfieldCr(fid, med_field_name, medfile.MED_FLOAT64,
1, comp, '', '', mesh_name)
- medfield.MEDfieldValueWr(fid, med_field_name, medenum.MED_NO_DT, medenum.MED_NO_IT, 0.0,
+ medfield.MEDfieldValueWr(fid, med_field_name, 0, medenum.MED_NO_IT, 0.0,
medenum.MED_NODE, medenum.MED_NONE,
medenum.MED_FULL_INTERLACE, medenum.MED_ALL_CONSTITUENT, len(values), values)
print "MED field '%s' on %s nodes has been created." % (med_field_name, nb_nodes)
# close MED file
- medfile.MEDfileClose(fid)
\ No newline at end of file
+ medfile.MEDfileClose(fid)
# --- ecriture du champ
- medfield.MEDfieldValueWr(fid, nomcha1, medenum.MED_NO_DT, medenum.MED_NO_IT, 0.0,
+ medfield.MEDfieldValueWr(fid, nomcha1, 0, medenum.MED_NO_IT, 0.0,
medenum.MED_NODE, medenum.MED_NONE,
medenum.MED_FULL_INTERLACE, medenum.MED_ALL_CONSTITUENT, nnoe, valz)
# --- fermeture du fichier
fieldOnNodes.setName("BOTTOM")
fieldOnNodes.setMesh(mymesh)
fieldOnNodes.setArray(mymesh.getCoords()[:,2])
+ fieldOnNodes.setTime(0.0,0,-1)
mm=MEDFileMesh.New(fichierZMaillage)
mm.write(fichierFMaillage,2)
MEDLoader.WriteFieldUsingAlreadyWrittenMesh(fichierFMaillage,fieldOnNodes)
stdz = np.std(vz)
v05z = np.percentile(vz,05)
v95z = np.percentile(vz,95)
-
+
statz[grp.GetName()] = (minz, maxz, meanz, stdz, v05z, v95z)