| 1 |
/********************************************************************** |
| 2 |
|
| 3 |
FILENAME: uiuc_iceboot.cpp |
| 4 |
|
| 5 |
---------------------------------------------------------------------- |
| 6 |
|
| 7 |
DESCRIPTION: checks if the iceboot is on, if so then eta ice will equal |
| 8 |
zero |
| 9 |
|
| 10 |
---------------------------------------------------------------------- |
| 11 |
|
| 12 |
STATUS: alpha version |
| 13 |
|
| 14 |
---------------------------------------------------------------------- |
| 15 |
|
| 16 |
REFERENCES: |
| 17 |
|
| 18 |
---------------------------------------------------------------------- |
| 19 |
|
| 20 |
HISTORY: 01/11/2002 initial release |
| 21 |
|
| 22 |
---------------------------------------------------------------------- |
| 23 |
|
| 24 |
AUTHOR(S): Robert Deters <[email protected]> |
| 25 |
Ann Peedikayil <[email protected]> |
| 26 |
|
| 27 |
---------------------------------------------------------------------- |
| 28 |
|
| 29 |
VARIABLES: |
| 30 |
|
| 31 |
---------------------------------------------------------------------- |
| 32 |
|
| 33 |
INPUTS: -Simtime |
| 34 |
-icing times |
| 35 |
-dt |
| 36 |
-bootTime |
| 37 |
|
| 38 |
---------------------------------------------------------------------- |
| 39 |
|
| 40 |
OUTPUTS: -icing severity (eta_ice) |
| 41 |
|
| 42 |
---------------------------------------------------------------------- |
| 43 |
|
| 44 |
CALLED BY: uiuc_coefficients |
| 45 |
|
| 46 |
---------------------------------------------------------------------- |
| 47 |
|
| 48 |
CALLS TO: none |
| 49 |
|
| 50 |
---------------------------------------------------------------------- |
| 51 |
|
| 52 |
COPYRIGHT: (C) 2002 by Michael Selig |
| 53 |
|
| 54 |
This program is free software; you can redistribute it and/or |
| 55 |
modify it under the terms of the GNU General Public License |
| 56 |
as published by the Free Software Foundation. |
| 57 |
|
| 58 |
This program is distributed in the hope that it will be useful, |
| 59 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 60 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 61 |
GNU General Public License for more details. |
| 62 |
|
| 63 |
You should have received a copy of the GNU General Public License |
| 64 |
along with this program; if not, write to the Free Software |
| 65 |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 66 |
|
| 67 |
**********************************************************************/ |
| 68 |
|
| 69 |
#include "uiuc_iceboot.h" |
| 70 |
|
| 71 |
|
| 72 |
void uiuc_iceboot(double dt) |
| 73 |
{ |
| 74 |
|
| 75 |
if (bootTrue[bootindex]) |
| 76 |
{ |
| 77 |
if (bootTime[bootindex]- dt <Simtime && bootTime[bootindex]+ dt >Simtime) |
| 78 |
// checks if the boot is on |
| 79 |
{ |
| 80 |
eta_ice = 0; |
| 81 |
// drops the eta ice to zero |
| 82 |
|
| 83 |
if (bootTime [bootindex] > iceTime) |
| 84 |
iceTime = bootTime[bootindex]; |
| 85 |
bootindex++; |
| 86 |
} |
| 87 |
} |
| 88 |
} |