示例#1
0
def valid_receiver(npanel=0, ntube=0, results=[]):
    rec = receiver.Receiver(period, ndays, panel_k)

    for i in range(npanel):
        rec.add_panel(valid_panel(ntube, results))

    return rec
示例#2
0
def make_receiver(D,
                  npanel,
                  ntube,
                  period=8 * 3600.0,
                  days=1,
                  panel_stiffness=0.0,
                  manifold_stiffness=0.0):
    r = receiver.Receiver(period, days, panel_stiffness)
    for i in range(npanel):
        r.add_panel(make_panel(D, ntube, period, manifold_stiffness))

    return r
示例#3
0
#!/usr/bin/env python3

import numpy as np

import sys
sys.path.append('../..')

from srlife import receiver

if __name__ == "__main__":
  # Setup the base receiver
  period = 24.0 # Loading cycle period, hours
  days = 1 # Number of cycles represented in the problem 
  panel_stiffness = "disconnect" # Panels are disconnected from one another

  model = receiver.Receiver(period, days, panel_stiffness)

  # Setup each of the two panels
  tube_stiffness = "rigid"
  panel_0 = receiver.Panel(tube_stiffness)
  panel_1 = receiver.Panel(tube_stiffness)

  # Basic receiver geometry
  r_outer = 12.7 # mm
  thickness = 1.0 # mm
  height = 5000.0 # mm

  # Tube discretization
  nr = 12
  nt = 20
  nz = 10