You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@testset"Test liquid phase Constant T Constant V reactor with volumetric flow rate inlet and outlet simulation"begin
39
+
#Constant T and V Ideal Dilute Liquid
40
+
initialconds =Dict(["T"=>450.0,"V"=>1.0e-6*1e6,"octane"=>6.154e-3*1e6,"oxygen"=>4.953e-6*1e6]) #Set simulation Initial Temp and Pressure
41
+
domain,y0,p =ConstantTVDomain(phase=liq,initialconds=initialconds) #Define the domain (encodes how system thermodynamic properties calculated)
42
+
43
+
inlet =VolumetricFlowRateInlet(domain,Dict(["T"=>450.0,"P"=>1.e5,"octane"=>6.154e-3*1e6,"oxygen"=>4.953e-6*1e6]),x->1.0) #set the inlet flow rate and conditions
44
+
outlet =VolumetricFlowRateOutlet(domain,x->1.0) #set the outlet flow rate
45
+
interfaces = [inlet,outlet]
46
+
react =Reactor(domain,y0,(0.0,140000.01),interfaces;p=p) #Create the reactor object
47
+
48
+
sol =solve(react.ode,CVODE_BDF(),abstol=1e-20,reltol=1e-8); #solve the ode associated with the reactor
0 commit comments