blob: 527f0044c09a62fd5572b126bd269e54afa09ea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Theory and Problems of Thermodynamics
// Chapter 1
// Basic Concepts
// Example 7
clear ;clc;
//Given data
t = 10 //t = time period for a liquid is heated in minutes
I = 3 // I = current in amperes
V = 200 // V = electric potential in volts
P = 200 // P = opearted power of rating motor in watts
//Calculate mass of 1 kmol air
t = t * 60; //units conversion minutes to seconds
E_res = V * I * t; //Energy transfered by resistor in J
E_pad = P * t; //Energy transfered by paddle wheel in J
E_tot = E_res + E_pad; //Total energy transfered
E_tot = E_tot/1000; //units conversion J to kJ
// Results
mprintf('Total enegy transfered = %3.0f kJ', E_tot)
|