Simple Blending simulation with Aspen Custom Modeler

Download as pdf : 
Products: Aspen Custom Modeler 
Last Updated: 15-Apr-2021
Versions: 
Article ID: 000098302
Primary Subject: 
Problem Statement
This is an example demonstrating the modeling of simple blending mixer in Aspen Custom Modeler

Solution
Fe, C, Cr and Mn are fed to furnace and mixed together to create Stainless Steel.
It does not use Aspen Properties but it uses stringset to define those components. 
Detailed code are attached as below.
You can learn how to use For Loop and multiport in this example.

 
Model Well
comp as stringset(["C","Fe","Mn","Cr"]);

inlet as input multiport of Fport;
outlet as output Fport;

total_mass as mass;
mass(comp) as mass(initial,0.1);
total_mass=sigma(mass);
fraction(comp) as massfraction;
1e4*fraction(comp)*total_mass=1e4*mass(comp);
Opening as percent(fixed,0.001);

for i in comp do
  $mass(i)=sigma(inlet.connection.mass*inlet.connection.fraction(i))-outlet.mass*outlet.fraction(i);
endfor

outlet.fraction=fraction;
outlet.mass=Opening/100*total_mass;


End
User-added image
Keyword

Aspen Custom Modeler, Blending, Mixer
Attachments
Filename Date Added
test.acmf 01-Apr-2021