<s> import unittest <EOL> from openmdao . main . api import set_as_top , Assembly <EOL> from openmdao . util . testutil import assert_rel_error <EOL> from openmdao . lib . drivers . api import BroydenSolver <EOL> from hyperloop . tube_wall_temp import TubeWallTemp <EOL> class TubeHeatBalance ( Assembly ) : <EOL> def configure ( self ) : <EOL> tm = self . add ( '<STR_LIT>' , TubeWallTemp ( ) ) <EOL> driver = self . add ( '<STR_LIT>' , BroydenSolver ( ) ) <EOL> driver . add_parameter ( '<STR_LIT>' , low = <NUM_LIT:0.> , high = <NUM_LIT> ) <EOL> driver . add_constraint ( '<STR_LIT>' ) <EOL> driver . workflow . add ( [ '<STR_LIT>' ] ) <EOL> class TubeWallTestCase ( unittest . TestCase ) : <EOL> def test_tube_temp ( self ) : <EOL> test = set_as_top ( TubeHeatBalance ( ) ) <EOL> test . tm . nozzle_air . setTotalTP ( <NUM_LIT> , <NUM_LIT> ) <EOL> test . tm . nozzle_air . W = <NUM_LIT> <EOL> test . tm . bearing_air . W = <NUM_LIT:0.> <EOL> test . tm . diameter_outer_tube = <NUM_LIT> <EOL> test . tm . length_tube = <NUM_LIT> <EOL> test . tm . num_pods = <NUM_LIT> <EOL> test . tm . temp_boundary = <NUM_LIT> <EOL> test . tm . temp_outside_ambient = <NUM_LIT> <EOL> test . run ( ) <EOL> assert_rel_error ( self , test . tm . heat_rate_pod , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . total_heat_rate_pods , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . GrDelTL3 , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . Pr , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . Gr , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . Ra , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . Nu , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . k , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . h , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . area_convection , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_per_area_nat_conv , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . total_q_nat_conv , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . area_viewing , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_per_area_solar , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_total_solar , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . area_rad , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_rad_per_area , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_rad_tot , <NUM_LIT> , <NUM_LIT> ) <EOL> assert_rel_error ( self , test . tm . q_total_out , <NUM_LIT> , <NUM_LIT> ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
