From f90a7b31d6bfca48cb75ac9754ca5b5605300673 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 12 May 2023 12:06:25 -0400 Subject: [PATCH] [Samples] Fix handling of porosity in WSR-chain PFR example --- samples/python/reactors/surf_pfr.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/samples/python/reactors/surf_pfr.py b/samples/python/reactors/surf_pfr.py index 5460d50f40..26c1782cfd 100644 --- a/samples/python/reactors/surf_pfr.py +++ b/samples/python/reactors/surf_pfr.py @@ -54,7 +54,7 @@ # catalyst area in one reactor cat_area = cat_area_per_vol * rvol -mass_flow_rate = velocity * gas.density * area +mass_flow_rate = velocity * gas.density * area * porosity # The plug flow reactor is represented by a linear chain of zero-dimensional # reactors. The gas at the inlet to the first one has the specified inlet @@ -96,11 +96,6 @@ v = ct.PressureController(r, downstream, master=m, K=1e-5) sim = ct.ReactorNet([r]) -sim.max_err_test_fails = 12 - -# set relative and absolute tolerances on the simulation -sim.rtol = 1.0e-9 -sim.atol = 1.0e-21 output_data = []