def vaporeformageFluxSortant(Temperature, Pression, Ratio, Flux): sol = Classique(Temperature, Pression, Ratio, Flux) # flux_Sortant = [ CH4, H2O, CO ,H2, CO2] flux_Sortant = np.array([ Flux - sol[0], Ratio * Flux - sol[0] - sol[1], sol[0] - sol[1], 3 * sol[0] + sol[1], sol[1] ]) #print(flux_Sortant) #print('################################################### SMR') # waterGasShift(CO, H2O, CO2, H2) wgs_sortant = waterGasShift( [flux_Sortant[2], flux_Sortant[1], flux_Sortant[4], flux_Sortant[3]]) flux_Sortant[2] = wgs_sortant[0] # CO flux_Sortant[1] = wgs_sortant[1] # H2O flux_Sortant[4] = wgs_sortant[2] # CO2 flux_Sortant[3] = wgs_sortant[3] # H2 #print(flux_Sortant) #print('################################################### WGS') flux_Sortant[1] = 0 # Condensation H2O #print(flux_Sortant) #print('################################################### Condensation') flux_Sortant[4] = 0 # Absorption CO2 #print(flux_Sortant) #print('################################################### Absorption') #print('Purete H2 %.2f%%' % (100*flux_Sortant[3]/np.sum(flux_Sortant))) return flux_Sortant
def ATRDegreAvancement(arg): temperature, pression, ratio, ratioO2, flux = getVariableATR() # Importe les variables depuis Variables.py flux_Sortant = np.array([ flux*(1-ratioO2/2)-arg[0] , flux*(1+ratio+ratioO2) - arg[0] - arg[1] , arg[0] - arg[1] , 3*arg[0] + arg[1], ratioO2/2 + arg[1]]) wgs_sortant = waterGasShift([flux_Sortant[2], flux_Sortant[1], flux_Sortant[4], flux_Sortant[3]]) flux_Sortant[2] = wgs_sortant[0] # CO flux_Sortant[1] = wgs_sortant[1] # H2O flux_Sortant[4] = wgs_sortant[2] # CO2 flux_Sortant[3] = wgs_sortant[3] # H2 #print(flux_Sortant) #print('################################################### WGS') flux_Sortant[1] = 0 # Condensation H2O #print(flux_Sortant) #print('################################################### Condensation') flux_Sortant[4] = 0 # Absorption CO2 #print(flux_Sortant) #print('################################################### Absorption') return flux_Sortant
def SMRDegreAvancement(arg): ratio = getVariableSMR()[2] flux = getVariableSMR()[3] flux_Sortant = np.array([ flux-arg[0] , ratio*flux - arg[0] - arg[1] , arg[0] - arg[1] , 3*arg[0] + arg[1], arg[1]]) wgs_sortant = waterGasShift([flux_Sortant[2], flux_Sortant[1], flux_Sortant[4], flux_Sortant[3]]) flux_Sortant[2] = wgs_sortant[0] # CO flux_Sortant[1] = wgs_sortant[1] # H2O flux_Sortant[4] = wgs_sortant[2] # CO2 flux_Sortant[3] = wgs_sortant[3] # H2 #print(flux_Sortant) #print('################################################### WGS') flux_Sortant[1] = 0 # Condensation H2O #print(flux_Sortant) #print('################################################### Condensation') flux_Sortant[4] = 0 # Absorption CO2 #print(flux_Sortant) #print('################################################### Absorption') return flux_Sortant
def vaporeformageDegreAvancement(arg): flux_Sortant = np.array([ flux * (1 - ratioO2 / 2) - arg[0], flux * (1 + ratio + ratioO2) - arg[0] - arg[1], arg[0] - arg[1], 3 * arg[0] + arg[1], ratioO2 / 2 + arg[1] ]) wgs_sortant = waterGasShift( [flux_Sortant[2], flux_Sortant[1], flux_Sortant[4], flux_Sortant[3]]) flux_Sortant[2] = wgs_sortant[0] # CO flux_Sortant[1] = wgs_sortant[1] # H2O flux_Sortant[4] = wgs_sortant[2] # CO2 flux_Sortant[3] = wgs_sortant[3] # H2 #print(flux_Sortant) #print('################################################### WGS') flux_Sortant[1] = 0 # Condensation H2O #print(flux_Sortant) #print('################################################### Condensation') flux_Sortant[4] = 0 # Absorption CO2 #print(flux_Sortant) #print('################################################### Absorption') return flux_Sortant