#NEWLINE# def generateUnstructuredGrid_single( ) : #NEWLINE# #INDENT# 'Generates Untructured Grid' #NEWLINE# ug = single_type_ug ( ) #NEWLINE# temperature = arange ( 0 , 120 , 10 , 'd' ) #NEWLINE# velocity = random . randn ( 12 , 3 ) #NEWLINE# ug . point_data . scalars = temperature #NEWLINE# ug . point_data . scalars . name = 'temperature' #NEWLINE# ug . point_data . vectors = velocity #NEWLINE# ug . point_data . vectors . name = 'velocity' #NEWLINE# return ug