반응형

     정보

    • 업무명    : 그누플롯 기계 도면을 이용한 가시화

    • 작성자    : 이상호

    • 작성일    : 2019-09-01

    • 설   명    :

    • 수정이력 :

     

     내용

    [특징]

    • 기계 도면 작성을 보다 빠르고 효과적으로 이해하기 위해 가시화 도구가 필요하며 이 프로그램은 이러한 목적을 달성하기 위해 고안된 소프트웨어

     

    [기능]

    • 기계 도면을 이용하여 가시화

     

    [활용 자료]

    • 없음

     

    [자료 처리 방안 및 활용 분석 기법]

    • 없음

     

    [사용법]

    • 소스 코드를 실행 (gnuplot Visualization_With_Mechanical_Drawing.gs)

    • 가시화 결과를 확인

     

    [사용 OS]

    • Linux

     

    [사용 언어]

    • Gnuplot

     
     

     소스 코드

    [명세]

    reset
    set terminal postscript eps enhanced color font "Helvetica" 20
    set output "fig_gpl_RC.eps"
    #
    set parametric
    set size ratio -1
    set sample 360
    set trange [0:2*pi]
    #
    set xrange [-230:230]
    set yrange [-300:230]
    set border 0
    set xtics 0,0,0
    set ytics 0,0,0
    set xtics nomirror
    set ytics nomirror
    #
    #set style arrow 1 size graph 0.02,10 nohead linewidth 1 linetype 5         
    #set style arrow 2 size graph 0.02,10 nohead linewidth 1 linetype 1          
    #set style arrow 3 size graph 0.02,20 filled heads linewidth 1 linetype 1  
    #set style arrow 4 size graph 0.02,20 filled linewidth 1 linetype 1       
    #set style arrow 5 size graph 0.02,20 filled linewidth 5 linetype 1        
    #set style arrow 6 size graph 0.02,20,30 filled linewidth 2 linetype 1     
    #
    set style line  1 linetype rgb "#000000"
    #
    set style arrow 2 size graph 0.02,10 nohead linestyle 1 linewidth 1 linetype 1
    set style arrow 3 size graph 0.02,20 filled heads linestyle 1linewidth 1 linetype 1
    set style arrow 4 size graph 0.02,20 filled linestyle 1 linewidth 1 linetype 1
    #
    set arrow as 4 from 0,0 to 151.111,34.490
    set label " R_c=155mm" at 151.111,34.490 left rotate by 12.857
    set arrow as 4 from 0,0 to 41.219,85.592
    set label " R_s=95mm" at 41.219,85.592 left rotate by 64.286
    #
    set label "Concrete" at 0,-20 center
    set label "C30" at 0,-40 center
    set label "Rebar=14T20" at 0,-125 center
    set label "Original pile body" at 0,-175 center
    set label "(not considered)" at 0,-195 center
    #
    set arrow as 2 from -225,0 to -225,-285
    set arrow as 2 from  225,0 to  225,-285
    set arrow as 2 from -155,0 to -155,-255
    set arrow as 2 from  155,0 to  155,-255
    set arrow as 3 from -225,-280 to  225,-280
    set arrow as 3 from -225,-250 to -155,-250
    set arrow as 3 from -155,-250 to  155,-250
    set arrow as 3 from  155,-250 to  225,-250
    set label "450mm" at 0,-295 center
    set label "70mm"  at -190,-265 center
    set label "70mm"  at  190,-265 center
    set label "310mm" at    0,-265 center
    #
    rr=225
    r0=155
    r1=95
    r2=10
    a1=0
    a2=2*pi/7*1
    a3=2*pi/7*2
    a4=2*pi/7*3
    a5=2*pi/7*4
    a6=2*pi/7*5
    a7=2*pi/7*6
    plot \
    rr*cos(t),rr*sin(t) with lines linestyle 1 linewidth 1 linetype 2 notitle, \
    r0*cos(t),r0*sin(t) with lines linestyle 1 linewidth 3 linetype 1 notitle, \
    r1*cos(t),r1*sin(t) with lines linestyle 1 linewidth 3 linetype 3 notitle, \
    r2*cos(t)+(r1+r2)*sin(a1),r2*sin(t)+(r1+r2)*cos(a1) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a1),r2*sin(t)+(r1-r2)*cos(a1) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a2),r2*sin(t)+(r1+r2)*cos(a2) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a2),r2*sin(t)+(r1-r2)*cos(a2) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a3),r2*sin(t)+(r1+r2)*cos(a3) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a3),r2*sin(t)+(r1-r2)*cos(a3) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a4),r2*sin(t)+(r1+r2)*cos(a4) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a4),r2*sin(t)+(r1-r2)*cos(a4) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a5),r2*sin(t)+(r1+r2)*cos(a5) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a5),r2*sin(t)+(r1-r2)*cos(a5) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a6),r2*sin(t)+(r1+r2)*cos(a6) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a6),r2*sin(t)+(r1-r2)*cos(a6) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1+r2)*sin(a7),r2*sin(t)+(r1+r2)*cos(a7) with filledcurves linestyle 1 notitle, \
    r2*cos(t)+(r1-r2)*sin(a7),r2*sin(t)+(r1-r2)*cos(a7) with filledcurves linestyle 1 notitle, \
    "-" with points notitle
    0 0
    e

     

    [GitHub Gist]

     

     결과

    • 오른쪽 정렬
      왼쪽 정렬
      가운데 정렬
    • 작게
      문서 너비
      옆트임
    사진 설명을 입력하세요.
    그림. 기계 도면을 이용한 가시화.

     

     참고 문헌

    [논문]

    • 없음

    [보고서]

    • 없음

    [URL]

    • 없음

     

     문의사항

    [기상학/프로그래밍 언어]

    • sangho.lee.1990@gmail.com

    [해양학/천문학/빅데이터]

    • saimang0804@gmail.com
    반응형
    • 네이버 블러그 공유하기
    • 네이버 밴드에 공유하기
    • 페이스북 공유하기
    • 카카오스토리 공유하기