Exemplo n.º 1
0
from ollin.Example.UOS import Stream, Valve, Heater, Flash

PR = Ollin.AddModel("PR", "PR")
Ollin.Add([
    "METHANE", "ETHANE", "PROPANE", "ISOBUTANE", "N-BUTANE", "N-PENTANE",
    "N-HEXANE"
], "PR")
Ollin.LoadConst()
S1 = Stream(PR)
S1.X([85.92, 7.73, 2.45, 0.36, 0.56, 0.47, 1.12])
##S1.FracVap(0.6)
S1.T(66 + 273.15)
S1.P(24820)
S1.Mol(455)

V1 = Valve(PR)
V1.DP = 11030

H1 = Heater(PR)
H1.DP = 1
H1.DH = 1

F1 = Flash(PR)

S1.Connect(V1)
V1.Connect(H1)
##H1.Connect(F1)

S1.Solver()
S1.CasePrint()
Exemplo n.º 2
0
sys.path.append("/Users/jonathanxavier/Developer/sim42")

from ollin.Administrator.AdmOllin import Ollin
from ollin.Example.UOS import Stream, Valve,Heater,Flash

PR=Ollin.AddModel("PR","PR")
Ollin.Add(["METHANE","ETHANE","PROPANE","ISOBUTANE","N-BUTANE","N-PENTANE","N-HEXANE","N-HEPTANE"],"PR")
Ollin.LoadConst()
S1 = Stream(PR)
S1.X([14520,9070,7260,770,2810,950+1630,1540,3180])
##S1.FracVap(0.9)
S1.T(273.15+40)
S1.P(500)
S1.Mol(455)

V1 = Valve(PR)
V1.DP = 11030

H1 = Heater(PR)
H1.DP = 1
H1.DH = 1
 
F1 = Flash(PR) 
 
S1.Connect(F1)

##
##V1.Connect(H1)
##H1.Connect(F1)

S1.Solver()
Exemplo n.º 3
0
from ollin.Administrator.AdmOllin import Ollin
from ollin.Example.UOS import Stream, Valve,Heater,Flash

PR=Ollin.AddModel("PR","PR")
Ollin.Add(["METHANE","ETHANE","PROPANE","ISOBUTANE","N-BUTANE","N-PENTANE","N-HEXANE","N-HEPTANE","N-OCTANE","N-NONANE","N-DECANE","N-UNDECENE"],"PR")
Ollin.LoadConst()
S1 = Stream(PR)
S1.X([2995.5,2395.5,2291,2991,1539.9,790.4,1129.9,1764.7,1844.5,1699,831.7,1214.5])
####S1.FracVap(0.6)
S1.T(322)
S1.P(1861)
S1.Mol(455)

V1 = Valve(PR)
V1.DP = 50

H1 = Heater(PR)
H1.DP = 1
H1.DT = 1
 
F1 = Flash(PR) 
 
S1.Connect(V1)
V1.Connect(F1)
H1.Connect(F1)
##
S1.Solver()
S1.CasePrint()

V1.Solver()
V1.Out.CasePrint()