// Last edited on 2011-04-22 13:30:10 by stolfi // Generic figure of Fukushima Daiichi Unit 1 reactor and containment components. #include "coord_axes.inc" #include "lamp_array.inc" #include "camlight.inc" #include "cutters.inc" #include "generic_parts.inc" #include "textures.inc" background{ color rgb < 0.070, 0.070, 0.040 > } #include "un1_macros.inc" #macro fig_un1_reactor(cut) // Generic figure of Fukushima Daiichi Unit 1 reactor and containment components. // {cut} = What to remove (0=noting, 1=Shalf, 2=Ehalf, 3=SEquarter) // Also positions the camera and lights. // Choose the cutter and camera placement: #if (cut = 1) #local CR = object{ cutter_not_S() } #declare cam_dir = <0,-1,0>; #declare cam_dst = 5000; #end #if (cut = 2) #local CR = object{ cutter_not_E() } // Cutter for reactor. #declare cam_dir = <1,0,0>; #declare cam_dst = 5000; #end #if (cut = 3) #local CR = object{ cutter_not_SE() } // Cutter for reactor. #declare cam_dir = <5,-4,3>; #declare cam_dst = 0; // Decide later. #end #local cw = 0; // Water level inside RPV. #local dw = 0; // Water level in drywell. #local sw = 0; // Water level in suppression pool. #local uw = 0; // Water level in shroud cavity. #local pw = 0; // Water level in spent-fuel pool. #local scene = union{ object{ un1_drywell_wall(CR) } object{ un1_torus_wall(CR) } object{ un1_shroud(CR) } un1_containment_vessel(CR) object{ un1_pressure_vessel(CR,cw,1,1,1) } } #local lo_corner = min_extent(scene); #local hi_corner = max_extent(scene); #if ((cut = 1) | (cut = 2)) #declare cam_ctr = <0,0,0> + un1_drywell_sphere_center_Z*z; #declare cam_rad = 60.00; #else #declare cam_ctr = (lo_corner + hi_corner)/2; #declare cam_rad = vlength(hi_corner - lo_corner)/2; #end #if (cam_dst <= 0) #declare cam_dst = 8*cam_rad; #end object{ scene } camlight(cam_ctr, cam_rad, cam_dir, cam_dst, z, 1.3, 3,2.0, cam_lct) #end