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

3ProblemSet2Problem9 PDF

This document contains Matlab code to calculate and plot the molar heat capacity (Cv) as a function of temperature based on a two-state model. It defines constants, creates temperature and Cv vectors, calculates Cv values for each temperature using the two-state model equation, plots the Cv values against temperature, and finds the maximum Cv value.

Uploaded by

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

3ProblemSet2Problem9 PDF

This document contains Matlab code to calculate and plot the molar heat capacity (Cv) as a function of temperature based on a two-state model. It defines constants, creates temperature and Cv vectors, calculates Cv values for each temperature using the two-state model equation, plots the Cv values against temperature, and finds the maximum Cv value.

Uploaded by

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

9/15/15 1:28 PM

\\base\root...\CBE353ProblemSet2Problem9.m

R=8.314; %Gas contant in J/mol*K


T=1:5000; %Temperature in K
%Assume energy of the state = 1
E=1000; %cm^-1
K=0.69486; %cm^-1
Cv=1:length(T);
%Creating a vector of Cv_m values using the expression for molar Cv_m

for i=1:length(T)
Cv(i)=R*((((E^2)/((K^2)*(T(i)^2)))*exp(-E/(K*T(i))))/(1+exp(-E/(K*T(i))))^2);
end
plot(T,Cv)%Plotting the values
xlabel('Temperature in Kelvin')
ylabel('Molar Heat Capacity')
%Calculating the maximum
f = @(x) R*((((E^2)/((K^2)*(x^2)))*exp(-E/(K*x)))/(1+exp(-E/(K*x)))^2);
max_x = fminbnd(@(x) -f(x),1,5000)

1 of 1

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy