537 lines
19 KiB
HTML
537 lines
19 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
|
<head>
|
|
<!-- 2023-04-24 月 09:01 -->
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>dump2sq</title>
|
|
<meta name="author" content="大窪 貴洋" />
|
|
<meta name="generator" content="Org Mode" />
|
|
<style>
|
|
#content { max-width: 60em; margin: auto; }
|
|
.title { text-align: center;
|
|
margin-bottom: .2em; }
|
|
.subtitle { text-align: center;
|
|
font-size: medium;
|
|
font-weight: bold;
|
|
margin-top:0; }
|
|
.todo { font-family: monospace; color: red; }
|
|
.done { font-family: monospace; color: green; }
|
|
.priority { font-family: monospace; color: orange; }
|
|
.tag { background-color: #eee; font-family: monospace;
|
|
padding: 2px; font-size: 80%; font-weight: normal; }
|
|
.timestamp { color: #bebebe; }
|
|
.timestamp-kwd { color: #5f9ea0; }
|
|
.org-right { margin-left: auto; margin-right: 0px; text-align: right; }
|
|
.org-left { margin-left: 0px; margin-right: auto; text-align: left; }
|
|
.org-center { margin-left: auto; margin-right: auto; text-align: center; }
|
|
.underline { text-decoration: underline; }
|
|
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
|
p.verse { margin-left: 3%; }
|
|
pre {
|
|
border: 1px solid #e6e6e6;
|
|
border-radius: 3px;
|
|
background-color: #f2f2f2;
|
|
padding: 8pt;
|
|
font-family: monospace;
|
|
overflow: auto;
|
|
margin: 1.2em;
|
|
}
|
|
pre.src {
|
|
position: relative;
|
|
overflow: auto;
|
|
}
|
|
pre.src:before {
|
|
display: none;
|
|
position: absolute;
|
|
top: -8px;
|
|
right: 12px;
|
|
padding: 3px;
|
|
color: #555;
|
|
background-color: #f2f2f299;
|
|
}
|
|
pre.src:hover:before { display: inline; margin-top: 14px;}
|
|
/* Languages per Org manual */
|
|
pre.src-asymptote:before { content: 'Asymptote'; }
|
|
pre.src-awk:before { content: 'Awk'; }
|
|
pre.src-authinfo::before { content: 'Authinfo'; }
|
|
pre.src-C:before { content: 'C'; }
|
|
/* pre.src-C++ doesn't work in CSS */
|
|
pre.src-clojure:before { content: 'Clojure'; }
|
|
pre.src-css:before { content: 'CSS'; }
|
|
pre.src-D:before { content: 'D'; }
|
|
pre.src-ditaa:before { content: 'ditaa'; }
|
|
pre.src-dot:before { content: 'Graphviz'; }
|
|
pre.src-calc:before { content: 'Emacs Calc'; }
|
|
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
|
pre.src-fortran:before { content: 'Fortran'; }
|
|
pre.src-gnuplot:before { content: 'gnuplot'; }
|
|
pre.src-haskell:before { content: 'Haskell'; }
|
|
pre.src-hledger:before { content: 'hledger'; }
|
|
pre.src-java:before { content: 'Java'; }
|
|
pre.src-js:before { content: 'Javascript'; }
|
|
pre.src-latex:before { content: 'LaTeX'; }
|
|
pre.src-ledger:before { content: 'Ledger'; }
|
|
pre.src-lisp:before { content: 'Lisp'; }
|
|
pre.src-lilypond:before { content: 'Lilypond'; }
|
|
pre.src-lua:before { content: 'Lua'; }
|
|
pre.src-matlab:before { content: 'MATLAB'; }
|
|
pre.src-mscgen:before { content: 'Mscgen'; }
|
|
pre.src-ocaml:before { content: 'Objective Caml'; }
|
|
pre.src-octave:before { content: 'Octave'; }
|
|
pre.src-org:before { content: 'Org mode'; }
|
|
pre.src-oz:before { content: 'OZ'; }
|
|
pre.src-plantuml:before { content: 'Plantuml'; }
|
|
pre.src-processing:before { content: 'Processing.js'; }
|
|
pre.src-python:before { content: 'Python'; }
|
|
pre.src-R:before { content: 'R'; }
|
|
pre.src-ruby:before { content: 'Ruby'; }
|
|
pre.src-sass:before { content: 'Sass'; }
|
|
pre.src-scheme:before { content: 'Scheme'; }
|
|
pre.src-screen:before { content: 'Gnu Screen'; }
|
|
pre.src-sed:before { content: 'Sed'; }
|
|
pre.src-sh:before { content: 'shell'; }
|
|
pre.src-sql:before { content: 'SQL'; }
|
|
pre.src-sqlite:before { content: 'SQLite'; }
|
|
/* additional languages in org.el's org-babel-load-languages alist */
|
|
pre.src-forth:before { content: 'Forth'; }
|
|
pre.src-io:before { content: 'IO'; }
|
|
pre.src-J:before { content: 'J'; }
|
|
pre.src-makefile:before { content: 'Makefile'; }
|
|
pre.src-maxima:before { content: 'Maxima'; }
|
|
pre.src-perl:before { content: 'Perl'; }
|
|
pre.src-picolisp:before { content: 'Pico Lisp'; }
|
|
pre.src-scala:before { content: 'Scala'; }
|
|
pre.src-shell:before { content: 'Shell Script'; }
|
|
pre.src-ebnf2ps:before { content: 'ebfn2ps'; }
|
|
/* additional language identifiers per "defun org-babel-execute"
|
|
in ob-*.el */
|
|
pre.src-cpp:before { content: 'C++'; }
|
|
pre.src-abc:before { content: 'ABC'; }
|
|
pre.src-coq:before { content: 'Coq'; }
|
|
pre.src-groovy:before { content: 'Groovy'; }
|
|
/* additional language identifiers from org-babel-shell-names in
|
|
ob-shell.el: ob-shell is the only babel language using a lambda to put
|
|
the execution function name together. */
|
|
pre.src-bash:before { content: 'bash'; }
|
|
pre.src-csh:before { content: 'csh'; }
|
|
pre.src-ash:before { content: 'ash'; }
|
|
pre.src-dash:before { content: 'dash'; }
|
|
pre.src-ksh:before { content: 'ksh'; }
|
|
pre.src-mksh:before { content: 'mksh'; }
|
|
pre.src-posh:before { content: 'posh'; }
|
|
/* Additional Emacs modes also supported by the LaTeX listings package */
|
|
pre.src-ada:before { content: 'Ada'; }
|
|
pre.src-asm:before { content: 'Assembler'; }
|
|
pre.src-caml:before { content: 'Caml'; }
|
|
pre.src-delphi:before { content: 'Delphi'; }
|
|
pre.src-html:before { content: 'HTML'; }
|
|
pre.src-idl:before { content: 'IDL'; }
|
|
pre.src-mercury:before { content: 'Mercury'; }
|
|
pre.src-metapost:before { content: 'MetaPost'; }
|
|
pre.src-modula-2:before { content: 'Modula-2'; }
|
|
pre.src-pascal:before { content: 'Pascal'; }
|
|
pre.src-ps:before { content: 'PostScript'; }
|
|
pre.src-prolog:before { content: 'Prolog'; }
|
|
pre.src-simula:before { content: 'Simula'; }
|
|
pre.src-tcl:before { content: 'tcl'; }
|
|
pre.src-tex:before { content: 'TeX'; }
|
|
pre.src-plain-tex:before { content: 'Plain TeX'; }
|
|
pre.src-verilog:before { content: 'Verilog'; }
|
|
pre.src-vhdl:before { content: 'VHDL'; }
|
|
pre.src-xml:before { content: 'XML'; }
|
|
pre.src-nxml:before { content: 'XML'; }
|
|
/* add a generic configuration mode; LaTeX export needs an additional
|
|
(add-to-list 'org-latex-listings-langs '(conf " ")) in .emacs */
|
|
pre.src-conf:before { content: 'Configuration File'; }
|
|
|
|
table { border-collapse:collapse; }
|
|
caption.t-above { caption-side: top; }
|
|
caption.t-bottom { caption-side: bottom; }
|
|
td, th { vertical-align:top; }
|
|
th.org-right { text-align: center; }
|
|
th.org-left { text-align: center; }
|
|
th.org-center { text-align: center; }
|
|
td.org-right { text-align: right; }
|
|
td.org-left { text-align: left; }
|
|
td.org-center { text-align: center; }
|
|
dt { font-weight: bold; }
|
|
.footpara { display: inline; }
|
|
.footdef { margin-bottom: 1em; }
|
|
.figure { padding: 1em; }
|
|
.figure p { text-align: center; }
|
|
.equation-container {
|
|
display: table;
|
|
text-align: center;
|
|
width: 100%;
|
|
}
|
|
.equation {
|
|
vertical-align: middle;
|
|
}
|
|
.equation-label {
|
|
display: table-cell;
|
|
text-align: right;
|
|
vertical-align: middle;
|
|
}
|
|
.inlinetask {
|
|
padding: 10px;
|
|
border: 2px solid gray;
|
|
margin: 10px;
|
|
background: #ffffcc;
|
|
}
|
|
#org-div-home-and-up
|
|
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
|
textarea { overflow-x: auto; }
|
|
.linenr { font-size: smaller }
|
|
.code-highlighted { background-color: #ffff00; }
|
|
.org-info-js_info-navigation { border-style: none; }
|
|
#org-info-js_console-label
|
|
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
|
.org-info-js_search-highlight
|
|
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
|
.org-svg { }
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/css/htmlize.css"/>
|
|
<link rel="stylesheet" type="text/css" href="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/readtheorg.css"/>
|
|
<script src="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/jquery.min.js"></script>
|
|
<script src="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/jquery.stickytableheaders.min.js"></script>
|
|
<script type="text/javascript" src="https://amorphous.tf.chiba-u.jp/org-html-themes/org/lib/readtheorg.js"></script>
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
displayAlign: "center",
|
|
displayIndent: "0em",
|
|
|
|
"HTML-CSS": { scale: 100,
|
|
linebreaks: { automatic: "false" },
|
|
webFont: "TeX"
|
|
},
|
|
SVG: {scale: 100,
|
|
linebreaks: { automatic: "false" },
|
|
font: "TeX"},
|
|
NativeMML: {scale: 100},
|
|
TeX: { equationNumbers: {autoNumber: "AMS"},
|
|
MultLineWidth: "85%",
|
|
TagSide: "right",
|
|
TagIndent: ".8em"
|
|
}
|
|
});
|
|
</script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML"></script>
|
|
</head>
|
|
<body>
|
|
<div id="content" class="content">
|
|
<h1 class="title">dump2sq</h1>
|
|
<div id="table-of-contents" role="doc-toc">
|
|
<h2>Table of Contents</h2>
|
|
<div id="text-table-of-contents" role="doc-toc">
|
|
<ul>
|
|
<li><a href="#org1fb693c">はじめに</a></li>
|
|
<li><a href="#org3d360c5">入力ファイル</a>
|
|
<ul>
|
|
<li><a href="#orgdb86d08">LAMMPS</a></li>
|
|
<li><a href="#org61fd967">XYZ</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#org20edf79">出力ファイル</a>
|
|
<ul>
|
|
<li><a href="#org788070c">積算配位数</a></li>
|
|
<li><a href="#org3203c1b">動径分布関数</a></li>
|
|
<li><a href="#orgb063307">構造因子</a></li>
|
|
<li><a href="#org4fa713d">原子散乱因子と中性子散乱長</a></li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="#orgdbb1636">インストール</a></li>
|
|
<li><a href="#org0b28eee">使い方</a></li>
|
|
<li><a href="#orge128b57">tools</a>
|
|
<ul>
|
|
<li><a href="#org5f52764">coeffploter.py</a></li>
|
|
<li><a href="#org0bc877e">gr2sq.py</a></li>
|
|
<li><a href="#org9f47a58">cn2Iq.c</a></li>
|
|
<li><a href="#org64e2a3f">cn2Iq.py</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<p>
|
|
<br />
|
|
</p>
|
|
|
|
<div id="outline-container-org1fb693c" class="outline-2">
|
|
<h2 id="org1fb693c">はじめに</h2>
|
|
<div class="outline-text-2" id="text-org1fb693c">
|
|
<p>
|
|
複数の時間ステップからなる時間ステップの構造データから、動径分布関数
|
|
\(g(r)\) 、積算配位数 \(CN(r)\) 、構造因子 \(S(Q)\) を計算するプログラムです。
|
|
Triclinicなセルでも計算できます。原子ペア毎の\(S(Q)\) を計算した後、原子
|
|
散乱因子または中性子散乱長を使って、X-rayと中性子回折実験的で観測され
|
|
る \(S(Q)\) を計算します。\(g(r)\) は、セルサイズ \(L/2\) を超えても計算でき
|
|
ます。\(L/2\sqrt{3}\) まで確保しても良さそうです。産総研の土田さんにアド
|
|
バイスいただきました。
|
|
</p>
|
|
|
|
<p>
|
|
<a href="https://www.cmu.edu/biolphys/deserno/pdf/gr_periodic.pdf">https://www.cmu.edu/biolphys/deserno/pdf/gr_periodic.pdf</a>
|
|
</p>
|
|
|
|
<p>
|
|
1ステップ毎に\(g(r)\) と\(S(Q)\) を計算して最後に時間平均しています。よっ
|
|
て、NPT計算でセルサイズが変わったとしても問題なく計算できます。計算コ
|
|
ストのほとんどは、原子間距離の計算です。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org3d360c5" class="outline-2">
|
|
<h2 id="org3d360c5">入力ファイル</h2>
|
|
<div class="outline-text-2" id="text-org3d360c5">
|
|
<p>
|
|
拡張子で入力ファイルのformatを判断しています。
|
|
</p>
|
|
</div>
|
|
<div id="outline-container-orgdb86d08" class="outline-3">
|
|
<h3 id="orgdb86d08">LAMMPS</h3>
|
|
<div class="outline-text-3" id="text-orgdb86d08">
|
|
<p>
|
|
dumpコマンドで生成したファイルで、拡張子は.trajectryです。1ス
|
|
テップ目で原子のならび決めて、2ステップ目以降は、同じ原子の並びとし
|
|
て計算しています。時間ステップで原子の並びが変わると、正しい結果に
|
|
ならないので注意してください。データの並びを決め打ちしています。そ
|
|
のため、以下のようにdumpとdump_modifyで元素記号の出力し、idでsortし
|
|
ておく必要があります。
|
|
</p>
|
|
<pre class="example" id="orgf547c21">
|
|
dump 1 all custom 10 hoge.lammpstrj id type element x y z
|
|
dump_modify 1 element Si O sort id
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-org61fd967" class="outline-3">
|
|
<h3 id="org61fd967">XYZ</h3>
|
|
<div class="outline-text-3" id="text-org61fd967">
|
|
<p>
|
|
xyz形式で、拡張子は.xyzまたは.10です。す。1行目に原子数、2行目に
|
|
Step数と、格子定数を記述しておきます。alpha, beta, gammaがない場合
|
|
は、90, 90, 90とします。3行目以降にデータがならびます。2ステップ目
|
|
以降も同じ形式でデータを並べます。
|
|
</p>
|
|
<pre class="example" id="orgc4e85d6">
|
|
420
|
|
Step 225837 18.4116484 18.4116484 18.4116484 90 90 90
|
|
Si 10.560073 17.438902 6.614775
|
|
O 17.812448 0.110128 0.3462461
|
|
.
|
|
.
|
|
.
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="outline-container-org20edf79" class="outline-2">
|
|
<h2 id="org20edf79">出力ファイル</h2>
|
|
<div class="outline-text-2" id="text-org20edf79">
|
|
<p>
|
|
4つのファイルに拡張子を追加して出力します。basenameは、指定しなけれ
|
|
ば、インプットファイルと同じになります。
|
|
</p>
|
|
</div>
|
|
<div id="outline-container-org788070c" class="outline-3">
|
|
<h3 id="org788070c">積算配位数</h3>
|
|
<div class="outline-text-3" id="text-org788070c">
|
|
<p>
|
|
拡張子はcnです。原子ペア毎の \(CN(r)\) が保存されています。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-org3203c1b" class="outline-3">
|
|
<h3 id="org3203c1b">動径分布関数</h3>
|
|
<div class="outline-text-3" id="text-org3203c1b">
|
|
<p>
|
|
拡張子はgrです。原子ペア毎の \(g(r)\) と全原子 \(G(r)\) が保存されています。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-orgb063307" class="outline-3">
|
|
<h3 id="orgb063307">構造因子</h3>
|
|
<div class="outline-text-3" id="text-orgb063307">
|
|
<p>
|
|
拡張子はsqです。原子ペア毎の \(S(Q)\) とX線と中性子で観測される \(S(Q)\) が保存されています。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="outline-container-org4fa713d" class="outline-3">
|
|
<h3 id="org4fa713d">原子散乱因子と中性子散乱長</h3>
|
|
<div class="outline-text-3" id="text-org4fa713d">
|
|
<p>
|
|
拡張子はcoeffです。中性子散乱長と原子散乱因子を出力します。原子散乱
|
|
因子は、<a href="https://www.szfki.hu/~nphys/rmc++/downloads.html">xcoeff.f</a>から抽出しています。中性子散乱長は、<a href="https://www.ncnr.nist.gov/resources/n-lengths/">NIST</a>のデータを
|
|
参照しています。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orgdbb1636" class="outline-2">
|
|
<h2 id="orgdbb1636">インストール</h2>
|
|
<div class="outline-text-2" id="text-orgdbb1636">
|
|
<p>
|
|
プログラムはCで作成しています。Cのコンパイラを準備してmakeしてください。
|
|
ダウンロードして単にmakeしてください。
|
|
</p>
|
|
|
|
<p>
|
|
<a href="dump2sq-1.0.tar.gz">dump2sq-1.0.tar.gz</a>
|
|
</p>
|
|
|
|
<pre class="example" id="orge7646c4">
|
|
make
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0b28eee" class="outline-2">
|
|
<h2 id="org0b28eee">使い方</h2>
|
|
<div class="outline-text-2" id="text-org0b28eee">
|
|
<p>
|
|
並列計算のために、環境変数をセットしてスレッド数を指定しておく。
|
|
</p>
|
|
<pre class="example" id="org5be6b90">
|
|
export OMP_NUM_THREADS=4
|
|
</pre>
|
|
<p>
|
|
example以下のglass.lammpstrjを引数で渡して実行してみます。
|
|
</p>
|
|
<pre class="example" id="org05c3b6e">
|
|
dump2sq example/glass.lammpstrj
|
|
</pre>
|
|
<p>
|
|
デフォルトで、\(g(r)\) を計算する\(r\) の最大値は、もっとも小さいセル長
|
|
さの半分としています。プログラムが実行されると、次のように出力されて、
|
|
4つのファイルが出力されます。
|
|
</p>
|
|
<pre class="example" id="orgdaa7dff">
|
|
basename: example/glass
|
|
Maximum cell length = 17.284100
|
|
Rmax = 8.642050
|
|
Start Gr and Sq calculation...
|
|
Calculation 0 steps...
|
|
Calculation 10 steps...
|
|
Calculation 20 steps...
|
|
Calculation 30 steps...
|
|
Calculation 40 steps...
|
|
Calculation 50 steps...
|
|
Calculation 60 steps...
|
|
Calculation 70 steps...
|
|
Calculation 80 steps...
|
|
Calculation 90 steps...
|
|
Total: 99 steps
|
|
|
|
example/glass.coeff was generated.
|
|
example/glass.cn was generated.
|
|
example/glass.gr was generated.
|
|
example/glass.sq was generated.
|
|
</pre>
|
|
|
|
<p>
|
|
\(g(r)\) の\(r\) ステップや最大値、\(Q\) の範囲をコマンドラインで指定できます。詳細
|
|
は、ヘルプを参照してください。ヘルプで表示される[ ]の値はデフォルト
|
|
値です。GRmaxは、セルサイズを超えても計算できますが、物理的な意味は
|
|
ないでしょう。
|
|
</p>
|
|
<pre class="example" id="org7b72f5c">
|
|
./dump2sq -h
|
|
usage: dump2sq [options] inputfile
|
|
inputfile format
|
|
LAMMPS: *.lammpstrj
|
|
FEMTECK: *.10
|
|
|
|
options:
|
|
-h --help show this help message
|
|
--SQmin=%f Q minimum [0.2]
|
|
--SQmax=%f Q maximum [30]
|
|
--SQdel=%d Q delta [0.02]
|
|
--GRmin=%f r minimum [0.025]
|
|
-r --GRmax=%f r maximum [L(minium cell length)*0.5]
|
|
-s --GRdel=%d r delta [0.05]
|
|
-o --output=%s Output basename [basename]
|
|
</pre>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-orge128b57" class="outline-2">
|
|
<h2 id="orge128b57">tools</h2>
|
|
<div class="outline-text-2" id="text-orge128b57">
|
|
</div>
|
|
<div id="outline-container-org5f52764" class="outline-3">
|
|
<h3 id="org5f52764">coeffploter.py</h3>
|
|
<div class="outline-text-3" id="text-org5f52764">
|
|
<p>
|
|
元素を指定して、原子散乱因子と中性子散乱長をプロットする。引数に元
|
|
素名を複数していできる。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org0bc877e" class="outline-3">
|
|
<h3 id="org0bc877e">gr2sq.py</h3>
|
|
<div class="outline-text-3" id="text-org0bc877e">
|
|
<p>
|
|
Qの刻みを変えて再計算するために、dump2sqで生成したgrファイルから
|
|
S(Q)を計算しなおす。結晶のパターンを計算するために、\(2\theta\) で\(Q\)
|
|
を指定して計算することもできる。\(\theta\) と\(Q\) の関係は以下のとおり。
|
|
defaultで波長は、CuのK alpha線の1.54183 Åとしている。
|
|
\[
|
|
Q = \frac{4\pi}{\lambda}\sin(\theta)
|
|
\]
|
|
計算した$S(Q)$はpngとxlsxを生成する
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org9f47a58" class="outline-3">
|
|
<h3 id="org9f47a58">cn2Iq.c</h3>
|
|
<div class="outline-text-3" id="text-org9f47a58">
|
|
<p>
|
|
dump2sqで生成された*.cnと*.coeffから$I(q)$を計算するCプログラム。
|
|
openmpでスレッド並列する。f*fは足していない。sincのwindow関数をかけ
|
|
る。コンパイルは、
|
|
</p>
|
|
<pre class="example" id="orgbd8abab">
|
|
gcc -fopenmp -O3 -Wall cn2Iq.c -o cn2Iq
|
|
</pre>
|
|
<p>
|
|
実行は、*.cnと*.coeffを渡す。I(q)は標準出力に出力されうr.
|
|
</p>
|
|
<pre class="example" id="org64cabbd">
|
|
./cn2Iq fort.cn fort.cn.coeff
|
|
</pre>
|
|
<p>
|
|
複数のcnファイルやxslxに保存したい場合は、cn2Iq.pyを使う。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="outline-container-org64e2a3f" class="outline-3">
|
|
<h3 id="org64e2a3f">cn2Iq.py</h3>
|
|
<div class="outline-text-3" id="text-org64e2a3f">
|
|
<p>
|
|
subprocessでCのcn2Iqを呼び出して、I(Q)のpngとxlsxを生成する。Qの範囲
|
|
またはthetaの範囲を指定できる。
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="postamble" class="status">
|
|
<p class="author">Author: 大窪 貴洋</p>
|
|
<p class="date">Created: 2023-04-24 月 09:01</p>
|
|
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
|
</div>
|
|
</body>
|
|
</html>
|