0% found this document useful (0 votes)
44 views1 page

Feed Reactor in Reactor Out Product Vapor Out Recycle Purge RHS

The document describes a VBA program for solving material balances in an ammonia production process using Gauss Jordan elimination. It includes specifications for the feed, reactor inputs and outputs, vapor outputs, recycle streams, and purge. A series of equations is set up and solved to determine the component flows throughout the process.

Uploaded by

cymy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views1 page

Feed Reactor in Reactor Out Product Vapor Out Recycle Purge RHS

The document describes a VBA program for solving material balances in an ammonia production process using Gauss Jordan elimination. It includes specifications for the feed, reactor inputs and outputs, vapor outputs, recycle streams, and purge. A series of equations is set up and solved to determine the component flows throughout the process.

Uploaded by

cymy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 1

Ammonia Material Balances using Gauss Jordan Elimination - VBA program

N2 + 3 H2 ---> 2 NH3Conversion

Reaction

Feed
N(Total)
Feed

Specs
Mixer
Material

1
0.245
0.74
0.012
0.003
0

0.65

Reactor In

N(N2) N(H2) N(CH4) N(A) N(NH3)

N(N2)

0.05 Split Fraction

Reactor Out

Product

N(H2) N(CH4) N(A) N(NH3) N(N2) N(H2) N(CH4) N(A) N(NH3) N(NH3)

Vapor Out

Recycle

Purge

N(N2) N(H2) N(CH4) N(A) N(NH3) N(N2) N(H2) N(CH4) N(A) N(NH3) N(N2) N(H2) N(CH4) N(A) N(NH3) RHS

-1

1000
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0

-1
-1
-1
-1
-1
-1

1
1

1
-1

1
-1

1
Balances
Reactor

1
-1

1
-1

0.35
-1.95

1
-1

-1
1

-1
1

Balances
Separator 1

1.3

-1
1

-1
0.75

-1

-1
1

-1
1

-1
1

Balances
Separator 2

-1
1

-1

-1
0.05

-1
0.05

-1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N(N2)
N(H2)
N(CH4)
N(A)

Feed

N(NH3)
N(N2)
N(H2)
N(CH4)
N(A)

Reactor In

N(NH3)
N(NH3)
N(N2)
N(H2)
N(CH4)
N(A)

Reactor Out

N(NH3)
N(N2)
N(H2)
N(CH4)
N(A)

Vapor Out

N(NH3)
N(N2)
N(H2)

Recycle

0
0

0
0

0
0

0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

0
0
0

1
0
0

0
1
0

0
0
1

12
3
7.82219

Purge

0
0
0

N(CH4)
N(A)

0
0
0

N(NH3)

Purge

Feed
Feed
Feed
Feed
Reactor In
Reactor In
Reactor In
Reactor In
Reactor Out
Reactor Out
Reactor Out
Reactor Out
Product
Vapor Out
Vapor Out
Vapor Out
Vapor Out
Recycle
Recycle
Recycle
Recycle
Purge
Purge
Purge

You might also like