23
[email protected] • ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer [email protected] Engr/Math/Physics 25 Problem 9.15 Problem 9.15 Solution Solution

[email protected] ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

Embed Size (px)

Citation preview

Page 1: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 1

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Bruce Mayer, PELicensed Electrical & Mechanical Engineer

[email protected]

Engr/Math/Physics 25

Problem 9.15Problem 9.15SolutionSolution

Page 2: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 2

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Simulate ThermoStatic ControlSimulate ThermoStatic Control

By Engineering Analysis the ODE with Highest Order Term ISOLATED

tTTqRCRdt

dTaH

HH

1

Integrate to Isolate T(t) on LHS

dzCR

zTTqRdT

t

HH

aHtT

F

070

dz

CR

zTTqRFtT

t

HH

aH

0

70

Page 3: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 3

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Simulate ThermoStatic ControlSimulate ThermoStatic Control

Note for

• T(t) appears on BOTH Side of the Eqn → Use FEEDBACk

• The Integrand is in the form of a SUM

Also the thermostat in this case has a 2F DEADBAND• Implement using SimuLink’s RELAY

function

dz

CR

zTTqRFtT

t

HH

aH

0

70

Page 4: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 4

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

The Part-a SimuLink ModelThe Part-a SimuLink Model

T-StatScope

simout

Plot Ta & T(t)

1s

IntegratorIC = 70°F

20

FnceR*qm

AmbientTemp, Ta

0.5

1/RC

RELAY → Discontinuities Library

MUX → Commonly Used Blocks Library

SINE WAVE FUNCTION → Math Operations Library

TO WORKSPACE (simout)→ Sinks Library

Page 5: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 5

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Test Large & Small FurnacesTest Large & Small Furnaces

The SimuLink Model

T-StatScope

simout

Plot Ta & T(t)

1s

IntegratorIC = 70°F

20

FnceR*qm

AmbientTemp, Ta

0.5

1/RC

Fnce RH (ºF-Hr/BTU) qmax (BTU/Hr) R*qmax (ºF)Small 0.0389 514 20Large 0.0389 1028 40

Page 6: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 6

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

The Output for Small FnceThe Output for Small Fnce

0 5 10 15 20 25 30 35 40 45 5040

45

50

55

60

65

70

75

time (hrs)

Te

mp

era

ture

(F

)

Prob 9.15, part-a Note• Small Fnce canNOT keep

up with heating load when Ta drops below about 55F

• 2 Hour Time-Lag as predicted by

Hr

F

BTU

HrBTU

FCR HH

0.2

1

4.51

1

0389.0

plot(tout, simout(:,1), tout,simout(:,2)), xlabel('time (hrs)'),...ylabel('Temperature (F)'), title('Prob 9.15, part-a')

Page 7: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 7

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Low Power FnceLow Power Fnce

0 5 10 15 20 25 30 35 40 45 5040

45

50

55

60

65

70

75

time (hrs)

Te

mp

era

ture

(F

)

Prob 9.15, part-a

Page 8: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 8

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Result for Large FnceResult for Large Fnce

0 5 10 15 20 25 30 35 40 45 5040

45

50

55

60

65

70

75

time (hrs)

Tem

pera

ture

(F

)

Prob 9.15, part-a - Lg Fnce

The Large Furnace CAN Keep Up with Heat load at coldest Outside Temps

The RH*qmax Product indicates the MAXIMUM Temp Difference that the Furnace+Insulation combination can accommodate

In This case (T-Ta)min = 70F – (50-10)F = 30F• The Small Fnce is Overwhelmed

Page 9: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 9

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

High Power FnceHigh Power Fnce

0 5 10 15 20 25 30 35 40 45 5040

45

50

55

60

65

70

75

time (hrs)

Tem

pera

ture

(F

)Prob 9.15, part-a - Lg Fnce

Page 10: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 10

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Part b – Daily Energy UsePart b – Daily Energy Use

To Determine Daily Energy Use, E, Need to time-integrate the fnce Power Output over 24hrs

dttqEHrs

24

0

max24

For an Arbitrary time

Refine the Part-a model to• Gain Access to qmax

alone

• Use the integrator Block to find E

dzzqtEt

0

max

Page 11: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 11

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

The Part-b SimuLink ModelThe Part-b SimuLink Model

1028

qm

1s

TotalEnergy

T-Stat

1/1e5

Scale Outputto Therms

0.0389

Rsimout

Plot Ta & T(t)

1s

IntegratorIC = 70°F

DeBugScope

AmbientTemp, Ta

0.5

1/RC

Note the Output scaling to “PG&E” Units• 1 “Therm” = 100 kBTU

Page 12: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 12

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Energy UseEnergy Use

Small Fnce Large Fnce

0 4 8 12 16 20 240

0.02

0.04

0.06

0.08

0.1

0.12

0.14

time (hrs)

Cum

ulat

ive

Ene

rgy

Use

(T

herm

s)

Prob 9.15, part-b, Lg Fnce

0 4 8 12 16 20 240

0.02

0.04

0.06

0.08

0.1

0.12

0.14Prob 9.15, part-b, Sml Fnce

time (hrs)

Cum

ulat

ive

Ene

rgy

Use

(T

herm

s)

St-Line → Fnce On 100% of time

Fewer Therms, but Cold Inside

Note Differing Slopes Before & After ~11hr

Page 13: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 13

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Bruce Mayer, PELicensed Electrical & Mechanical Engineer

[email protected]

Engr/Math/Physics 25

AppendixAppendix

Model Model ConstructiConstructi

onon

Page 14: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 14

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15a.mdl (1)Prob_9_15a.mdl (1)

40

FnceR*qm

T-Stat

Page 15: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 15

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15a.mdl (2)Prob_9_15a.mdl (2)

0.5

1/RC

Page 16: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 16

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15a.mdl (3)Prob_9_15a.mdl (3)

1s

IntegratorIC = 70°F

Page 17: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 17

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15a.mdlProb_9_15a.mdl(4)(4)

AmbientTemp, Ta

Page 18: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 18

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15a.mdl (5)Prob_9_15a.mdl (5)simout

Plot Ta & T(t)

Page 19: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 19

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Part-a Configuration ParametersPart-a Configuration Parameters

Page 20: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 20

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15b.mdl (1)Prob_9_15b.mdl (1)

514

qm

1s

TotalEnergy

T-Stat

1/1e5

Scale Outputto Therms

0.0389

Rsimout

Plot Ta & T(t)

1s

IntegratorIC = 70°F

DeBugScope

AmbientTemp, Ta

0.5

1/RC

Non GREEN Blocks are the same as in part-a

Page 21: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 21

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15b.mdl (2)Prob_9_15b.mdl (2)

514

qm

0.0389

R

Page 22: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 22

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Prob_9_15b.mdl (3)Prob_9_15b.mdl (3)

1/1e5

Scale Outputto Therms

1s

TotalEnergy

Page 23: BMayer@ChabotCollege.edu ENGR-25_Prob_9_15_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical

[email protected] • ENGR-25_Prob_9_15_Solution.ppt 23

Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods

Part-b Configuration ParametersPart-b Configuration Parameters