def get_log(src_out_path, config): log = {} log['ustar'] = fctlib.load_1d('log_ustar', config['nsteps'], src_out_path) log['umax'] = fctlib.load_1d('log_umax', config['nsteps'], src_out_path) return log
def get_turb(src_out_path, config): turb = {} turb['thrust'] = fctlib.load_1d('turb_thrust', config['nsteps'], src_out_path) turb['power'] = fctlib.load_1d('turb_power', config['nsteps'], src_out_path) return turb
def get_turb(src_out_path, config): turb = {} # turb['thrust'] = fctlib.load_1d('turb_thrust', config['ts_ns']*config['turb_nb'], config['double_flag'], src_out_path).reshape(config['ts_ns'],config['turb_nb']) turb['dt'] = config['dtr'] * config['c_count'] turb['Omega'] = fctlib.load_1d( 'turb_omega', config['ts_ns'] * config['turb_nb'], config['double_flag'], src_out_path).reshape(config['ts_ns'], config['turb_nb']) turb['CTFx'] = fctlib.load_4d('turb_fx', config['ts_ns'], 40, 30, config['turb_nb'], config['double_flag'], src_out_path) turb['CTFt'] = fctlib.load_4d('turb_ft', config['ts_ns'], 40, 30, config['turb_nb'], config['double_flag'], src_out_path) return turb