def valid_panel(n=0, results=[]): panel = receiver.Panel(tube_k) for i in range(n): panel.add_tube(valid_tube(results)) return panel
def make_panel(D, ntube, period, stiff): panel = receiver.Panel(stiff) # To save some time t = make_tube(D, period) for i in range(ntube): panel.add_tube(t) return panel
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 # Mathematical definition of the tube boundary conditions # Function used to define daily operating cycle onoff_base = lambda t: np.sin(np.pi*t/12.0)