정보
-
업무명 : 그누플롯 기계 도면을 이용한 가시화
-
작성자 : 이상호
-
작성일 : 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]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
결과

-
오른쪽 정렬왼쪽 정렬가운데 정렬
-
작게문서 너비옆트임
사진 설명을 입력하세요.

참고 문헌
[논문]
- 없음
[보고서]
- 없음
[URL]
- 없음
문의사항
[기상학/프로그래밍 언어]
- sangho.lee.1990@gmail.com
[해양학/천문학/빅데이터]
- saimang0804@gmail.com
'프로그래밍 언어 > Gnuplot' 카테고리의 다른 글
[Gnuplot] 온라인/오프라인 리눅스 (Linux) 환경에 따른 그누플롯 (Gnuplot) 설치 방법 (1) | 2020.02.08 |
---|---|
[Gnuplot] 그누플롯 일사계 관측 자료를 이용한 환풍 유무에 따른 시계열 (0) | 2019.09.01 |
[Gnuplot] 그누플롯 월별 온도와 강우 변동에 따른 가시화 (0) | 2019.09.01 |
[Gnuplot] 그누플롯 RCP26 모델 결과를 이용한 시계열 (0) | 2019.08.31 |
[Gnuplot] 그누플롯 기초 및 필수 명령어 설정 (0) | 2019.08.31 |