본문 바로가기
728x90

소프트웨어 (계산용 프로그램)20

[Gnuplot] 범례(legend)와 관련된 내용들 개인적으로 gnuplot의 범례 (legend)와 관련된 사항들을 정리한 글입니다. 1. 그래프의 legend를 출력하지 않을 경우 [1][2] 1) 모든 그래프의 legend를 출력하지 않을 경우: set key noautotitle 2) 특정 그래프의 legend를 출력하지 않을 경우 (a) notitle (b) title "" ※ (a)와 (b) 는 동일하다. example - 1) plot sin(x) title "sin(x)", \ cos(x) title "",\ tan(x) notitle pause -1 범례의 위치를 조정하는 경우 1. 명령어: set key 2. 사용의 예시 (1) 그래프의 바깥쪽에 legend를 놓을 경우: set key outside (2) 그래프의 내부의 오른쪽(왼쪽).. 2021. 3. 10.
[Gnuplot] Script를 이용하여 plot하기 Gnuplot을 스크립트를 이용하여 이용하는 경우에는 크게 두 가지 방식으로 스크립트를 작성할 수 있다. (1) Bash Shell 내에서 쉘 스크립트 작성 (2) 일반적인 gnuplot script 작성 1. Bash shell script를 이용하는 경우 - Bash shell을 이용하는 경우에는 아래와 같이 쉘 스크립트 내에서 gnuplot을 사용할 때, gnuplot 2021. 3. 10.
[Kwant] Further-than-nearest-neighbor cells are connected by hopping Let's assume that we consider hoppings over the one unit cell. Then when you try to finalize the lead in KWANT, the message of "Further-than-nearest-neighbor cells are connected by hopping" occurs. Then, how do we solve this problem? There are two possible options to solve the problems [1]; (1) Extend translational symmetry of the lead (2) Use wraparound method in KWANT In order to illustrate tw.. 2021. 2. 9.
[Kwant] Plotting the band structure along the k-path In KWANT, there is a built-in function to plot band structure for the infinite system (or bulk system). Wraparound method in KWANT can draw the band structure of the bulk system in 3D plot. Then how to plot band structures along k-path in reciprocal space? Unfortunately, there are no built-in functions to plot band structures along the k-path. So, I will show you how to draw that by using KWANT... 2020. 12. 22.
[Quantum ESPRESSO] How to Install QE in Ubuntu Quantum ESPRESSO is a well-known open-source program for Density Functional Theory (DFT) calculation. Since recently, I thought I had to study DFT, so I would like to organize the contents I studied little by little on a blog. Before that, I summarize how to install Quantum ESPRESSO below. How to install Quantum Espresso in the Linux There are three ways to install Quantum Espresso in Ubuntu; (1.. 2020. 9. 18.
[Gnuplot] every option 관련 정리 ■ [gnuplot] every 옵션 [1] - 형식: every I:J:K:L:M:N - 옵션의 의미 설명 I Line increment J Data block increment K The first line L The first data block M The last line N The Last data block 1. every 옵션에서 말하는 Block이란? - 아래와 같은 형태로 구성된 구조화된 텍스트파일이 있다고 가정해보자. 이때, 아래의 그림과 같이 빈칸(줄나눔문자'\n')으로 나누어진 각각의 데이터 덩어리를 block이라고 한다. - 만약 데이터가 저장된 텍스트 파일에서 빈칸으로 데이터들이 나누어지지 않았다면, block에 대한 항목을 고려할 필요가 없다. 2. 예시 - 위의 예제와 같이 .. 2020. 7. 23.
[Gnuplot] 여러 행들이 있는 경우 원하는 행들로 그림 출력 상황: 아래와 같은 4개의 필드로 구성된 example.txt 파일이 있다고 가정하자. 이때, 2번은 x축으로 4번 행은 y축으로하여 그림을 출력하고자 한다. # example.txt # 1 2 3 4 .... ■ gnuplot 코드 gnuplot> plot 'example.txt' using 2:4 ▶ using : - : x 축으로 사용할 행 - : y 축으로 사용할 행 2020. 7. 10.
[MS word] 단축키 1. MS 워드 특수기호/문자표: Alt + i + s 2. 글꼴 바꾸기: CRTL + Shift + F 2020. 5. 13.
[Kwant-example] simple 1D chain Kwant coder for simple 1D chain ■ Kwant code - 1 ######## Step-1. Importing Kwant and package program import kwant from matplotlib import pyplot ######## Step-2. Define the Tight-binding system def make_system(L=10, t = 1.): # 2-1. Call Builder() # syst - the TBM system that will be defined in this example # L - the number of lattice in scattering region # - its default value is 10 # t - hopping.. 2020. 4. 3.
728x90