파일:Shell-diag-1.svg

testwiki
둘러보기로 이동 검색으로 이동
    원본 파일 (SVG 파일, 실제 크기 303 × 147 픽셀, 파일 크기: 21 KB)

    이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.

    파일 설명

    설명
    English: A diagram illustrating the derivation of Newton's shell theorem. Shown is a thin shell with a test mass outside the shell (r>R).
    날짜
    출처 자작
    저자 Xaonon

    라이선스

    나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
    w:ko:크리에이티브 커먼즈
    저작자표시 동일조건변경허락
    이용자는 다음의 권리를 갖습니다:
    • 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
    • 개작 – 저작물의 개작, 수정, 2차적저작물 창작
    다음과 같은 조건을 따라야 합니다:
    • 저작자표시 – 적절한 저작자 표시를 제공하고, 라이선스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
    • 동일조건변경허락 – 만약 당신이 이 저작물을 개작 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.

    Source

    This image and the others in the same series (2, 3, 4) were generated from the MetaPost code presented below. The code is released under the same license as the images themselves.

    % shell-diag.mp
    % A diagram illustrating the derivation of Newton's shell theorem.  To be
    % processed with MetaPost:
    %   mpost --mem=metafun.mem -s 'outputformat="svg"' -s prologues=3 shell-diag.mp
    
    color bandshade, fillshade;
    bandshade = 0.7 [blue, white];
    fillshade = 0.9 white;
    
    numeric dotsize, deg;
    dotsize = 5 bp;
    deg = length( fullcircle )/360;
    
    freelabeloffset := 3/4 freelabeloffset;
    labeloffset := 2 labeloffset;
    
    def dot( expr P ) =
      fill fullcircle scaled dotsize shifted P withcolor black;
    enddef;
    
    def draw_circle( expr R, stroke ) =
      save p;
      pen p;
      p = currentpen;
      pickup p scaled stroke;
      draw fullcircle scaled 2R;
      pickup p;
    enddef;
    
    vardef anglebetween( expr a, b, rad, str ) =
      save endofa, endofb, common, curve, where;
      pair endofa, endofb, common;
      path curve;
      numeric where;
      endofa = point length( a ) of a;
      endofb = point length( b ) of b;
      if round point 0 of a = round point 0 of b:
        common = point 0 of a;
      else:
        common = a intersectionpoint b;
      fi;
      where = turningnumber( common--endofa--endofb--cycle );
      curve = (unitvector( endofa - common ){(endofa - common) rotated (90 * where)} ..
               unitvector( endofb - common )) scaled rad shifted common;
      draw thefreelabel( str, point 1/2 of curve, common ) withcolor black;
      curve
    enddef;
    
    def draw_angle( expr a, b, rad, str ) =
      begingroup
        save p;
        pen p;
        p = currentpen;
        pickup p scaled 1/2;
        draw anglebetween( a, b, rad, str );
        pickup p;
      endgroup
    enddef;
    
    def label_line( expr a, b, disp, str ) =
      begingroup
      save mid, opp;
      pair mid, opp;
      mid = 1/2 [a, b];
      opp = -disp rotated (angle( b - a ) - 90) shifted mid;
      draw thefreelabel( str, mid, opp );
      draw a -- b;
      endgroup
    enddef;
    
    def draw_thinshell( expr R, r, theta, dtheta, thetarad, phirad ) =
      begingroup
        save M, m;
        pair M, m;
        M = (0, 0);
        m = (r, 0);
    
        save circ;
        path circ;
        circ = fullcircle scaled 2R;
    
        save thetapt, dthetapt;
        pair thetapt, dthetapt;
        thetapt   = point (theta * deg) of circ;
        dthetapt  = point ((theta + dtheta) * deg) of circ;
    
        save upper, lower, band;
        path upper, lower, band;
        upper = subpath (0, 4) of circ;
        lower = subpath (4, 8) of circ;
        band = buildcycle( upper, (xpart thetapt,  R) -- (xpart thetapt,  -R),
                           lower, (xpart dthetapt, R) -- (xpart dthetapt, -R) );
    
        % draw figures
        save p;
        pen p;
        p = currentpen;
        pickup p scaled 1/2;
        fill band withcolor bandshade;
        draw band;
        pickup p;
    
        save near, far;
        pair near, far;
        if theta < 90:
          near = 3/4[ulcorner band, llcorner band];
          far  = right shifted near;
        else:
          near = 3/4[urcorner band, lrcorner band];
          far  = left shifted near;
        fi;
        draw thefreelabel( btex $dM$ etex, near, far );
    
        dot( M );
        %label.llft( btex $M$ etex, M );
    
        dot( m );
        label.lrt( btex $m$ etex, m );
    
        draw M -- thetapt;
        label_line( M, m, right, btex $r$ etex );
        label_line( m, thetapt, right, btex $s$ etex );
        if R <> r:
          label_line( M, dthetapt, left, btex $R$ etex );
        else:
          draw M -- dthetapt;
        fi;
    
        draw_angle( m -- M, m -- thetapt, phirad, btex $\phi$ etex );
        draw_angle( M -- m, M -- thetapt, thetarad, btex $\theta$ etex );
        draw_angle( M -- thetapt, M -- dthetapt, R, btex $d\theta$ etex );
      endgroup
    enddef;
    
    def draw_thickshell( expr Ra, Rb, r ) =
      begingroup
        save m;
        pair m;
        m = (r, 0);
    
        fill fullcircle scaled 2Rb withcolor fillshade;
        fill fullcircle scaled 2r  withcolor bandshade;
        unfill fullcircle scaled 2Ra;
    
        dot( origin );
        dot( m );
        label.lrt( btex $m$ etex, m );
        label_line( origin, m, right, btex $r$ etex );
    
        draw_circle( Rb, 2 );
        if Ra > 0:
          draw_circle( Ra, 2 );
          label_line( origin, dir( 100 ) scaled Rb, left,  btex $R_b$ etex );
          label_line( origin, dir( 80 )  scaled Ra, right, btex $R_a$ etex );
        else:
          label_line( origin, dir( 90 )  scaled Rb, left,  btex $R_b$ etex );
        fi;
      endgroup
    enddef;
    
    % Thin shell, r > R
    beginfig(1)
      numeric R;
      R = 1 in;
      draw_thinshell( R, 3R, 50, 15, 1/4 in, 3/4 in );
      draw_circle( R, 2 );
      setbounds currentpicture to boundingbox currentpicture enlarged 1pt;
    endfig;
    
    % Thin shell, r < R
    beginfig(2)
      numeric R;
      R = 1 in;
      draw_thinshell( R, 0.7R, 125, 15, 1/8 in, 1/3 in );
      draw_circle( R, 2 );
      setbounds currentpicture to boundingbox currentpicture enlarged 1pt;
    endfig;
    
    % Thick shell
    beginfig(3)
      numeric Ra, Rb, r;
      Ra = 0.8 in;
      Rb = 1.3 in;
      r = 1 in;
    
      draw_thickshell( Ra, Rb, r );
      setbounds currentpicture to boundingbox currentpicture enlarged 1pt;
    endfig;
    
    % Solid sphere
    beginfig(4)
      numeric Ra, Rb, r;
      Ra = 0;
      Rb = 1.3 in;
      r = 1 in;
    
      draw_thickshell( Ra, Rb, r );
      setbounds currentpicture to boundingbox currentpicture enlarged 1pt;
    endfig;
    
    end
    

    설명

    이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다

    이 파일에 묘사된 항목

    다음을 묘사함

    21,109 바이트

    image/svg+xml

    d0ea07482600325222c58744545c8d7870ab52d6

    파일 역사

    날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.

    날짜/시간섬네일크기사용자설명
    현재2017년 2월 26일 (일) 01:552017년 2월 26일 (일) 01:55 판의 섬네일303 × 147 (21 KB)wikimediacommons>Xaonontweak bounding box

    이 파일을 사용하는 문서가 없습니다.