Skip to content

Commit

Permalink
weatherFyleType
Browse files Browse the repository at this point in the history
  • Loading branch information
shirubana committed Oct 11, 2022
1 parent 079c3e5 commit 3c992a4
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bifacial_radiance/modelchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,17 @@ def runModelChain(simulationParamsDict, sceneParamsDict, timeControlParamsDict=N
coerce_year = simulationParamsDict['coerce_year']
else:
coerce_year = None

if 'weatherFileType' in simulationParamsDict:
source = simulationParamsDict['weatherFileType']
print("Weather file of type ", source, " passed.")
else:
source = None

print('Reading weather file {}'.format(simulationParamsDict['weatherFile']))
metdata = demo.readWeatherFile(simulationParamsDict['weatherFile'],
starttime=starttime, endtime=endtime,
coerce_year=coerce_year)
coerce_year=coerce_year, source=source)

# input albedo number or material name like 'concrete'. To see options, run this without any input.
demo.setGround(sceneParamsDict['albedo'])
Expand Down
68 changes: 68 additions & 0 deletions tests/simulation_D9.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[simulationParamsDict]
testfolder = C:\Users\sayala\Documents\GitHub\bifacial_radiance\bifacial_radiance\TEMP\Modelchain
weatherFile = C:\Users\sayala\Documents\GitHub\bifacial_radiance\tests\SOLARGIS_Almeria_Spain_20210331.csv
weatherFileType = SolarGis
getEPW = False
simulationname = Somewhere
moduletype = SW325XL
rewriteModule = True
cellLevelModule = False
axisofrotationTorqueTube = True
torqueTube = True
hpc = False
tracking = True
cumulativeSky = False
selectTimes = True
latitude = 37.5
longitude = -77.6
calculateShading = True
saveImage = True

[sceneParamsDict]
albedo = 0.35
nMods = 2
nRows = 1
gcrorpitch = pitch
pitch = 10.0
axis_azimuth = 180.0
hub_height = 2.0
tilt = 15.0

[timeControlParamsDict]
starttime = 06_21_1130
endtime = 06_22_1230

[moduleParamsDict]
bifi = 0.65
numpanels = 2
xgap = 0.02
ygap = 0.15
zgap = 0.1
x = 1.001
y = 1.993

[trackingParamsDict]
backtrack = True
limit_angle = 60.0
angle_delta = 10.0
useMeasuredTrackerAngle = False

[torquetubeParamsDict]
torqueTubeMaterial = Metal_Grey
diameter = 0.15
tubetype = Square

[analysisParamsDict]
modWanted = [1, 2]
rowWanted = [5]
sensorsy = [9, 9]
sensorsx = [1, 1]

[CECModParamsDict]
alpha_sc = 0.0039216
a_ref = 1.80227
I_L_ref = 10.5308
I_o_ref = 2.28e-11
R_sh_ref = 900.982
R_s = 0.285529
Adjust = 4.39011

0 comments on commit 3c992a4

Please sign in to comment.