SRADLIB:Aclibraryfor Solarradiationmodelling
Total Page:16
File Type:pdf, Size:1020Kb
InformesT6cnicosCiemat 904 octubre,1999 SRADLIB:ACLibraryfor SolarRadiationModelling J.L.Balenzategui Departamento de Energias Renovables DISCLAIMER Portions of this document may be illegible in electronic image products. Images are produced from the best available original document. Toda correspondenicaen relationconestetrabajodebedirigirsealServiciode InformationyDocumentation,CentrodeInvestigacionesEnergeticas,Medioambientalesy Tecnologicas,CiudadUniversitaria,28040-MADRID,ESPA~A. Lassolicitudesdeejemplaresdebendirigirsea estemismoServicio LosdescriptoressehanseleccionadodelThesaurodelDOE paradescribirIasmaterias que contieneesteinformeconvistasa su recuperation.La catalogacidnse ha hecho utilizandoeldocumentoDOE/TIC-4602(Rev.1)DescriptiveCatalogingOn-Line,y la clasificaciondeacuerdoconeldocumentoDOE/TlC,4584-R7SubjectCategoriesandScope publicadosporelOfficeofScientificandTechnicalInformationdelDepartamentodeEnergia deIosEstdosUnidos. Se autorizalareproductionde [OSresumenesanaliticosque aparecenen esta publication. DepositoLegal:M -14226-1995 ISSN:1135-9420 NIPO:238-99-003-5 EditorialCIEMAT CLASIFICACION DOE Y DESCRIPTORS 140100; 990200 SOLAR RADIATION; DIFFUSE SOLAR RADIATION; DIRECT SOLAR RADIATION; SOLAR ENERGY RENEWABLE ENERGY RESOURCES; COMPUTER CALCULATIONS; DATA ANALYSIS COMPUTER CODES; PROGRAMMING “SRADLIB: A C Library for Solar Radiation Modelling” Balenzategui, J. L. 118 pp. 18 figs. 24 refs. Abstract: This documentshowstheresultofanexhaustivestudyaboutthetheoreticalandnumericalmodels available inthe literatureabout solarradiationmodelling. The purposeof thisstudyisto develop or adaptmathematical models describing the solar radiationspecifically for Spain locations as well as to createcomputer tools able to support the labour of researchers or engineers needing solar radiation data to solve or improve the technical or energetic performance of solar systems. As result of this study and revision, a C library (SRADLIB) ispresentedasa key tool for thecompilation of themathematicalmodels from different authors, for the comparison among the different approaches and for itsapplication in computer programs. Different topics relatedto solarradiationand itsmodellingarefirstdiscussed,includingtheassumptionsandconventions adopted and describing the most accepted and used currentstate-of-the-artmodels. Some typical problems in the numerical calculation of radiationvalues are also posed with the proposed solution. The document includes next a complete reference of the developed functions, with many examples of application and calculus. “SRADLIB: Una Libreria en C para el Modelado de la Radiaci6n Solar” Balenzategui, J. L. 118 pp. 18 figs. 24 refs. Resumen: Este documento muestrael resultado de un exhaustive estudio sobre 10Smodelos teoricos y matematicos parael modelado de la radiaci6n solardisponibles en la literature.El prop6sito de este estudio es desarrollar o adaptarmodelos matematicosque describan laradiaci6nsolarespecificamente paralocalidades espafiolas asi como crear herramientasinforrniticas que apoyen la labor de investigadores o ingenieros que precisan dates de radiacitmsolar parasolucionar o mejorar el rendimientot6cnico o energ6tico de sistemassolares. Como resuhado de este estudio y revisi6n, se presentauna Iibreriaen Ienguaje C (SRADLIB) como herra- mienta clave para la recopilaci6n de Ios modelos matematicos de diferentes autores, para la comparacion entre las differences aproximaciones propuestasy su aplicaci6n en programasde ordenador. Se discuten, en primerlugar, diferentestemasrelacionados con laradiation solary su modelado, incluyendo Iasconvencio- nes y asumpciones adoptadasy describiendo 10Smodelos mas aceptados y usados en el presenteestado del arte.Se planteanasimismo algunos problemastipicos en el calculo num6ricode 10Svalores de radiacibnjunto con la soluci6n propuesta. El documento incluye a continuaci6n una referencia completa de las funciones desarroiladas,con numerosos ejemplos de aplicacion y calculo. Contents 1.INTRODUCTION ........................................................................................................................................1 2.SRADLIB TOPICS .......................................................................................................................................3 2.1. BASICSUN-EARTHRELATIONSHIPSANDSIGNCONVENTION...................................................................3 2.1.1.Radiation ontilted surfaces .............................................................................................................5 2.1.2. Solar Declination ............................................................................................................................6 2.1.3. Other basic magnitudes ................................................................................................................... 7 2.2. TIMECONVENTION..................................................................................................................................8 2.3. YEARDURATION...................................................................................................................................10 2.4. SUNRISE,SUNSETANDDAYLENGTH..................................................................................................... 11 2.5. SUNRISEANDSUNSETPROBLEMSCALCULATINGHOURLYmIATION.................................................. 12 2.6. CALCULATIONOFRADIATIONOVERCERTAINPERIODBYDIRECTINTEGRATION.................................... 13 2.7. TMY FILEs............................................................................................................................................l5 2.8. INTERPOLATIONOFRADIATIONVALUES................................................................................................ 16 2.9. RATIOFUNCTIONS.................................................................................................................................17 2.10. HORIZONTALHOURLYDIFFUSEWrATION......................................................................................... 18 2.10.1. Erbs'corre[ation ......................................................................................................................... 19 2.10.2. Boes'correlation ......................................................................................................................... 19 2.10.3. Orgill& Holland's correlation ...................................................................................................2O 2.10.4. Reind[2 correlation .....................................................................................................................2O 2.10.5. Reind13 correlation .....................................................................................................................2O 2.10.6. Madridl correlation ....................................................................................................................21 2.10.7. A4adrid2 correlation ....................................................................................................................2l 2.11. TILTEDSURFACEHOURLYIXFFUSEWIAT1oN ...................................................................................22 2.11.1. Gound Radiation .........................................................................................................................23 2.11.2. Isotropic model ............................................................................................................................23 2.11.3. Temps& Coulson 'smodel ..........................................................................................................23 2.11.4. Klucher 'smodel ..........................................................................................................................24 2.11.5. Hay & Dwies'model ..................................................................................................................24 2.11.6. Reindl's model .............................................................................................................................24 2.11.7. Perez] model ...............................................................................................................................25 2.11.8. Perez2mode[ ...............................................................................................................................26 2.12. CONSTANTSWDSTRUCTURES............................................................................................................27 2.13. FUTUREIMPROVEMENTS.....................................................................................................................29 2.14. ACKNOWLEDGEMENT..........................................................................................................................3O 3.LIBRARY REFERENCE ..........................................................................................................................3l 3.1. GENERALOVERVIEWABOUTTHESRADLIBFUNCTIONS...................................................................3l 3.2. FWCTIONWFERENCE..........................................................................................................................35 3.2.1. AngToHour ....................................................................................................................................35 3.2.2. AngToNoon ...................................................................................................................................36 3.2.3. CosIncidAng