Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

It is enough for me to get the logic to solve it. NO + H_2 doubleheadarrow H_2O

ID: 2077734 • Letter: I

Question

It is enough for me to get the logic to solve it.

NO + H_2 doubleheadarrow H_2O + 1/2 N_2 reaction 1 NO + 5/2 H_2 doubleheadarrow H_2O + NH_3 reaction 2 The reactions follow an elementary rate law and are equilibrium reactions. Assume only NO and H_2 fed to the reactor and the total pressure is 1 atm. The total flow rate is held at 20 L/min. Using MATLAB, you are required to calculate the resulting molar flow rates with two different catalyst weights of 0.56 kg and 0.13 kg when the reaction is carried out at a) 25 degree C b) 525 degree C Plot the molar flow rates for each species as a function of catalyst weight, and discuss the effects of temperature and catalyst weight on flow rates (hence conversion).

Explanation / Answer

Solution :- Since you have asked about the logic then please note the below general program which will definitely help you to correlate MATLAB and molar mass. Hope you will understand the logic and appreciate this.

function[molar_mass] = molarMass(formula, information)

Names = []; %// Creates a Name array

[~,c] = size(information); %Finds the rows and columns of the table

for i = 1:c %Reads through the columns

    Molecules = getfield(information(:,i), 'Name'); %Finds the numbers in the 'Name' area

        Names = [Names {Molecules}];

end

Symbols = [];

[~, c2] = size(information);

for i = 1:c2 %Reads through the columns

    Symbs = getfield(information(:,i), 'Symbol'); %Finds the numbers in the 'Symbol'

        Symbols = [Symbols {Symbs}];

end

AN = [];

[~, c3] = size(information);

for i = 1:c3 %Reads through the columns

   Atom = getfield(information(:,i), 'AtomicNumber'); %Finds the numbers in the 'AtomicWeight' area

        AN = [AN {Atom}];

end

Wt = [information(:).AtomicWeight];

formula_parts = strsplit(formula, ','); % cell array of strings

total_mass = 0;

multi = [];

atoms = [];

Indices = [];

for ipart = 1:length(formula_parts)

    part = formula_parts{ipart}; % Takes in the string

        isdigit = (part >= '0') & (part <= '9'); % A boolean array

    atom = part(~isdigit); % Select all chars that are not digits

    Indixes = find(strcmp(Symbols, atom));

    Indices = [Indices {Indixes}];

    mole = atom;

    atoms = [atoms {mole}];

    natoms = part(isdigit); % Select all chars that are digits

    % Convert natoms string to numbers, default to 1 if missing

    if length(natoms) == 0

        natoms = '1';

      multi = [multi {natoms}];

    else

        natoms = num2str(natoms);

        multi = [multi {natoms}];

    end

end

multi = char(multi);

multi = str2num(multi); %Creates a number array with my multipliers

f=56;

Molecule_Wt = Wt{Indices};

   duck = 62;

    total_mass = total_mass + atom_weight * multi;

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote