class spectrum

Class (Notebook: etaOpt.m) (Context: etaOpt`)

Inheritance:

spectrum


Public Methods

[more]Public Method generateBlackBody()
[more]Public Method giveConcentration()
[more]Public Method giveFileName()
[more]Public Method giveGenFunc()
[more]Public Method giveGenFuncType()
[more]Public Method giveList()
[more]Public Method giveName()
[more]Public Method giveNameList()
[more]Public Method giveNumberOfPhotons()
[more]Public Method givePower()
[more]Public Method givePowerOfOneSun()
[more]Public Method givePowerOfOrigin()
[more]Public Method giveSpectrumPath()
[more]Public Method giveTemperature()
[more]Public Method giveTotalPower()
[more]Public Method giveTotalPowerOfOrigin()
[more]Public Method giveValue()
[more]Public Method giveValueList()
[more]Public Method giveValueMax()
[more]Public Method giveValueMin()
[more]Public Method giveWavelengthList()
[more]Public Method giveWavelengthMax()
[more]Public Method giveWavelengthMin()
[more]Public Method setConcentration()
[more]Public Method setGenFunc()
[more]Public Method setGenFuncType()
[more]Public Method setPowerOfOneSun()
[more]Public Method setSpectrum()
[more]Public Method setSpectrumPath()

Protected Fields

[more]Instancevariable myC
[more]Instancevariable myFileName
[more]Instancevariable myFkt
[more]Instancevariable myGenFunc
[more]Instancevariable myGenFuncType
[more]Instancevariable myLambdaBegin
[more]Instancevariable myLambdaEnd
[more]Instancevariable myList
[more]Instancevariable myName
[more]Instancevariable myP0
[more]Instancevariable myP0Org
[more]Instancevariable myP1
[more]Instancevariable myPur
[more]Instancevariable myPurOrg
[more]Instancevariable mySolidAngle
[more]Instancevariable mySpectrumPath
[more]Instancevariable myT


Documentation

sp = spectrumnew[] generates an new spectrum Object. Special care has been taken for scaling the spectrum. Following parameter are essential:
P_0,org = total power [0, ] of the origin spectrum as loaded from the file or generated for blackbodies (given)
P_ur,org= integrated spectrum [_b,_e] of the origin spectrum as loaded from the file or generated for blackbodies (given)
C = concentration of the spectrum in suns (to be set)
P_1= total power [0,] fo the spectrum for one-sun concentration (C=1) (to be set)
P_0 = total power [0,] of the scaled spectrum
P_ur = integrated power [_b,_e] of the scaled spectrum
Calculation is performed as followed:
P_0= C P_1, P_ur = P_0/P_0,org P_ur,org

All properties of the spectrum can be modified during creation by Options. In the following options with there default values are given:
spectrumPath->whichFile["pvsim","Math/QuellDaten/Spectra"]. The default path, from where the spectra files should be loaded
concentration->1............. the concentration factor.
genFuncType->1............... sets the type for calculating the number of photons see setGenFuncType for more information.
powerOfOneSun->1000...........power of One Sun in W/m^ 2
name->"AM1_5d/am15d.dat"....the name for the spectral file including subdirs - this option can only be used if no blackbody spectrum with "blackbody->True" is generated. If you want to use your own spectra use "spectrumPath" to switch to your directory and look at ~ pvsim/Math/QuellDaten/Spectra/AM1_5g/iec1000.dat for an example of data file.
blackBody->False..............if set to True a blackbody spectrum is generated and the options for "generateBlackBody[]" are available in addition. (see generateBlackBody[])

A spectrum.new[] with no options generates a blackbody with T=6000 K.
oInstancevariable myC

oInstancevariable myFileName

oInstancevariable myFkt

oInstancevariable myGenFunc

oInstancevariable myGenFuncType

oInstancevariable myLambdaBegin

oInstancevariable myLambdaEnd

oInstancevariable myList

oInstancevariable myName

oInstancevariable myP0

oInstancevariable myP0Org

oInstancevariable myP1

oInstancevariable myPur

oInstancevariable myPurOrg

oInstancevariable mySolidAngle

oInstancevariable mySpectrumPath

oInstancevariable myT

oPublic Method generateBlackBody()
generateBlackBody[] generates a blackbody spectrum with a certain emisivity in a rang from lambdaBegin to lambdaEnd with numberOfLambda values in the list. The total spectral power (P0org) is calculated via the T^ 4 Stefan Boltzmann law. The OneSunPower is set to this value automatically. The parameters are set with options. In the following options with there default values are given:
temperature->2000..... the temperature of the black body in K
epsilon->1............ the emissivity of the body (1 for blackbody is default)
lambdaBegin->1........ begining of the spectral range in nm. 0 < lambdaBegin < lambdaEnd!
lambdaEnd->10^ 9....... end of the spectral range in nm
numberOfLambdas->2.... number of datapoints for the list. All calculations are performed with the analytic expression. Thus this option does not influence any integrated results like power generatedPhotons....
solidAngle->4 Pi...... sets the solidangle in which the spectrum is emitted. This scales the intensity of the spectrum, and has only effect on the PowerOfOriginSpectrum as the spectrum is once more scaled to fit the OneSunPower
dLambda->............. optional to "numberOfLambdas" dLambda can be used, which give the distance between two spectral datapoints in nm. All calculations are performed with the analytic expression. Thus this option does not influence any integrated results like power generatedPhotons....

oPublic Method giveConcentration()
giveConcentration[] returns the concentration factor.

oPublic Method giveFileName()
giveFileName[] returns the name of the loaded file. if a blackbody was generated "" is returned

oPublic Method giveGenFunc()
giveGenFunc[] returns the function used in giveNumberOfPhotons to calculated the number of photons Integrate[GenFunc]. To use the function do something like f= sp.giveGenFunc[]; f[400]

oPublic Method giveGenFuncType()
giveGenFuncType[type]returns the integration method in giveNumberOfPhotons to calculate the number of photons. type can be one of the following:
1: Integrate[ Interpolation[{,E},Order->0]]=E_m _m, E_m and _m are meanvalues of the interval
recommended by ASTM
2: Integrate[ Interpolation[{,E},Order->1]]
possible method
3: Integrate[Interpolation[{,E },Order->1]]
quick and dirty but false

oPublic Method giveList()
giveList[] returns a list containing wavelength in nm and the spectraldensity in {nm,W/(m^ 2 m)}, eg. {{400,1.2223},{450,1.432},...}

oPublic Method giveName()
giveName[] returns the name of the selected spectrum with information on concentration and P0 as string, eg. "am15d_100x1000W"

oPublic Method giveNameList()
giveNameList[] gives a list of names of all available spectra, eg. {"AM1_5g/standard.dat","AM0/standard.dat"}

oPublic Method giveNumberOfPhotons()
giveNumberOfPhotons[] gives the number of photons of the spectrum. If no options are used, the whole spectrum is used. With the following options one can limit the range for which the number of photons should be calculated:
lambdaBegin->"Begin of spectra".. gives the wavelength in nm where to start calculations - default is spectrum begin.
lambdaEnd->"End of spectra"...... gives the wavelength in nm where to end calculations - default is spectrum end.

oPublic Method givePower()
givePower[] returns the integrated power of the spectrum for the used range determined by lambdaBegin and lambdaEnd in W/m^ 2 taking into account the PowerOfOneSun and the concentration factor. Options:
lambdaBegin->"Begin of spectra".. gives the wavelength in nm where to start calculations - default is spectrum begin.
lambdaEnd->"End of spectra"...... gives the wavelength in nm where to end calculations - default is spectrum end.

oPublic Method givePowerOfOneSun()
givePowerOfOneSun[] returns the total power [0,] for 1 sun concentration of the spectrum in W/m^ 2

oPublic Method givePowerOfOrigin()
givePowerOfOrigin[] returns the integrated power for spectrum as loaded from the file or generated for blackbody W/m^ 2.

oPublic Method giveSpectrumPath()
giveSpectrumPath[] give the absolute path to the spectra data files, which can be loaded via setSpectrum. See also setSpectrumPath, giveNameList, giveName.

oPublic Method giveTemperature()
giveTemperature[] returns the temperature of the blackbody spectrumin K.

oPublic Method giveTotalPower()
giveTotalPower[] returns the total power [0,] of the spectrum in W/m^ 2 taking into account the PowerOfOneSun and the concentration factor.

oPublic Method giveTotalPowerOfOrigin()
giveTotalPowerOfOrigin[] returns the total power [0,] of the origin spectrum as loaded from the file or generated for blackbody in W/m^ 2.

oPublic Method giveValue()
giveValue[] returns for a given [in nm] the spectraldensity in W/(m^ 2 m).

oPublic Method giveValueList()
giveValueList[] returns a list containing the spectraldensity in W/(m^ 2 m), eg. {1.2223,1.432,...}

oPublic Method giveValueMax()
giveValueMax[] returns the maximum of the spectraldensity in W/(m^ 2 m), eg. 1.432. For a loaded spectrum the list is used. for blackbody WiensKonstant is used I(_max), _max=2.897756 10^ 6/T [nm]

oPublic Method giveValueMin()
giveValueMin[] returns the minmum of the spectraldensity in W/(m^ 2 m), eg. 1.2223. For a loaded spectrum the list is used for blackbody returns 0.

oPublic Method giveWavelengthList()
giveWavelengthList[] returns a list containing the wavelengths in nm, eg. {450,470...}

oPublic Method giveWavelengthMax()
giveWavelengthMax[] returns the maxmum of the wavelength range in nm, eg. 1200

oPublic Method giveWavelengthMin()
giveWavelengthMin[] returns the minmum of the wavelength range in nm, eg. 450

oPublic Method setConcentration()
setConcentration[Concentration] Scales the power density of the spectrum according to the OneSunPower. Default = 1.

oPublic Method setGenFunc()
setGenFunc[pureFunction] sets the function used in giveNumberOfPhotons to calculated the number of photons Integrate[GenFunc]. purFunction must be a pure function with one slot. E.g. setGenFunc[(100 + #)&]

oPublic Method setGenFuncType()
setGenFuncType[type] sets the Integration Method in giveNumberOfPhotons to calculate the number of photons. type must be one of the following: 1: Integrate[ Interpolation[{,E },Order->0]]=E_m_m, E_m and _m are meanvalues of the interval recommended by ASTM 2: Integrate[ Interpolation[{,E},Order->1]] possible method 3: Integrate[Interpolation[{,E },Order->1]] quick and dirty but false
m

oPublic Method setPowerOfOneSun()
setPowerOfOneSun[PowerInWatt] scales the spectrum, so that the integrated powerdensity = PowerInWatt. Default is 1000 W/m^ 2.

oPublic Method setSpectrum()
setSpectrum[spectrumName] sets the spectrum. Default is "AM1_5g/iec1000.dat". Use "giveNameList" to see a list of all available spectra, or use "setSpectrumPath[]" to change to the appropriate directory of spectra.

oPublic Method setSpectrumPath()
setSpectrum[absDir] sets the directory to which the spectrumName will be appended. absDir must be absolute and can be in DOS or Unix convention but must be avalaible for the MathKernel.


This class has no child classes.

Alphabetic index Hierarchy of classes



This page was generated with the help of DOC++.