(Solved Homework): Ideal gas tow: PV = nRT P = pressure (kPa) V = volume (m^3) n = number of kmoles of gas in sample R = ideal gas constant (8.314 kP…

Matllab question:

ideal gas law: PV nRT P pressure (kPa) V-volume (m) n=number of kmoles of gas in sample R ideal gas constant (8.314 kPam/kmol k) T- temperature (K) Find the mass of air in the male patient. Find the mass of air in the female patient. Variables Male lung capacity 6000 ml Female lung capacity 4200 ml Temperature 300K Pressure-30 cmH,o Average air molecular mass = 29 kg/kmol Conversion to kPo: 1 cmH,0·0.098 kPa Conversion to ㎡, 1 ml+104 ㎡ Relationship between mass and moles: n m- mass (kg) MW molar mass in kg/mol m/MW Problem 2 (25 points) In class, we found the mass of air present in the lung of a male patient and female patient. Assuming that the temperature of the air is 300 K and pressure 30 cmH20, calculate the mass of air (in grams) for 10 equally spaced total lung capacity values, with the minimum value of 4200 mL and the maximum value of 6000 mL Recall from class that the average molar mass of air is 29 kg/kmol.

Don't use plagiarized sources. Get Your Custom Essay on
(Solved Homework): Ideal gas tow: PV = nRT P = pressure (kPa) V = volume (m^3) n = number of kmoles of gas in sample R = ideal gas constant (8.314 kP…
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT!
Order Essay

I need a solution for matlab (code) not calculation, Thank you

Ideal gas tow: PV = nRT P = pressure (kPa) V = volume (m^3) n = number of kmoles of gas in sample R = ideal gas constant (8.314 kPa middot m^3/kmol middot K) T = temperature (K) Conversion to kPa: 1 cm H_2O = 0.098 kPa Conversion to m^3: 1 mL = 10^-6 m^3 Relationship between moss and moles: n = m/MW m = mass (kg) MW = molar mass in kg/mol Find the mass of air in the male patient. Find the mass of air in the female patient. Variables Male lung capacity = 6000 mL Female lung capacity = 4300 mL Temperature = 300 K Pressure = 30 cmH_2O Average air molecular mass = 29 kg/kmol In class, we found the mass of air present in the lung of a male patient and female patient. Assuming that the temperature of the air is 300 K and pressure 30 cmH20, calculate the mass of air (in grams) for 10 equally spaced total lung capacity values, with the minimum value of 4200 mL and the maximum value of 6000 mL. Recall from class that the average molar mass of air is 29 kg/kmol.

Expert Answer

 

Matlab code:

P=30*0.098; %1cm H2O=0.098 kPa here 30cm H2O so 30*0.098
male_lung_capacity=6000*10^-6; %1mL=10^-6 m^3
female_lung_capacity=4200*10^-6;
temp=300; %in kelvin
MW=29; %molar mass in kg/kmol
R=8.314; %ideal gas constant in Kpa.m^3/kmol.K
n1=(P*(male_lung_capacity))/(R*temp); % PV=nRT that gives n=PV/RT
n2=(P*(female_lung_capacity))/(R*temp); % PV=nRT that gives n=PV/RT
m1=n1*MW; %n=m/MW relationship between mass and moles
m2=n2*MW; %n=m/MW relationship between mass and moles
disp(‘mass of air(in grams) in male patient is: ‘);
disp(m1*10^3); %m1 is in kg for conversion 1kg=1000 gms multiplied with 10^3
disp(‘mass of air(in grams) in female patient is: ‘);
disp(m2*10^3); %m2 is in kg for conversion 1kg=1000 gms multiplied with 10^3

Output:

Homework Ocean
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

× Contact Live Agents