packages/MC/geometry/RTK_Cell.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Empty pin-cell constructor with variable X/Y pitch.
 */
\brief Empty pin-cell constructor with variable X/Y pitch.
\ brief Empty pin - cell constructor with variable X / Y pitch .
RTK_Cell::RTK_Cell(int    mod_id,
                   double dx,
                   double dy,
                   double height,
                   int    segments)
    : d_mod_id(mod_id)
    , d_r(0)
    , d_ids(0)
    , d_z(height)
    , d_num_shells(0)
    , d_num_regions(1)
    , d_segments(segments)
    , d_seg_faces(d_segments / 2)
    , d_num_int_faces(d_seg_faces + d_num_shells)
    , d_mod_region(d_num_regions - 1)
    , d_num_cells(d_num_regions * d_segments)
    , d_vessel(false)
{
    REQUIRE(d_z > 0.0);
    REQUIRE(d_segments == 1 || d_segments == 4);
    REQUIRE(d_mod_region == 0);
    d_xy[0] = dx;
    d_xy[1] = dy;
    d_extent[0][LO] = -d_xy[0] * 0.5;
    d_extent[0][HI] =  d_xy[0] * 0.5;
    d_extent[1][LO] = -d_xy[1] * 0.5;
    d_extent[1][HI] =  d_xy[1] * 0.5;
}
RTK_Cell :: RTK_Cell ( int mod_id , double dx , double dy , double height , int segments ) : d_mod_id ( mod_id ) , d_r ( 0 ) , d_ids ( 0 ) , d_z ( height ) , d_num_shells ( 0 ) , d_num_regions ( 1 ) , d_segments ( segments ) , d_seg_faces ( d_segments / 2 ) , d_num_int_faces ( d_seg_faces + d_num_shells ) , d_mod_region ( d_num_regions - 1 ) , d_num_cells ( d_num_regions * d_segments ) , d_vessel ( false ) { REQUIRE ( d_z > 0.0 ) ; REQUIRE ( d_segments == 1 || d_segments == 4 ) ; REQUIRE ( d_mod_region == 0 ) ; d_xy [ 0 ] = dx ; d_xy [ 1 ] = dy ; d_extent [ 0 ] [ LO ] = - d_xy [ 0 ] * 0.5 ; d_extent [ 0 ] [ HI ] = d_xy [ 0 ] * 0.5 ; d_extent [ 1 ] [ LO ] = - d_xy [ 1 ] * 0.5 ; d_extent [ 1 ] [ HI ] = d_xy [ 1 ] * 0.5 ; }
\brief Empty pin-cell constructor with variable X/Y pitch.
\ brief Empty pin - cell constructor with variable X / Y pitch .
// unique pitches in X/Y