Skip to content

Commit

Permalink
[Samples] Fix handling of porosity in WSR-chain PFR example
Browse files Browse the repository at this point in the history
  • Loading branch information
speth authored and ischoegl committed Jun 14, 2023
1 parent 97cb2fa commit f90a7b3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions samples/python/reactors/surf_pfr.py
Expand Up @@ -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
Expand Down Expand Up @@ -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 = []

Expand Down

0 comments on commit f90a7b3

Please sign in to comment.