<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
  <channel>
    <title>長続き目指しブログ</title>
    <link>http://naga-tsuzuki.sblo.jp/</link>
    <description>長続きを目指すブログ。Pythonを使ってグラフを書いたり、Pysideを使って、GUIソフトを作ってみたりします。</description>
    <language>ja</language>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <itunes:subtitle></itunes:subtitle>
    <itunes:summary> 長続きを目指すブログ。 Pythonを使ってグラフを書いたり、Pysideを使って、GUIソフトを作ってみたりします。 </itunes:summary>
    <itunes:keywords>Python, numpy, scipy, PySide, pyqtgraph, matplotlib, FIR, noise filter, signal processing, FFT, programming</itunes:keywords>
    
    <itunes:author>yuchan</itunes:author>
    <itunes:owner>    
       <itunes:name></itunes:name>
       <itunes:email></itunes:email>
    </itunes:owner>
        <itunes:explicit>no</itunes:explicit>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/189023969.html</link>
      <title>Powershellで、カレンダーから選択した範囲内の日付を表示</title>
      <pubDate>Mon, 27 Sep 2021 05:14:52 +0900</pubDate>
      <description>書きかけだけどメモとして。Add-Type -AssemblyName System.Windows.FormsAdd-Type -AssemblyName System.Drawing$form = New-Object Windows.Forms.Form -Property @{&amp;nbsp; &amp;nbsp; StartPosition = [Windows.Forms.FormStartPosition]::CenterScreen&amp;nbsp; &amp;nbsp; Size&amp;n..</description>
            <content:encoded><![CDATA[
書きかけだけどメモとして。<br /><div><div>Add-Type -AssemblyName System.Windows.Forms</div><div>Add-Type -AssemblyName System.Drawing</div><br /><div>$form = New-Object Windows.Forms.Form -Property @{</div><div>&nbsp; &nbsp; StartPosition = [Windows.Forms.FormStartPosition]::CenterScreen</div><div>&nbsp; &nbsp; Size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = New-Object Drawing.Size 400, 230</div><div>&nbsp; &nbsp; Text&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 'Shiftキーを押して、解析対象の範囲を選択'</div><div>&nbsp; &nbsp; Topmost&nbsp; &nbsp; &nbsp; &nbsp;= $true</div><div>}</div><br /><br /><div>$calendar = New-Object Windows.Forms.MonthCalendar -Property @{</div><div>&nbsp; &nbsp; ShowTodayCircle&nbsp; &nbsp;= $false</div><div>&nbsp; &nbsp; MaxSelectionCount = 365</div><div>}</div><div>$form.Controls.Add($calendar)</div><br /><br /><div>$okButton = New-Object Windows.Forms.Button -Property @{</div><div>&nbsp; &nbsp; Location&nbsp; &nbsp; &nbsp;= New-Object Drawing.Point 38, 165</div><div>&nbsp; &nbsp; Size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= New-Object Drawing.Size 75, 23</div><div>&nbsp; &nbsp; Text&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'OK'</div><div>&nbsp; &nbsp; DialogResult = [Windows.Forms.DialogResult]::OK</div><div>}</div><br /><div>$form.AcceptButton = $okButton</div><div>$form.Controls.Add($okButton)</div><br /><br /><div>$cancelButton = New-Object Windows.Forms.Button -Property @{</div><div>&nbsp; &nbsp; Location&nbsp; &nbsp; &nbsp;= New-Object Drawing.Point 113, 165</div><div>&nbsp; &nbsp; Size&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= New-Object Drawing.Size 75, 23</div><div>&nbsp; &nbsp; Text&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 'Cancel'</div><div>&nbsp; &nbsp; DialogResult = [Windows.Forms.DialogResult]::Cancel</div><div>}</div><br /><div>$form.CancelButton = $cancelButton</div><div>$form.Controls.Add($cancelButton)</div><br /><br /><div>$result = $form.ShowDialog()</div><br /><div>if ($result -eq [Windows.Forms.DialogResult]::OK) {</div><div>&nbsp; &nbsp; $date = $calendar.SelectionRange</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; $start = $date.start.ToShortDateString()</div><div>&nbsp; &nbsp; $end= $date.end.ToShortDateString()</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; #$diff= New-TimeSpan -Start $start -End $end</div><div>&nbsp; &nbsp; $diff= $date.end - $date.start</div><div>&nbsp; &nbsp; $diff2= $diff.Days</div><div>&nbsp; &nbsp; Write-Output "Time difference is: $diff2"</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; for ($i=0; $i -lt $diff2+1 ; $i++){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; #Write-Host "Date selected: $($date.ToString())"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Write-Host "Date selected: $($date.start.addDays($i).ToString())"</div><div>&nbsp; &nbsp; &nbsp; &nbsp; #Write-Output ("count:"+$i)</div><div>&nbsp; &nbsp; }</div><div>}</div><br /><br /><div>$wsobj = new-object -comobject wscript.shell</div><div>$result = $wsobj.popup("Finished.")</div></div><br /><a name="more"></a>

]]></content:encoded>
            <category>Windows</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/188682761.html</link>
      <title>おれのjavaが動かなかった</title>
      <pubDate>Tue, 18 May 2021 22:51:02 +0900</pubDate>
      <description>これを読んでハローワールドしたかった（できなかった）JDKインストールして、環境変数指定して、コード書いて、 javacでコンパイルして（クラスファイル作って）、 javaで実行→エラーでできなかった。原因と思われるエラーおれのエラーException in thread “main” java.lang.UnsupportedClassVersionError: hello : Unsupported major.minor version 60.0こういうエラーは、jav..</description>
            <content:encoded><![CDATA[
<h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">これを読んでハローワールドしたかった（できなかった）</h4><p style="margin: 0px 0px 1.2em !important;"><a href="https://www.javadrive.jp/start/install/index1.html">JDKインストールして</a>、<br /><a href="https://www.javadrive.jp/start/install/index4.html">環境変数指定して</a>、<br /><a href="https://nobuo-create.net/java-beginner-2/">コード書いて、 javacでコンパイルして（クラスファイル作って）、 javaで実行</a>→エラーでできなかった。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">原因と思われるエラー</h4><p style="margin: 0px 0px 1.2em !important;">おれのエラー</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">Exception in thread “main” java.lang.UnsupportedClassVersionError: hello : Unsupported major.minor version 60.0</p></blockquote><p style="margin: 0px 0px 1.2em !important;">こういうエラーは、javacとjavaのバージョンが違ったときに出るらしい。<br />実際下記のようにバージョンを確かめるコマンドを打つと、javacとjavaのバージョンが違った。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">&gt;javac -version<br />javac 16.0.1</p><p style="margin: 0px 0px 1.2em !important;">&gt;java -version<br />java version “1.6.0_26”<br />Java(TM) SE Runtime Environment (build 1.6.0_26-b03)<br />Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)</p></blockquote><p style="margin: 0px 0px 1.2em !important;">16と1.6だそうです。違いますね。</p><p style="margin: 0px 0px 1.2em !important;">さっき手動でインストールした（解凍したファイルを移動しただけ）～\jdk-16.0.1\binには、16.0.1.0が入っている。<br />だから、16が正だ。</p><p style="margin: 0px 0px 1.2em !important;">1.6 はどこから出てきたの？</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">原因の発見</h4><p style="margin: 0px 0px 1.2em !important;">コマンドラインで、where javaしたら原因が見つかった。<br /><a href="https://www.atmarkit.co.jp/ait/articles/0904/10/news115.html">whereについてはこのサイト。</a><br />下記のように、コマンドラインでjavaっていったら、2つあるらしい。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">&gt;where java<br />C:\Windows\System32\java.exe<br />C:\pg\jdk-16.0.1\bin\java.exe</p></blockquote><p style="margin: 0px 0px 1.2em !important;">多分上の方を優先して使ってるんだと思う。</p><p style="margin: 0px 0px 1.2em !important;">javacは一つみたい。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">&gt;where javac<br />C:\pg\jdk-16.0.1\bin\javac.exe</p></blockquote><p style="margin: 0px 0px 1.2em !important;">入れた覚えないんだけどな？<br />なんか変な依存関係があって、ある日突然正常に動かなくなったら嫌だな。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">　対処</h4><p style="margin: 0px 0px 1.2em !important;">とりあえず、環境変数の<br />%JAVA_HOME%\binを<br />%SystemRoot%\system32よりも上に持ってきた。<br />上に書いてあるほど、前に書いてあって、優先されるようです。</p><p style="margin: 0px 0px 1.2em !important;"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAaQAAABsCAYAAAAlgMZYAAAPwElEQVR4Ae2dXW4j1xGFuY1ZUBAgWxECKA8B/JKXvOQ1yxr/wB7/yGPYAryF2QGD0vhYJ2fqdjc5JLtJfg301N+purdPF7tIaSTtfv/99/1vv/22f3h44IQDeoAeoAfogdV6YPf8/Lx///79ywb2HDAAAzAAAzCwEgO7+nT09PTEQFrpBrAsDMAADMDARwZ2v/766/7HH39kINERMAADMAADqzKw++WXX/bff/89A2nV28DiMAADMAADu59//nn/7t07BhK9AAMwAAMwsCoDu/r+0XfffcdAWvU2sDgMwAAMwMDup59+2n/77bcMJHoBBmAABmBgVQZ29R8avvnmGwbSqreBxWEABmAABnY//PDD/uuvv2Yg0QswAAMwAAOrMrCr/2H31VdfLR5Iu91uv+T0qyp8Hp0vMYfYqidZua6Pai3BjHLT77VK7865nIxjwwAMwMC9MLCr/2H35ZdfLh5IRYwevHNSJDque0grrtojjPtV23Oku3Rc6l5PemJkKy4pv8uK1SHpsU5XrZHscvDBAAzAwK0y8NkDacnDNB/QsiVH5HrcdceXP8+Kd77Mc1s56XO/78H1DpPry1b9tL2GMEgYgAEYuCcGXgbS27dvj/qEtIQoPXjnpNdyrPzlq0NSfvmUI79wkvIL7zL1Dtthsrbbrqte+sqeOpWHhAEYgIF7YODggTT1APWYk1d+Ha6Xb2S7v/S0s57iwrot7Gg9YR0n3WOuz9UqbHeq7ijf4+gwAAMwcE8MHDyQipx8MM8R5vi5h7TXF3auvudI15qSoxqHxBPrduk6tYfRmvILPyWFRcIADMDArTPw2QOpe5gmaYXR4Xr50hZOsazv8SmM6kouydNajvV817V2h1WdTjre9aztMXQYgAEYuAcGjh5IeoBKOlnpK1s+6S49t/QupvzECu9SmC5HtTt85/Mari/B5lqer9ic1LUgYQAGYODWGfhzIL1582bRteoBKrBsl4qVLH8e8kl6PH1lpy/xwiROfse7nviKpU+2pPLLdt/Ill9S+S49VjoHDMAADNwjAwcPJCdJD9KUjkndH7iuJ67sQ+t6vZHu62R92Y7xfcjf4dxXeuZ5vKujnMwTFgkDMAADt87AZw0kJycfqB4rfeqBnLkd1mt0eK03ylXcpddx/5Q+VV/1XHZ61Zd/bq2pODEYgAEYuCUGTjaQbokUrgUGYAAGYODyDLwMpHq3vvR7SJffIivCAAzAAAzcAwO7Gkb1mxoYSPdwu7lGGIABGNguA39+ye7h4WG7u2RnMAADMAADN88AA+nmbzEXCAMwAAPXwQAD6TruE7uEARiAgZtngIF087eYC4QBGICB62CAgXQd94ldwgAMwMDNM8BAuvlbzAXCAAzAwHUwwEC6jvvELmEABmDg5hn4v4H04cOHPScc0AP0AD1AD6zRAwwkhjBvQugBeoAe2EQPMJBoxE004hrvxliTTwH0wLZ6gIHEQGIg0QP0AD2wiR5gINGIm2hE3qlu650q94P7sUYP7B7/+a/93//xxf4vf/0bDyaGEz1AD9AD9MBqPbB7fn7ePz097R8fH1fbxBqTmDV5B0gP0AP0wLZ6gIHEuyHeiNAD9AA9sIkeYCDRiJtoRN6pbuudKveD+7FGDzCQGEgMJHqAHqAHNtEDDCQacRONuMa7MdbkUwA9sK0eYCAxkBhI9AA9QA9sogcYSDTiJhqRd6rbeqfK/eB+rNEDDCQGEgOJHqAH6IFN9MBut9vt6+TnkHhHtMY7Itak7+gBekA9wCck3hlt4p2RGhLJw4keuN8eePmExG9quN8G4MXPvacH6IGt9MDLJyS+ZEdDbqUh2Qe9SA/cbw/wJTu+ZMeX7OgBeoAe2EQPnGUg/fs//91zwgE9QA/QA/RA9sDUJ+CzDaQ9BwzAAAzAAAwYAzWcNjOQdl+833PCAT1AD9AD99cDNZcYSAxB3gTQA/QAPbB6DywaSOf4wdiagt3Bu6L7e1fEPeee0wP0QPXAooF0jr8Yy0CiAXkI0QP0AD3gPcBA4mP66h/TvSHReUDRA/fbA1cxkF4+x/3xT9esFXK/bM+Tz3Fb10f792tx/ZDryTzZkofUOiW21q+jq/lHqI11+M43qu3YJRjhtSeXirmcixfWD88d6Y4vvcN1fs/rcvDd70BY+95Xb276PzXkCyrtItB9Iz1xaxO/ZH2/lhF+CabL9byR3uWd21d7qaNb549QG+vwx/pG68/VG+W5f+oaHDe1VlcjfbK7mp1vaj1iDKhL9UD15mYH0iEvHGEli0DXO/tSJB+7Tu6/q7ME0+WVT7mS7hvlnNv/sqlmIGmPkufcx7FrjPLSn/ahvHf5oxqJTfucPFKbQXZoD1R/XuVAyhdW2XU4AVO2YpKV54fXyVjmKC7Z1XGf8t2X66nWnF+1hBvVlF841e/yhVGOpOd4nuKSyk+852RMOcJITvm1nqSwWdtruZ445TvGdcVHcoRNf9q5jy7ua47inT99ZfvhddEZIGv3QPXm1Q8kf4FJL2LrcILddtwS7NI6UzjF5tZO3BQ+r0m5JRWTzNgLwP7xnE73Oq5nXdmJcdt1X0t+yayV/ox7rbnYXK1RXHVdjrCdf4mvw2i9Uazzp2/O1hpIhtMaPVD9OTuQ3r17t3/79u3+4eFh8lc6TP26h4zVot3hJOSLx2Odnvis7zkddhSfwmasavihmombs1VH+S49N/Wy/VCd8nkN6el323XVUV7ahdUhTNnSp/Ce5znSJbOGbM+Xr6TOUb77hVV+F9M6o5jXcD3xaWvNLqdbs8vvanS+zE3b94D+2kNwcRkuqh+vfiDVReTRvRi9qQq/1J7CLo1N4UZ7zRzt1/0jXViXiS3bj9xHxUb5jnXcSHd86qM1VEsy85b4l+bkHqp2He4f6XO4jKede+xsX7vLH+Ukds72ddAv8xCG51eeqz83PZBGL6D0dy/IDqObn7Ep22Ol17GkzlJct/eRL/1Ta2iPLh2ftdJeinXclD6KnWJ/o9rlr0NrjHTFnYOPma+5jnHda8rvvkN134Pquez21fm6Or6XLu7roL8+KOHiMlxUf252IOkFoxebv5hcV7OkL23hVNdt+SqnjlFMOMUT+zH79d8pnGJZU/6s3fkT87ry6zV0vq5W7qOrrTzHev0uRz5J1fA890n3NeTzGp7vfuXJJym/aslWHfmn8MK4dLz86dMa7ne98vxQnZF0rPQOW7H0C9/FEot9mQcxPH/kuXpy0wNpizeKF/JxL9K1eFtr3Uv3bl1nHZdel/WOez3A26e8Vf8ykOwb4EuahBf9p420Zd64X8fdryX3FAzcnrIHGEgLhlGR5Mcpb8At13LOSr/Uta617qWuj3UYArfaA/Xa5RPSgqF0qw3AdfFwowfoga30wOKBVH8T6c2bNyf/OaT8+STsDyfjGC7hkh6gB66pBw4aSJf4wdj8cgs2DMAADMDA/TCw6Et29QmJgXQ/TcGVwgAMwMAaDDCQ1mCdNWEABmAABj5hgIH0CSU4YAAGYAAG1mCAgbQG66wJAzAAAzDwCQOLBtKlftu3766+b6Uz/W6XXrg8luZ2+V1u1pc9Wltxl6or2cXcJz3xsiUTV34/ltqJm6rhMXQYgAEYOAUDmxxI/mAc6X7xjpG/fCO/MJKJG+UK7zJzK5a+rl760s41vKbrwrlvpB+DVQ4SBmAABs7NwE0OJD2QJZ3E9I3s9HsN1ztc+tJWvvtLdzsxHnM9cWV73HVhHeNx1x2LDgMwAAOXYGCTA6kuvB6OOmWPCMkHqduud3Wm4hnr1u8w6UtbddwvXTIx7ndduJLl1ynb4647Tn7VVUx21vK4Y1QHCQMwAAPHMLDZgeQXM/fQy7jbrqum+1yvuNuuKzdlYbrTcaM67pcuqXzZkuUv3U9hXTre/V2+sKopvPzK6fwZEwYJAzAAA4cyMDuQnp+f909PT/vHx8eT/VqbWvSQQw9GPTBlq4bbwnSx9HlexZbkqoZk1lAdxTtbMc/t9M43VU91HVM1dHrcMfL7ehn3mOuJUy0kDMAADBzKwOYHkh5+knWBrqddse50YpQvqViXlxhhJbt4+tLuch0jXbLwI121XAor2eVXzM/EpD2qlbiyOWAABmDgGAZuciAlEf4wVUwPY9klRzjHpL4kZ7SW57re7cXjrud+PNdxrisnfVO2x1z39VQXCQMwAAPHMLDpgdQ9+Monv+t18fInEZ0/fWmrxsg/Fe9yypenapTMnCk76zjWddUV3tdTzH3CSWZMdreGYkgYgAEYOJaBTQ+kYy+KPBiAARiAgetjgIG08J7pU4PLhanAYAAGYAAGFjDAQFpAEhAYgAEYgIHzM8BAOj/HrAADMAADMLCAgdmBpC9R8SfM+XPI1/TnkNkr/UoPXFcP1LyaHUj6wdhzDKQFAxMIDMAADMDAnTAwO5DO+QnpTjjmMmEABmAABhYwMDuQ+IS0gEUgMAADMAADn80AA+mzKaQADMAADMDAKRiYHUh8ye4UNFMDBmAABmBgjoHZgaQv2V36t31rEJb0I+2KjbCed0nd99Pt9xR78TW8Xq43Z3vumrpfj+955F9zr6wNAzBwHgY2OZDygaRLd/+UT7Glsqu7NLfDZb20u5w5n9dYoqveCKv4sdLrHltjlOe1R/ooFz8MwMD1MsBAan6x6efeTn+IVq20j6nvNZbovobwkh47Vj9lrdzDVO2pWNbBhgEYuC4GNjmQisJ68OiU3VHrGMW7h5b7PEe6pNeY8lWsDmFky6c6I1t5jhM2Y7IlO1zFRofnOcb9Xb77Eiu7w4x88ne5uS+3pStfNhIGYOC2GNjsQHKa5x5EesCNcjzfdeHTN7LdX3raXk9xx1R8yj4kprW6mhnzvWgNycTK9rjrXbx8iZEtKUzaqtfFPaZ4+rBhAAZuh4GrGkj1MNPZ3YLRwy79bledzi6fnyOc70N1JA/JmcN6TV/T83K/jst8YUcYx89htQfhJOUfrdHFO5/X81roMAADt8XA5gdSPYzqkEw9b4dwKUe4rp5yp3Km8jLfbdezxiEx7U05kl3Nivmp3A6bvjms4r6+fF2txKWtXPkl5UfCAAzcLgM3O5DqltXDbOqBppikbnPaI3/iZEt2eaeKZW2v63riZLt0fOluO650xSQVT3vkT1zavkbqqomEARi4TQY2PZDyYVW2Tt0O2ZLyl5zyVcyPxMp2nOuqnzU6f/q62qqzJOZY6VpD+e5XzH3ClfRD/s43h1Wu41yvmiO7yxXeY5nv+0SHARi4bgY2PZA+l1oeXoczCGeHc0YGDMDAaRhgIJ2Gx5upwkC6mVvJhcDA1TFwkwOpHqo8WA/rRTg7jC/QMAADp2dg8UDiD/SdnnwqwgAMwAAMvDIwN5D+B2XcGSMzI0XZAAAAAElFTkSuQmCC" alt="" /></p><p style="margin: 0px 0px 1.2em !important;">下記のように、コマンドラインでjavaと入力したら、16が使えるようになった！</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">&gt;where java<br />C:\pg\jdk-16.0.1\bin\java.exe<br />C:\Windows\System32\java.exe</p><p style="margin: 0px 0px 1.2em !important;">&gt;java -version<br />openjdk version “16.0.1” 2021-04-20<br />OpenJDK Runtime Environment (build 16.0.1+9-24)<br />OpenJDK 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)</p></blockquote><p style="margin: 0px 0px 1.2em !important;">…Androidアプリを作りたくて、Android Studioの勉強の前に、JDKでお勉強してるんだが…<br />JDKを導入して、環境変数変えたけど…<br />Android Studioのjava.exeとか、javac.exeとかに影響しないのかな…<br />java.exeも、javac.exeもどうやら、C:\Program Files\Android\Android Studio\jre\binに入っているらしいので、androis studioはそれを使っているんだろうか？<br />android studioは、コマンドラインでjavaと打って起動するjava（system32に入っているやつとか）を使ってないのかな？。そもそもsystem32にはいつ何で入ってたんだろう？</p><h4 id="hello-world-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">Hello worldできた。</h4><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">&gt;java hello<br />Hello.</p></blockquote><a name="more"></a>

]]></content:encoded>
            <category>java</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/188261788.html</link>
      <title>LTSpiceの素子の値を経時変化 三角波も作った。</title>
      <pubDate>Tue, 29 Dec 2020 17:00:00 +0900</pubDate>
      <description>抵抗値Rの経時変化電気回路シミュレーターのLTSpiceを使って、時間が経つと電気抵抗が上がったり下がったりする素子を作りたい。操作すると抵抗値が変化する可変抵抗とかではない。時間が変数となって、値が上がり下がりする抵抗値を入れたかったのだ。検索したら見つけたページ時間が経つにつれて上がる抵抗は、抵抗Rを、変数（時間time）を使って式で表す。valueにR=10000-100*timeと入力すれば、10kohmから、1秒ごとに100ohm減っていく抵抗を表現できる。R=を忘..</description>
            <content:encoded><![CDATA[
<h3 id="-r-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">抵抗値Rの経時変化</h3><p style="margin: 0px 0px 1.2em !important;">電気回路シミュレーターのLTSpiceを使って、時間が経つと電気抵抗が上がったり下がったりする素子を作りたい。<br />操作すると抵抗値が変化する可変抵抗とかではない。<br />時間が変数となって、値が上がり下がりする抵抗値を入れたかったのだ。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://electronics.stackexchange.com/questions/3623/ltspice-vary-a-resistors-value-over-time">検索したら見つけたページ</a></p><p style="margin: 0px 0px 1.2em !important;">時間が経つにつれて上がる抵抗は、<br />抵抗Rを、変数（時間time）を使って式で表す。</p><p style="margin: 0px 0px 1.2em !important;">valueに</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">R=10000-100*time</code></pre><p style="margin: 0px 0px 1.2em !important;">と入力すれば、10kohmから、1秒ごとに100ohm減っていく抵抗を表現できる。</p><p style="margin: 0px 0px 1.2em !important;"><span style="text-decoration: underline;"><strong>R=を忘れたら動かなかった気がする。</strong></span></p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_Rtime.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_Rtime-thumbnail2.png" alt="LTSpice_schematic_Rtime.png" width="196" height="320" border="0" /></a></p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">R=10000+100*time</code></pre><p style="margin: 0px 0px 1.2em !important;">と入力すれば、10kohmから、1秒ごとに100ohm増えていく抵抗を表現。</p><h3 id="-c-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">静電容量Cの経時変化</h3><p style="margin: 0px 0px 1.2em !important;">さっきのコンデンサ版。<br />こちらもやはり、LTSpiceを使って、時間が経つと静電容量が上がったり下がったりする素子を作りたい。<br />時間が変数となって、値が上がり下がりする静電容量を入れたかったのだ。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://electronics.stackexchange.com/questions/161385/ltspice-vary-a-capacitors-value-over-time">こちらも上のページと同じサイトで、解決策を見つけた。</a></p><p style="margin: 0px 0px 1.2em !important;">なぜかCを直接入力できず、電荷量で指定することになる。</p><p style="margin: 0px 0px 1.2em !important;">時間が経つにつれて上がるコンデンサ（キャパシタ）は、 電荷量Qを、変数（電圧xと時間time）で表すことになる。<br />電圧xを入れないと、静電容量っぽい振舞ではなくなる。<br />Q=CV</p><p style="margin: 0px 0px 1.2em !important;">普通の1uFのコンデンサを作りたければ</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">Q=1u*x</code></pre><p style="margin: 0px 0px 1.2em !important;">xの所には電圧が入るので、入れ忘れてはいけない。</p><p style="margin: 0px 0px 1.2em !important;">Q=静電容量*xと書く感じ。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">Q=1u*x+1n*time*x</code></pre><p style="margin: 0px 0px 1.2em !important;">一秒あたり1 nFずつ容量が増えていく。<br />Q=CV<br />図では2 Vを印加しているので、一秒ごとに2nクーロン電荷が多くたまるようになるから、実質2 nAの電流が流れる感じになっている。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_Ctime.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_Ctime-thumbnail2.png" alt="LTSpice_schematic_Ctime.png" width="196" height="320" border="0" /></a></p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">三角波を式で書く</h3><p style="margin: 0px 0px 1.2em !important;">三角波についてはPWLを使うのがお約束らしいが、だめだ。<br />GUIを使って値を指定するのが気に入らない。（大変。）</p><p style="margin: 0px 0px 1.2em !important;">式を使って書く。（こっちの方が大変だった…）</p><p style="margin: 0px 0px 1.2em !important;">結論を先に書くと、</p><p style="margin: 0px 0px 1.2em !important;"><strong>componetから電圧源を選択するとき、bvを使用して（voltageではだめ）、</strong></p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">V=(abs(int(time)-time+1/2)-0.25)*4</code></pre><p style="margin: 0px 0px 1.2em !important;">と書くと、三角波になる。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_bihaviorV28triangle29.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/LTSpice_schematic_bihaviorV28triangle29-thumbnail2.png" alt="LTSpice_schematic_bihaviorV(triangle).png" width="196" height="320" border="0" /></a></p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">入力した式の意味</h4><p style="margin: 0px 0px 1.2em !important;">式を作る作戦</p><ol style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">int(time)として階段関数を作る。</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">そこに-timeして鋸歯状波を作る（-側にオフセットがかかっている。）</p></li><li style="margin: 0.5em 0px;">+1/4して（オフセットを引いて）0を中心とした鋸歯状はを作る。</li><li style="margin: 0.5em 0px;">絶対値をとると、三角波ができる（＋側にオフセットがかかっている。波高は0.25）</li><li style="margin: 0.5em 0px;">*4して波高を調節。</li></ol><p style="margin: 0px 0px 1.2em !important;">手順1~2を図にすると、</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/int_slope_sawtooth.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/int_slope_sawtooth-thumbnail2.png" alt="int_slope_sawtooth.png" width="320" height="240" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">手順3~4を図にすると、</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/abs_triangle.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/abs_triangle-thumbnail2.png" alt="abs_triangle.png" width="320" height="240" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">最後の2枚の図は、pythonで書いてみた。</p><p style="margin: 0px 0px 1.2em !important;">一応コードを載せておく。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">import numpy as np<br />import matplotlib.pyplot as plt<br /><br /><br />x=np.linspace(0,4,1001)<br /><br />y1= x.astype(np.int32)<br />y2=x<br />y3=y1-y2<br /><br /><br />f,(ax1,ax2,ax3) = plt.subplots(3,1)<br /><br />ax1.axhline(y=0, xmin=-10, xmax=10, c="k")<br />ax2.axhline(y=0, xmin=-10, xmax=10, c="k")<br />ax3.axhline(y=0, xmin=-10, xmax=10, c="k")<br /><br />ax1.plot(x, y1)<br />ax2.plot(x, y2)<br />ax3.plot(x, y3)<br /><br />ax1.set_ylim(-4,4)<br />ax2.set_ylim(-4,4)<br />ax3.set_ylim(-4,4)<br /><br />plt.show()<br /><br /><br /><br />f,((ax1,ax2),(ax3,ax4)) = plt.subplots(2,2)<br /><br />y4=y3<br />y5=y3+0.5<br />y6=np.abs(y3)<br />y7=np.abs(y5)<br /><br />ax1.axhline(y=0, xmin=-10, xmax=10, c="k")<br />ax2.axhline(y=0, xmin=-10, xmax=10, c="k")<br />ax3.axhline(y=0, xmin=-10, xmax=10, c="k")<br />ax4.axhline(y=0, xmin=-10, xmax=10, c="k")<br /><br />ax1.plot(x, y4)<br />ax2.plot(x, y5)<br />ax3.plot(x, y6)<br />ax4.plot(x, y7)<br /><br />ax1.set_ylim(-4,4)<br />ax2.set_ylim(-4,4)<br />ax3.set_ylim(-4,4)<br />ax4.set_ylim(-4,4)<br /><br />plt.show()</code></pre><p style="margin: 0px 0px 1.2em !important;"><a href="http://naga-tsuzuki.sblo.jp/category/4383549-1.html">LTSpiceを使って矩形波などを書く方法については、以前書いていた。（2016年！4年も前からマイナー記事を書き続けている。）</a></p><br /><p style="margin: 0px 0px 1.2em !important;">今年は新型コロナ一色の年だったが、私生活的には意外といい年だったと思う。</p><a name="more"></a>

]]></content:encoded>
            <category>LTspice</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/188070082.html</link>
      <title>新らしい生活が始まる。</title>
      <pubDate>Wed, 28 Oct 2020 10:46:27 +0900</pubDate>
      <description>すごいことになった。大変喜ばしいことが起こった。プログラムのテクニック的なことは一旦わきに置いておいて、そっちの勉強をしている。</description>
            <content:encoded><![CDATA[
<div>すごいことになった。</div><div>大変喜ばしいことが起こった。</div><br /><div>プログラムのテクニック的なことは一旦わきに置いておいて、そっちの勉強をしている。</div><a name="more"></a><div><br /></div>

]]></content:encoded>
            <category>日記</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187862108.html</link>
      <title>書くことが思い付かない</title>
      <pubDate>Mon, 31 Aug 2020 21:06:50 +0900</pubDate>
      <description>何とかして書かなければ。長続き目指しブログでなくなってしまう。今月はデートしまくった。多分生まれてはじめて観覧車に乗ったし。一緒にお昼寝とかしたりした。ペアリングとか探してみたりした。美味しいものを食べに行ったり、きれいなものを探しに行ったりした。デートしかしてない。だから書くことが思い付かない。ちょっと悲しい。昔は、休みの日は一日中家にこもって、延々動画を作っていた。外に出るのは買い物と、ジムでのちょっとした運動だけだった。もう動画は作ってない。最近は動画を作ろうと思わなく..</description>
            <content:encoded><![CDATA[
何とかして書かなければ。<div>長続き目指しブログでなくなってしまう。</div><br /><div>今月はデートしまくった。</div><br /><div>多分生まれてはじめて観覧車に乗ったし。</div><div>一緒にお昼寝とかしたりした。</div><div>ペアリングとか探してみたりした。</div><div>美味しいものを食べに行ったり、きれいなものを探しに行ったりした。</div><br /><div><div>デートしかしてない。</div></div><div>だから書くことが思い付かない。</div><div>ちょっと悲しい。</div><br /><div>昔は、休みの日は一日中家にこもって、延々動画を作っていた。</div><div>外に出るのは買い物と、ジムでのちょっとした運動だけだった。</div><br /><div><div>もう動画は作ってない。</div><div>最近は動画を作ろうと思わなくなった。</div></div><br /><div>2DDFTで、やりたいこと全部やった感あるし。</div><div>あとはフィルターか。<span>フィルターやってないか。</span></div><div>他にやりたいこと何かあるかなぁ。</div><br /><div>来月こそは、なんか小手先のテクニックっぽいことを書くつもり。<br></div><a name="more"></a>

]]></content:encoded>
            <category>日記</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187855118.html</link>
      <title>テスト</title>
      <pubDate>Sat, 29 Aug 2020 18:37:49 +0900</pubDate>
      <description>テスト</description>
            <content:encoded><![CDATA[
テスト<a name="more"></a>

]]></content:encoded>
            <category>日記</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187743489.html</link>
      <title>恋人ができた</title>
      <pubDate>Mon, 27 Jul 2020 22:32:03 +0900</pubDate>
      <description>詳しい日時は忘れたが、恋人ができた。恋人ができてうれしいが、以前のように、「家に帰ったらPCに向かう」という習慣がなくなってしまった。一長一短。ほかにも色々変わった。スマホに頑なに入れなかったLINEも、彼女がやってるという理由で、あっさり入れた。休日はプログラムなんかしない、BLENDERで3Dもやらなくなってしまった。これからは趣味のプログラミングとかをしなくなるんだろうか。ぐぬぬ...</description>
            <content:encoded><![CDATA[
<div>詳しい日時は忘れたが、恋人ができた。</div><br /><div>恋人ができてうれしいが、</div><div>以前のように、「家に帰ったらPCに向かう」という習慣がなくなってしまった。</div><div>一長一短。</div><br /><div>ほかにも色々変わった。</div><div>スマホに頑なに入れなかったLINEも、彼女がやってるという理由で、あっさり入れた。</div><div>休日はプログラムなんかしない、BLENDERで3Dもやらなくなってしまった。</div><div>これからは趣味のプログラミングとかをしなくなるんだろうか。</div><br /><div>ぐぬぬ...</div><a name="more"></a>

]]></content:encoded>
            <category>日記</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187591222.html</link>
      <title>Intel Realsenseのはじめた</title>
      <pubDate>Sat, 13 Jun 2020 07:00:00 +0900</pubDate>
      <description>Windows10でintel realsense D435iをはじめた。Intel RealSense Viewerを使用pyrealsenseのインストールの二つをやって手間取った。2個目はいろいろやって、結局うまくいった。原因はPythonのバージョン？実行した順に書いていった。Intel RealSense Viewerが起動しない。そもそもIntel RealSense Viewerが起動しない。下記エラーメッセージが出て（しかも全文表示されない）、はじまらない。B..</description>
            <content:encoded><![CDATA[
<p style="margin: 0px 0px 1.2em !important;">Windows10でintel realsense D435iをはじめた。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Intel RealSense Viewerを使用</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">pyrealsenseのインストール</p></li></ul><p style="margin: 0px 0px 1.2em !important;">の二つをやって手間取った。<br />2個目はいろいろやって、結局うまくいった。<br />原因はPythonのバージョン？</p><p style="margin: 0px 0px 1.2em !important;">実行した順に書いていった。</p><h3 id="intel-realsense-viewer-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Intel RealSense Viewerが起動しない。</h3><p style="margin: 0px 0px 1.2em !important;">そもそもIntel RealSense Viewerが起動しない。<br />下記エラーメッセージが出て（しかも全文表示されない）、はじまらない。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">Backend in rs2_create_device(info_list:0000026F257C1900, index:0):<br />MFCreateDeviceSource(_device_attrs, &amp;_source) returned: HResult 0x80070005: “アクセスが拒否されました。”</p></blockquote><p style="margin: 0px 0px 1.2em !important;">→win10のカメラのプライバシー設定が必要。<br />windows updateか何かのはずみで、Win10のカメラのプライバシー設定が入るらしい。<br />設定＞プライバシー＞カメラあたりで設定を変更してみる。</p><p style="margin: 0px 0px 1.2em !important;">「Intel RealSense Viewer起動しない問題」はこれで解決した。</p><h3 id="pip-install-pyrealsense-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">pip install pyrealsenseが通らない。</h3><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">pip install pyrealsense</p></blockquote><p style="margin: 0px 0px 1.2em !important;">が通らない。結局通らなかったので諦めた。原因は、python3.8だったせい？</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://pypi.org/project/pyrealsense/">これを読んで</a>下記条件を満たしたのに通らなかった。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">Cythonのインストール</li><li style="margin: 0.5em 0px;">numpyのインストール</li><li style="margin: 0.5em 0px;"><a href="https://github.com/eliben/pycparser">pycparser</a> のインストール</li><li style="margin: 0.5em 0px;">wheelのインストール</li><li style="margin: 0.5em 0px;">環境変数PYRS_INCLUDES を追加。rs.hのあるフォルダに通す。</li><li style="margin: 0.5em 0px;">環境変数 PYRS_LIBS を設定。</li></ul><p style="margin: 0px 0px 1.2em !important;">結論</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">pip install pyrealsense</p></blockquote><p style="margin: 0px 0px 1.2em !important;">は通らない。</p><h3 id="python-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">pythonのバージョンが悪いのかも…</h3><p style="margin: 0px 0px 1.2em !important;">上記設定はそのままで、<br />pipで自動でお任せしないで、.whlを自分でダウンロードしてpipした。<br />ついでにpythonのバージョンを3.7にした。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://pypi.org/project/pyrealsense2/#files">https://pypi.org/project/pyrealsense2/#files</a> から、whlをダウンロード。現段階で、このサイトのリストにPython3.7までのファイルしかなかった。<br />自分はPython3.8を使っていた。<br /><span style="text-decoration: underline;"><strong>だからPython3.7にインストールしなおした</strong></span></p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">pip install （先ほどダウンロードした.whlのパス）</p></blockquote><p style="margin: 0px 0px 1.2em !important;">Windowsなら、ファイルブラウザ上でShift＋右クリックして「パスをコピー（A）」を押せば、クリップボードに絶対参照でパスがコピーされる。</p><p style="margin: 0px 0px 1.2em !important;">結論</p><p style="margin: 0px 0px 1.2em !important;">pyrealsenseがインストールできて解決。</p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">まとめ</h3><p style="margin: 0px 0px 1.2em !important;">Python のバージョン（3.8）が悪かったのか、<br />pip install pyrealsenseじゃダメだったのか。<br />不明。</p><p style="margin: 0px 0px 1.2em !important;">もしかすると、python3.7にするだけでpip install pyrealsenseは通ったのかも。</p><p style="margin: 0px 0px 1.2em !important;">実験上手な奴は、条件を一つだけ変える。<br />実験下手な奴は、条件をたくさん変える。</p><p style="margin: 0px 0px 1.2em !important;">僕は断然後者です。</p><a name="more"></a>

]]></content:encoded>
            <category>realsense</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187470598.html</link>
      <title>YouTubeのBlender公式チュートリアル（英語）で出てきた機能について、ひたすらメモする</title>
      <pubDate>Sat, 09 May 2020 07:00:00 +0900</pubDate>
      <description>このページの目的Blenderを勉強する３DCGを作りたくなった。PS4のDetroit become humanをプレイして、リアルできれいなCGが作りたくなった。だからBlenderを勉強することにした。ちょっと前はレンダリング方程式を勉強したくなったが、今は休止中。欲求・目的・目標欲求:全部できるようになりたいこれがあいまいだと、投げ出しそう。モデリング、レンダリング、ライティング、UVいろいろ分野があるが、全部勉強していきたい。だから、公式チュートリアル的なのをこなし..</description>
            <content:encoded><![CDATA[
<div><h2 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid #eeeeee; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">このページの目的</span></h2><h3 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Blenderを勉強する</span></h3><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">３DCGを作りたくなった。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">PS4のDetroit become humanをプレイして、リアルできれいなCGが作りたくなった。</span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">だからBlenderを勉強することにした。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">ちょっと前はレンダリング方程式を勉強したくなったが、今は休止中。</span></p><h3 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">欲求・目的・目標</span></h3><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">欲求:全部できるようになりたい</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">これがあいまいだと、投げ出しそう。</span></p><ul class="ul-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" data-mark="-"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">モデリング、レンダリング、ライティング、UVいろいろ分野があるが、全部勉強していきたい。</span></p></li></ul><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">だから、</span></p><ul class="ul-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" data-mark="-"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">公式チュートリアル的なのをこなしたい。</span></p><br /></li></ul><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">目的:公式チュートリアルのトレース</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">YouTubeのBlenderの公式チュートリアルが英語なので、トレースし、日本語ブログ形式で解説する。</span></p><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">目標:記事10個</span></h4><ul class="ul-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" data-mark="-"><li class="md-list-item md-focus-container" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p md-focus" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">ノック形式で10個こなす。</span></p></li></ul></div><a name="more"></a>

]]></content:encoded>
            <category>Blender</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187397989.html</link>
      <title>中速フーリエ変換 ~離散フーリエ変換よりは速い~</title>
      <pubDate>Sun, 19 Apr 2020 19:00:00 +0900</pubDate>
      <description>正直遅い高速フーリエ変換より遅い。でも、離散フーリエ変換より早い。だから、「中速フーリエ変換」と名付けとく。かかる時間高速フーリエ変換&amp;lt;&amp;lt;&amp;lt;中速フーリエ変換&amp;lt;離散フーリエ変換こんな感じ。原理離散フーリエ変換では、各周波数の三角関数と、入力信号の積の総和計算している。三角関数の周期性を考慮して、入力信号f(x)を加法定理でまとめてから計算する。→かけ算の数が減り早くなる。はず。最後のほうに、exp(-ikn/N)をNを何個か振った状態で載せておくので、に..</description>
            <content:encoded><![CDATA[
<h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">正直遅い</h3><p style="margin: 0px 0px 1.2em !important;">高速フーリエ変換より遅い。<br />でも、離散フーリエ変換より早い。<br />だから、「中速フーリエ変換」と名付けとく。</p><p style="margin: 0px 0px 1.2em !important;">かかる時間<br />高速フーリエ変換&lt;&lt;&lt;中速フーリエ変換&lt;離散フーリエ変換<br />こんな感じ。</p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">原理</h3><p style="margin: 0px 0px 1.2em !important;">離散フーリエ変換では、各周波数の三角関数と、入力信号の積の総和計算している。</p><p style="margin: 0px 0px 1.2em !important;">三角関数の周期性を考慮して、入力信号f(x)を加法定理でまとめてから計算する。<br />→かけ算の数が減り早くなる。はず。</p><p style="margin: 0px 0px 1.2em !important;">最後のほうに、exp(-ikn/N)をNを何個か振った状態で載せておくので、にらめっこして原理を察してほしい。<br />考え方は、途中まで高速フーリエ変換と一緒なはず。</p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">低速フーリエ変換（普通の離散フーリエ変換）</h3><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-python" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> time<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> numpy <span class="hljs-keyword" style="color: #333333; font-weight: bold;">as</span> np<br />arr = np.random.rand(<span class="hljs-number" style="color: #008080;">1024</span>)<br /><br />start = time.time()<br /><br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> math<br /><br />N = len(arr)<br />W = [[math.e**(-<span class="hljs-number" style="color: #008080;">1j</span>*<span class="hljs-number" style="color: #008080;">2</span>*math.pi*k*i/float(N)) <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(N) ] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> k <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(N) ]<br />out = [sum([arr[i]*W[k][i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(N)]) <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> k <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(N)]<br /><br />elapsed_time = time.time() - start<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">print</span> (<span class="hljs-string" style="color: #dd1144;">"elapsed_time:{0}"</span>.format(elapsed_time) + <span class="hljs-string" style="color: #dd1144;">"[sec]"</span>)<br /><br /></code></pre><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">中速フーリエ変換</h3><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-python" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> time<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> numpy <span class="hljs-keyword" style="color: #333333; font-weight: bold;">as</span> np<br />arr = np.random.rand(<span class="hljs-number" style="color: #008080;">1024</span>)<br /><br />start = time.time()<br /><br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> math<br /><span class="hljs-function"><span class="hljs-keyword" style="color: #333333; font-weight: bold;"><br />def</span> <span class="hljs-title" style="color: #990000; font-weight: bold;">order</span><span class="hljs-params">(Ns)</span>:<br /></span>    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">if</span> len(Ns) == <span class="hljs-number" style="color: #008080;">1</span>:<br />        <span class="hljs-keyword" style="color: #333333; font-weight: bold;">return</span> Ns<br />    N1=Ns[<span class="hljs-number" style="color: #008080;">1</span>::<span class="hljs-number" style="color: #008080;">2</span>]<br />    N2=Ns[<span class="hljs-number" style="color: #008080;">0</span>::<span class="hljs-number" style="color: #008080;">2</span>]<br />    N2 = order(N2)<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">return</span> N1+N2<br /><br />N = len(arr)<br />out = [<span class="hljs-number" style="color: #008080;">0</span>]*len(arr)<span class="hljs-comment" style="color: #999988; font-style: italic;">#np.zeros(10)<br /><br /></span>N0 = range(N)<br />order1 = order(N0)<br /><br />N1 = arr[:len(arr)/<span class="hljs-number" style="color: #008080;">2</span>]<br />N2 = arr[len(arr)/<span class="hljs-number" style="color: #008080;">2</span>:]<br />N3 = [N1[i]-N2[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(N1))]<br />N4 = [N1[i]+N2[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(N1))]<br />N5=[]<br />i1 = <span class="hljs-number" style="color: #008080;">0<br /></span>i2 = <span class="hljs-number" style="color: #008080;">1<br /><br /></span><span class="hljs-keyword" style="color: #333333; font-weight: bold;">while</span> i1 &lt; len(arr):<br />    W = [math.e**(-<span class="hljs-number" style="color: #008080;">1j</span>*<span class="hljs-number" style="color: #008080;">2</span>*math.pi*order1[i1]*i/float(len(arr))) <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(arr)/<span class="hljs-number" style="color: #008080;">2</span>*i2)]<br />    N5.append(sum([N3[i]*W[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(N3))]))<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">if</span> i1==len(arr)-<span class="hljs-number" style="color: #008080;">2</span>:<br />        N5.append(sum(N4))<br />        <span class="hljs-keyword" style="color: #333333; font-weight: bold;">break<br /></span>    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">if</span> order1[i1] &gt; order1[i1+<span class="hljs-number" style="color: #008080;">1</span>]:<br />        N1 = N4[:len(N4)/<span class="hljs-number" style="color: #008080;">2</span>]<br />        N2 = N4[len(N4)/<span class="hljs-number" style="color: #008080;">2</span>:]<br />        N3 = [N1[i]-N2[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(N1))]<br />        N4 = [N1[i]+N2[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(N1))]<br />        i2+=<span class="hljs-number" style="color: #008080;">1<br />    <br /></span>    i1+=<span class="hljs-number" style="color: #008080;">1<br /><br /></span><span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> order1:<br />    out[order1[i]] = N5[i]<br /><br />elapsed_time = time.time() - start<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">print</span> (<span class="hljs-string" style="color: #dd1144;">"elapsed_time:{0}"</span>.format(elapsed_time) + <span class="hljs-string" style="color: #dd1144;">"[sec]"</span>)<br /><br /></code></pre><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">高速フーリエ変換</h3><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-python" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> time<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> numpy <span class="hljs-keyword" style="color: #333333; font-weight: bold;">as</span> np<br />arr = np.random.rand(<span class="hljs-number" style="color: #008080;">1024</span>)<br />start = time.time()<br /><br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">import</span> math<br /><span class="hljs-function"><span class="hljs-keyword" style="color: #333333; font-weight: bold;">def</span> <span class="hljs-title" style="color: #990000; font-weight: bold;">FFT</span><span class="hljs-params">(f)</span>:<br /></span>    N = len(f)<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">if</span> N == <span class="hljs-number" style="color: #008080;">1</span>:<br />        <span class="hljs-keyword" style="color: #333333; font-weight: bold;">return</span> f[<span class="hljs-number" style="color: #008080;">0</span>]<br />    f_even = f[<span class="hljs-number" style="color: #008080;">0</span>:N:<span class="hljs-number" style="color: #008080;">2</span>]<br />    f_odd = f[<span class="hljs-number" style="color: #008080;">1</span>:N:<span class="hljs-number" style="color: #008080;">2</span>]<br />    F_even = FFT(f_even)<br />    F_odd = FFT(f_odd)<br />    W_N = [math.e**(-<span class="hljs-number" style="color: #008080;">1j</span> * (<span class="hljs-number" style="color: #008080;">2</span> * math.pi * i) / float(N)) <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(<span class="hljs-number" style="color: #008080;">0</span>, N // <span class="hljs-number" style="color: #008080;">2</span>)]<br />    F = [<span class="hljs-number" style="color: #008080;">0</span>]*N<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">try</span>:<br />        F[<span class="hljs-number" style="color: #008080;">0</span>:N//<span class="hljs-number" style="color: #008080;">2</span>] = [F_even[j] + [W_N[i] * F_odd[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(W_N))][j] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> j <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(W_N))]<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">except</span> IndexError:<br />        F = [F_even + W_N[<span class="hljs-number" style="color: #008080;">0</span>] * F_odd]<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">try</span>:<br />        F[N//<span class="hljs-number" style="color: #008080;">2</span>:N] = [F_even[j] - [W_N[i] * F_odd[i] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> i <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(W_N))][j] <span class="hljs-keyword" style="color: #333333; font-weight: bold;">for</span> j <span class="hljs-keyword" style="color: #333333; font-weight: bold;">in</span> range(len(W_N))]<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">except</span>  IndexError:<br />        F.append(F_even - W_N[<span class="hljs-number" style="color: #008080;">0</span>] * F_odd)<br />    <span class="hljs-keyword" style="color: #333333; font-weight: bold;">return</span> F<br /><br />a1 = FFT(arr)<br /><br />elapsed_time = time.time() - start<br /><span class="hljs-keyword" style="color: #333333; font-weight: bold;">print</span> (<span class="hljs-string" style="color: #dd1144;">"elapsed_time:{0}"</span>.format(elapsed_time) + <span class="hljs-string" style="color: #dd1144;">"[sec]"</span>)<br /><br /></code></pre><h3 id="n-2-exp-ikn-n-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">N=2の場合のexp(-ikn/N)</h3><p style="margin: 0px 0px 1.2em !important;">左が実数で右が虚数。<br />青丸がサンプル点。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/002-55e4a.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/002-55e4a-thumbnail2.png" alt="002.png" width="180" height="320" border="0" /></a></p><h3 id="n-4-exp-ikn-n-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">N=4の場合のexp(-ikn/N)</h3><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/004-738e1.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/004-738e1-thumbnail2.png" alt="004.png" width="180" height="320" border="0" /></a></p><h3 id="n-8-exp-ikn-n-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">N=8の場合のexp(-ikn/N)</h3><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/008-387d3.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/008-387d3-thumbnail2.png" alt="008.png" width="180" height="320" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">N=16の場合のexp(-ikn/N)</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/016-92c4e.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/016-92c4e-thumbnail2.png" alt="016.png" width="180" height="320" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">おれはいったい、何をやっているのだ。</p><a name="more"></a>

]]></content:encoded>
            <category>python</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187270536.html</link>
      <title>Calculix 20本ノック:11本目: exampleの実行 Contact/Hertz2D</title>
      <pubDate>Sat, 14 Mar 2020 19:00:00 +0900</pubDate>
      <description>10本完了したので、目標を20本に変えてみた。その11本目。Calculixとはフリーの解析ソフト。ccx　ソルバーcgx　プリポスト環境WSLXmingCalculix 2.11gmshgmshの機能を使ってメッシングすることがある。imagimagickhcpyで画像作成するとき、convertするので使う。pip2matplotlibgnuplotノック11本目: exampleの実行 Contact/Hertz2Dデータの入手公式サイトからのリンクで行けるGithub..</description>
            <content:encoded><![CDATA[
<p style="margin: 0px 0px 1.2em !important;">10本完了したので、目標を20本に変えてみた。<br />その11本目。</p><h3 id="calculix-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Calculixとは</h3><p style="margin: 0px 0px 1.2em !important;">フリーの解析ソフト。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ccx　ソルバー</li><li style="margin: 0.5em 0px;">cgx　プリポスト</li></ul><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">環境</h3><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">WSL</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Xming</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Calculix 2.11</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">gmsh</p><p style="margin: 0.5em 0px !important;">gmshの機能を使ってメッシングすることがある。</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">imagimagick</p><p style="margin: 0.5em 0px !important;">hcpyで画像作成するとき、convertするので使う。</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">pip2</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">matplotlib</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">gnuplot</p></li></ul><h3 id="-11-example-contact-hertz2d" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">ノック11本目: exampleの実行 Contact/Hertz2D</h3><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">データの入手</h4><p style="margin: 0px 0px 1.2em !important;"><a href="http://www.calculix.de/">公式サイト</a>からのリンクで行ける<a href="https://github.com/mkraska/CalculiX-Examples/">Githubのexample</a>。</p><p style="margin: 0px 0px 1.2em !important;">下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://github.com/mkraska/CalculiX-Examples/releases">https://github.com/mkraska/CalculiX-Examples/releases</a></p><h3 id="contact" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Contact</h3><h4 id="hertz2d" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">Hertz2D</h4><p style="margin: 0px 0px 1.2em !important;">平面ひずみ要素で、四角と1/4円をぶつけて接触させる。その時の応力分布をみる。<br />強制変位と荷重の2パターンで1/4円を移動させている。</p><h4 id="ccx2-11-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">ccx2.11では正しい結果がでない？</h4><p style="margin: 0px 0px 1.2em !important;">ccx2.11では収束しなかった。（頑張って条件をいじって結果をだしても、READMEのコンターの分布と同じにならなかった。）<br />ccx2.16のwindows版を使ったら、一発で通った。結果はREADMEの結果と同等のものが作れた。</p><p style="margin: 0px 0px 1.2em !important;">READMEにあるmonitor.pyの結果と同じように収束しなかった。<br />このEXAMPLE全体に言えるが、初期設定では収束しないやつとかがある。<br />これもccxのバージョンのせいだと思っている。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">内容</h4><p style="margin: 0px 0px 1.2em !important;">Hertzの接触を、FEMで求める。<br />球体とか円柱が、他の面等に接触した時の応力分布等を表したHertzの式というのがあるらしい。<br />周波数のHertz（Hz）と同じ人が考えたらしい。</p><p style="margin: 0px 0px 1.2em !important;">まずはディレクトリの移動。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-bash" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-built_in" style="color: #0086b3;">cd</span> ~/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/Contact/</code></pre><p style="margin: 0px 0px 1.2em !important;">「~」は、サンプルを回答した場所のアドレス。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">サンプルの実行</h4><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">cgx -b pre.fbd</code></pre><p style="margin: 0px 0px 1.2em !important;">をすると、メッシュ、境界条件などのファイルが出力される。<br />これらのファイルは、.inpで読み込まれて使用する。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">ccx Hertz</code></pre><p style="margin: 0px 0px 1.2em !important;">とすれば、同じ結果が出てくる…はずだった。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">収束しない</h4><p style="margin: 0px 0px 1.2em !important;">STEP1は強制変位で動かしている。<br />STEP2は荷重変位で動かしている。<br />強制変位で動かしたほうが、収束はしやすいそうな。</p><p style="margin: 0px 0px 1.2em !important;">STEP1は収束した。<br />ただ、STEP１はREADMEに書いてあるようなイテレーション回数で、収束しない。<br />STEP2の荷重で動かしているほうは収束しないで終わる。</p><p style="margin: 0px 0px 1.2em !important;">なんで？</p><h4 id="ccx2-11-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">ccx2.11では結果が違う。</h4><p style="margin: 0px 0px 1.2em !important;">終息したSTEP1の結果だけを見てみる。</p><p style="margin: 0px 0px 1.2em !important;">READMEにあるような、対称な応力分布になってくれない。片側の応力が出てこない。<br />接触面で応力が出ているけれども、サンプル画像では、内側で応力が発生していた。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom-8abd3.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom-8abd3-thumbnail2.png" alt="SE_dc-zoom.png" width="320" height="274" border="0" /></a></p><h3 id="ccx2-16-windows-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">ccx2.16(windows版)を使ってみる。</h3><p style="margin: 0px 0px 1.2em !important;"><a href="https://github.com/mkraska/CalculiX-Examples/blob/master/Contact/Hertz_2D/README.md">READMEと同じ結果が出てくる。</a><br />きっとこれが正しい結果なのだろう。同じ結果なので載せない。</p><p style="margin: 0px 0px 1.2em !important;">ccxのバージョンは新しいのに限る。<br />以下の「余計なこと」は、すべてccx2.16でやった。</p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">いろいろやってみる。</h3><h4 id="master-slave-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">master slaveを入れ替えてみた</h4><p style="margin: 0px 0px 1.2em !important;">下記のようにマスタースレーブをひっくり返した。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*CONTACT PAIR, INTERACTION=contact, TYPE=SURFACE TO SURFACE<br />Ssblk,Sscyl</code></pre><p style="margin: 0px 0px 1.2em !important;">結果は変わらなかった。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom-thumbnail2.png" alt="SE_dc-zoom.png" width="320" height="274" border="0" /></a></p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">平面応力要素でやった（デフォルトは平面ひずみ要素）</h4><p style="margin: 0px 0px 1.2em !important;">平面ひずみだから意味のある解析なのですが、あえて平面応力でやってみました。</p><p style="margin: 0px 0px 1.2em !important;">ファイルall.mshの</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*ELEMENT, TYPE=CPE8, ELSET=Eall</code></pre><p style="margin: 0px 0px 1.2em !important;">を</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*ELEMENT, TYPE=CPS8, ELSET=Eall</code></pre><p style="margin: 0px 0px 1.2em !important;">に書き換えた。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom-8d7de.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/SE_dc-zoom-8d7de-thumbnail2.png" alt="SE_dc-zoom.png" width="320" height="274" border="0" /></a></p><h3 id="cgx-windows-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">cgx Windows版をメインで使わない理由</h3><p style="margin: 0px 0px 1.2em !important;">windowsで最新版(2.16)が使えるのに、わざわざlinux上の2.11を使う理由は、</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">cgxのGUIのメニューが一部使用できない箇所があった<br />（常にではなく、frdのロード時（？）など限られたタイミングで起こる。）。<br />下記画像、<strong>（左）</strong>WSL（Xming）のcgx2.11の右クリックメニュー<strong>（右）</strong>windows版のcgx2.16の右クリックメニュー<br />windows版ではdatasetsが出ない。載せていないが、矢印を展開した先でも似たような現象が散見された。</li></ul><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/windowsE78988E381A8E381AEE98195E38184.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/windowsE78988E381A8E381AEE98195E38184-thumbnail2.png" alt="windows版との違い.png" width="118" height="320" border="0" /></a><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/windowsE78988E381A8E381AEE98195E381842.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/windowsE78988E381A8E381AEE98195E381842-thumbnail2.png" alt="windows版との違い2.png" width="158" height="271" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">だけど、</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ccxは、windows版でも可。<br />ccxはむしろ新しい方がいい。</li></ul><a name="more"></a>

]]></content:encoded>
            <category>Calculix</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187217665.html</link>
      <title>Calculix 10本ノック: 10本目: exampleの実行 Kasten</title>
      <pubDate>Mon, 02 Mar 2020 07:00:00 +0900</pubDate>
      <description>Calculixとはフリーの解析ソフト。ccx　ソルバーcgx　プリポスト自分の環境WSLXmingCalculix 2.11imagimagickデータの入手公式サイトのリンクから行けるGithubのページCalculixのexample。 下記サイトのリンクから、使用しているCalculixのバージョンに合ったファイルを探す。https://github.com/mkraska/CalculiX-Examples/releasesノック10本目: exampleの実行 K..</description>
            <content:encoded><![CDATA[
<div><h5 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Calculixとは</span></h5><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">フリーの解析ソフト。</span></p><ul class="ul-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" data-mark="-"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">ccx　ソルバー</span></p></li><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">cgx　プリポスト</span></p></li></ul><br /><h5 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">自分の環境</span></h5><ul class="ul-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" data-mark="-"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">WSL</span></p></li><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Xming</span></p></li><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Calculix 2.11</span></p></li><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">imagimagick</span></p></li></ul><br /><h5 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">データの入手</span></h5><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20http://www.calculix.de/%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">公式サイト</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">のリンクから行けるGithubのページ</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Calculixのexample</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">。 </span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">下記サイトのリンクから、使用しているCalculixのバージョンに合ったファイルを探す。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="url" class="md-link" spellcheck="false" style="box-sizing: border-box; word-break: break-all;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" href="https://github.com/mkraska/CalculiX-Examples/releases">https://github.com/mkraska/CalculiX-Examples/releases</a></span></p><br /><br /><h3 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">ノック10本目: exampleの実行 Kasten</span></h3><h3 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Kasten</span></h3><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Kastenは、ドイツ語で"箱"。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">大変形、塑性、不整のある座屈（小さい内圧）、シェル要素とreadmeの書き出しにあった。</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://www.jstage.jst.go.jp/article/jsms1963/42/478/42_478_804/_article/-char/ja/%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Buckling with imperfectionは不整のある座屈</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">と翻訳するらしい。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">箱が座屈するモデル。 S8 (8-節点 四角形シェル要素) </span></p><br /><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded" lang="bash" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px 0px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; position: relative !important;" spellcheck="false">&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span class="cm-builtin" style="box-sizing: border-box; color: #3300aa;">cd</span> ~/CalculiX-Examples-2.11/CalculiX-Examples-2.11/Kasten</span></pre><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">「~」は、サンプルを解凍したアドレス。</span></p><br /><h3 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">exampleには存在しないけれど</span></h3><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデルを作成して、</span></p><ol class="ol-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" start="2"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">材料非線形解析なしの場合</span></p></li></ol><ol class="ol-list" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;" start="3"><li class="md-list-item" style="box-sizing: border-box; margin: 0px; position: relative;"><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-bottom: 0.5rem; white-space: pre-wrap; position: relative;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">非線形解析なしの場合。</span></p></li></ol><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">を用意した。</span></p><br /><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデルの作成</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデル作成のため、</span><span md-inline="link" class="md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/blob/master/Kasten/pre.fbd%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">pre.fbd</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">を下のように書き直した。</span></p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px 0px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; position: relative !important;" spellcheck="false">&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">pnt p1 0 0 0</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">pnt p2 50 0 0</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">pnt p3 0 50 0</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">line l1 p1 p2 12</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">line l2 p1 p3 12</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span cm-text="" style="box-sizing: border-box;">​</span></span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">seta lower all</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">swep all upper tra 0 0 150 20</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">flip A002</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span cm-text="" style="box-sizing: border-box;">​</span></span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">seta miryz l L004</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">seta mirxz l L005</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span cm-text="" style="box-sizing: border-box;">​</span></span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">plot la all</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">plus pa all</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">plus sa all</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">rot y</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">rot d 10</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">rot r 10</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">frame</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">hcpy png</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">#sys mv hcpy_1.png geo.png</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span cm-text="" style="box-sizing: border-box;">​</span></span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">div all auto 3</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">elty all qu8</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">mesh all</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send all abq</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;"><span cm-text="" style="box-sizing: border-box;">​</span></span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send all abq pres -0.01</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send lower abq nam</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send upper abq nam</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send mirxz abq spc 246</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">send miryz abq spc 156</span></pre><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="image" data-src="4bunno1.png" class="md-image md-img-loaded" style="box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 800px;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/4bunno1.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/4bunno1-thumbnail2.png" alt="4bunno1.png" width="320" height="274" border="0" /></a></span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデルの為に、</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/blob/master/Kasten/Kasten.inp%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Kasten.inp</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">の</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box; font-family: var(--monospace); vertical-align: initial; border: 1px solid #e7eaed; background-color: #f3f4f4; border-radius: 3px; padding: 0px 2px; font-size: 0.9em;">*boundary</code></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">部分を下記のように書き直した。</span></p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px 0px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; position: relative !important;" spellcheck="false">&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">*boundary</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">Nlower,1,6</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">Nupper,1,6</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">*include,input=mirxz_246.bou</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">*include,input=miryz_156.bou</span></pre><br /><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデルの為に、</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/blob/master/Kasten/post.fbd%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">post.fbd</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">をミラーコピーするように下記のように書き直した。</span></p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px 0px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; position: relative !important;" spellcheck="false">&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">copy all base1 mir x</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">move base1 tra 100 0 0</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">copy all base2 mir y</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">move base2 tra 0 100 0</span></pre><br /><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">1/4モデルの解析結果</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="image" data-src="1.png" class="md-image md-img-loaded" style="box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 800px;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/1-f60c3.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/1-f60c3-thumbnail2.png" alt="1.png" width="320" height="274" border="0" /></a></span></p><br /><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span class="md-plain" md-inline="plain" style="box-sizing: border-box;">非線形解析なしの場合</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">非線形がない場合を見るために、</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/blob/master/Kasten/Kasten.inp%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Kasten.inp</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">の</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box; font-family: var(--monospace); vertical-align: initial; border: 1px solid #e7eaed; background-color: #f3f4f4; border-radius: 3px; padding: 0px 2px; font-size: 0.9em;">Step</code></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">のnlgeomを削った。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="image" data-src="2.png" class="md-image md-img-loaded" style="box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 800px;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/2.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/2-thumbnail2.png" alt="2.png" width="320" height="274" border="0" /></a></span></p><br /><h4 class="md-end-block md-heading" style="box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">材料非線形がない場合</span></h4><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">材料非線形がない場合を見るために、</span><span md-inline="link" class=" md-link" style="box-sizing: border-box;"><a style="box-sizing: border-box; cursor: pointer; color: #4183c4; -webkit-user-drag: none;" spellcheck="false" href="%20https://github.com/mkraska/CalculiX-Examples/blob/master/Kasten/Kasten.inp%20"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">Kasten.inp</span></a></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">の</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box; font-family: var(--monospace); vertical-align: initial; border: 1px solid #e7eaed; background-color: #f3f4f4; border-radius: 3px; padding: 0px 2px; font-size: 0.9em;">*plastic</code></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">と、その下3行を削った。</span></p><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">あと、上記だけだと収束しなくなったので、</span><span md-inline="code" spellcheck="false" style="box-sizing: border-box;"><code style="box-sizing: border-box; font-family: var(--monospace); vertical-align: initial; border: 1px solid #e7eaed; background-color: #f3f4f4; border-radius: 3px; padding: 0px 2px; font-size: 0.9em;">*control</code></span><span md-inline="plain" class="md-plain" style="box-sizing: border-box;">を追加して、収束条件を甘くしてしまった。</span></p><pre class="md-fences md-end-block md-fences-with-lineno ty-contain-cm modeLoaded" lang="" style="box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: #f8f8f8; border: 1px solid #e7eaed; border-radius: 3px; padding: 8px 4px 6px 0px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: #333333; position: relative !important;" spellcheck="false">&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">*CONTROLS,PARAMETERS=FIELD</span><br />&nbsp;<span role="presentation" style="box-sizing: border-box; padding-right: 0.1px;">5.0e-1,1e-1,1e-2,,2e-8,1.e-5,1.e-3,1.e-8</span></pre><br /><p class="md-end-block md-p" style="box-sizing: border-box; line-height: inherit; orphans: 4; margin-top: 0.8em; margin-bottom: 0.8em; white-space: pre-wrap; position: relative; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px;"><span md-inline="image" data-src="3.png" class="md-image md-img-loaded" style="box-sizing: border-box; min-width: 10px; min-height: 10px; position: relative; word-break: break-all; font-family: monospace; vertical-align: top; display: inline-block; width: 800px;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/3.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/3-thumbnail2.png" alt="3.png" width="320" height="274" border="0" /></a></span></p><br /></div><div>10本完成してしまった。次は25本くらいを目標に挙げておく。</div><div>やはり、example頼りになりそう。</div><a name="more"></a>

]]></content:encoded>
            <category>Calculix</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187188312.html</link>
      <title>Calculix 10本ノック: 9本目: exampleの実行 Linear/Mesh1</title>
      <pubDate>Sun, 23 Feb 2020 07:00:00 +0900</pubDate>
      <description>Calculixとはフリーの解析ソフト。ccx　ソルバーcgx　プリポスト環境WSLXmingCalculix 2.11gmshimagimagickpip2matplotlibデータの入手公式サイトからのリンクで行けるGithubにあるCalculixのexample。下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。https://github.com/mkraska/CalculiX-Examples/releasesノック9本目: ex..</description>
            <content:encoded><![CDATA[
<h3 id="calculix-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Calculixとは</h3><p style="margin: 0px 0px 1.2em !important;">フリーの解析ソフト。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ccx　ソルバー</li><li style="margin: 0.5em 0px;">cgx　プリポスト</li></ul><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">環境</h3><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">WSL</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Xming</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Calculix 2.11</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">gmsh</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">imagimagick</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">pip2</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">matplotlib</p></li></ul><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">データの入手</h4><p style="margin: 0px 0px 1.2em !important;"><a href="http://www.calculix.de/">公式サイト</a>からのリンクで行けるGithubにある<a href="https://github.com/mkraska/CalculiX-Examples/">Calculixのexample</a>。</p><p style="margin: 0px 0px 1.2em !important;">下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://github.com/mkraska/CalculiX-Examples/releases">https://github.com/mkraska/CalculiX-Examples/releases</a></p><h3 id="-9-example-linear-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">ノック9本目: exampleの実行 Linear/</h3><h3 id="mesh1" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Mesh1</h3><p style="margin: 0px 0px 1.2em !important;">アルミ製皿の固有値解析。<br />ポストのshapes.fblを使うと、複数の固有値のアニメーションを一気に作れる。<br />要素はIncompatible mode eight-node brick element (C3D8I)らしい。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">ディレクトリの移動</h4><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-bash" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-built_in" style="color: #0086b3;">cd</span> ~/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/Linear/Mesh1</code></pre><p style="margin: 0px 0px 1.2em !important;">「~」は、サンプルを解凍した場所のアドレス。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">実行</h4><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">cgx -b pre.fbl<br />ccx modal<br />cgx -b shapes.fbl</code></pre><h4 id="pre-fbl-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">pre.fblの内容</h4><p style="margin: 0px 0px 1.2em !important;">手打ちで作ってみたら、途中、GUIから<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">frame</code>を使わないと、全体が見えなくなった。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/frame.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/frame-thumbnail2.png" alt="frame.png" width="320" height="286" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">下記で円弧が出現してた。作成途中でできたD002、D003を通る、中心点D001の円弧の命令？（ 14）で書いたline。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">line ! D002 D003 D001 14</code></pre><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/1EFBC8F4.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/1EFBC8F4-thumbnail2.png" alt="1／4.png" width="320" height="274" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;">1/4を作って、コピーで1/1にする。コピーのコマンドは下記。<br />最後のxは、yz面に対してミラーコピーの意味。yだったらx-z面</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">copy all new mir x<br />copy all new mir y</code></pre><p style="margin: 0px 0px 1.2em !important;">すべてコピーなので、不要な重複が出る。マージで消す。<br />マージは下記。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">merg p all 0.001<br />merg l all 0.001<br />merg s all 0.001</code></pre><h4 id="all-msh-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">all.mshの内容</h4><p style="margin: 0px 0px 1.2em !important;">先ほどのpre.fblの結果、all.mshが出力される。</p><p style="margin: 0px 0px 1.2em !important;">all.mshには、節点座標とエレメントが使用する節点の情報が書いてある。<br />エレメントはIncompatible mode eight-node brick element (C3D8I)を使っていた。</p><h4 id="modal-inp-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">modal.inpの内容</h4><p style="margin-bottom: 1.2em !important;">メッシュを読んでエレメントセットを用意して、</p><p style="margin-bottom: 1.2em !important;">マテリアルを指定して、</p><p style="margin-bottom: 1.2em !important;">上記マテリアルとエレメントセットをプロパティに設定して、</p><p style="margin: 0px 0px 1.2em !important;">下記で、固有値計算になる。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*STEP*<br />frequency<br />～省略～<br />*END STEP</code></pre><p style="margin: 0px 0px 1.2em !important;">このmodal.inpが、ccxの解析で使う入力ファイルになる。<br />ccxで解析された結果は、modal.frdとmodal.datに出力される。</p><p style="margin: 0px 0px 1.2em !important;">プロパティ設定の下の1は、3次元要素なので要らない気がする。あっても動くが。</p><h4 id="shapes-fbl" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">shapes.fbl</h4><p style="margin: 0px 0px 1.2em !important;">出力した12個の固有値のアニメーションを自動で作るcgxスクリプト。</p><p style="margin: 0px 0px 1.2em !important;">はじめに、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">wihle</code>で使用する変数を<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">valu</code>で用意している。</p><p style="margin: 0px 0px 1.2em !important;">次に、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">read</code>でmodal.frdを読み込んでいる。</p><p style="margin: 0px 0px 1.2em !important;">次に、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">rot</code>で角度を整えている。</p><p style="margin: 0px 0px 1.2em !important;">最後に、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">while</code>で、すべてのデータセットのアニメーションを作成していた。<br /><a href="http://naga-tsuzuki.sblo.jp/article/187136673.html">Whileについては以前やった</a>ので割愛。<br /><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">while</code>は<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">endwhile</code>で終わるが、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">endwhile</code>がテキストエディタの最終行に来たらエラーで止まるのは要注意。</p><h5 id="cgx-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">cgxで最短でアニメを描く方法</h5><p style="margin: 0px 0px 1.2em !important;">多分、gifアニメは3行で出力できる。</p><p style="margin: 0px 0px 1.2em !important;">アニメーションは、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">movi</code>でフレームを設定したら、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">ds</code>の<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">a</code>オプションで出力される。<br />多分imagimagickか何かが必要になると思う。出力されるファイルは、リピートされないgifアニメ。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">read modal.frd new<br />movi frames 30<br />ds 1 a</code></pre><a name="more"></a>

]]></content:encoded>
            <category>Calculix</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187172522.html</link>
      <title>Calculix 10本ノック: 8本目:Contact/Shell1</title>
      <pubDate>Thu, 20 Feb 2020 07:00:00 +0900</pubDate>
      <description>Calculix 10本ノック: 8本目:Contact/Shell1Calculixとはフリーの解析ソフト。ccx　ソルバーcgx　プリポスト環境WSLXmingCalculix 2.11gmshimagimagickpip2matplotlibデータの入手公式サイトからのリンクで行けるGithubにあるCalculixのexample。下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。https://github.com/mkraska/C..</description>
            <content:encoded><![CDATA[
<h2 id="calculix-10-8-contact-shell1" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.4em; border-bottom: 1px solid #eeeeee;">Calculix 10本ノック: 8本目:Contact/Shell1</h2><h3 id="calculix-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Calculixとは</h3><p style="margin: 0px 0px 1.2em !important;">フリーの解析ソフト。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ccx　ソルバー</li><li style="margin: 0.5em 0px;">cgx　プリポスト</li></ul><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">環境</h3><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">WSL</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Xming</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Calculix 2.11</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">gmsh</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">imagimagick</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">pip2</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">matplotlib</p></li></ul><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">データの入手</h4><p style="margin: 0px 0px 1.2em !important;"><a href="http://www.calculix.de/">公式サイト</a>からのリンクで行けるGithubにある<a href="https://github.com/mkraska/CalculiX-Examples/">Calculixのexample</a>。</p><p style="margin: 0px 0px 1.2em !important;">下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://github.com/mkraska/CalculiX-Examples/releases">https://github.com/mkraska/CalculiX-Examples/releases</a></p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">ディレクトリの移動。</h4><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-bash" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-built_in" style="color: #0086b3;">cd</span> ~/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/Contact/Shell1</code></pre><p style="margin: 0px 0px 1.2em !important;">「~」は、サンプルを解凍した場所のアドレス。</p><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">内容</h4><p style="margin: 0px 0px 1.2em !important;">下のような8節点シェルで作ったモデルの接触解析。<br />ハニカム（ハチの巣、ハニーコム）構造のサンドイッチの最小構成みたいな形の上に半球。<br />半球に対して、z方向に-2の強制変位をかけている。</p><p style="margin: 0px 0px 1.2em !important;"><strong>初期設定でうまく流れなかったが、contact pairのmaster,slaveを入れ替えたらうまくいった。</strong></p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/model-79863.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/model-79863-thumbnail2.png" alt="model.png" width="320" height="274" border="0" /></a></p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/model2.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/model2-thumbnail2.png" alt="model2.png" width="320" height="274" border="0" /></a></p><h4 id="too-many-cutbacks" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">Too many cutbacks</h4><p style="margin: 0px 0px 1.2em !important;">初期.inpのまま解析実行したら、下記エラーで止まった。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">too slow convergence; the increment size is decreased to 3.125000e-02<br /> the increment is reattempted</p><p style="margin: 0px 0px 1.2em !important;">*ERROR: too many cutbacks<br /> best solution and residuals are in the frd file</p></blockquote><p style="margin: 0px 0px 1.2em !important;">cutbacksの回数を増やしたら、止まらないんじゃないかと思い、cutbacksを増やす方法を検索。<br /><em>controlをいじるといいらしい。 </em>controlには引数が多すぎる。cutbackの回数以外は、初期設定にしておいた。<br />もしかすると、省略したら（何も書かずにコンマで区切ったら）よかったのかも。</p><p style="margin: 0px 0px 1.2em !important;">下記<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*control</code>を<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*step</code>(stepの外でも内でもいい？)に追加したら、このエラーは避けられたが…</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">** cutback 15<br />*CONTROLS, PARAMETERS=TIME INCREMENTATION<br />4,8,9,16,10,4,,15,,<br />0.25,0.5,0.75,0.85,,,1.5,</code></pre><p style="margin: 0px 0px 1.2em !important;">結局別のエラーが出た。<br />下記は結局出てきたエラー。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">too slow convergence; the increment size is decreased to 7.629395e-06<br /> the increment is reattempted</p><p style="margin: 0px 0px 1.2em !important;">*ERROR: increment size smaller than minimum<br /> best solution and residuals are in the frd file</p></blockquote><p style="margin: 0px 0px 1.2em !important;">これを解消する気にはならなかった。<br /><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*control</code>は消して、別の方法を探った。</p><h4 id="contact-pair" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">contact pairがおかしかった</h4><p style="margin: 0px 0px 1.2em !important;">下記の2行目で、slave,masterを決めていた。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*contact pair, interaction=tool, type=surface to surface<br />Stopneg,Sind</code></pre><p style="margin: 0px 0px 1.2em !important;">dependent (slave), independent(master)の順番。</p><p style="margin: 0px 0px 1.2em !important;">これを、<strong>下記のように逆さにしたら収束した。</strong></p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*contact pair, interaction=tool, type=surface to surface<br />Sind, Stopneg</code></pre><p>ちなみにsindは下記。</p><p><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/ind.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/ind-thumbnail2.png" alt="ind.png" width="320" height="274" border="0" /></a></p><br /><p>stopnegは下記。</p><h4 style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">&nbsp;<a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/topneg.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/topneg-thumbnail2.png" alt="topneg.png" width="320" height="274" border="0" /></a></h4><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">結果</h4><p style="margin: 0px 0px 1.2em !important;">表示しているのはds 2 e 23で出せる、最悪主応力(worst Principal Stress)<br />READMEにある結果と最大値最小値一緒だし、同じ結果でしょ。多分。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/result.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/result-thumbnail2.png" alt="result.png" width="320" height="274" border="0" /></a></p><a name="more"></a>

]]></content:encoded>
            <category>Calculix</category>
      <author>yuchan</author>
          </item>
        <item>
      <link>http://naga-tsuzuki.sblo.jp/article/187164018.html</link>
      <title>Calculix 10本ノック: 7本目:exampleの実行 Contact/Shellassembly</title>
      <pubDate>Sun, 16 Feb 2020 07:00:00 +0900</pubDate>
      <description>Calculixとはフリーの解析ソフト。ccx　ソルバーcgx　プリポスト環境WSLXmingCalculix 2.11gmshgmshの機能を使ってメッシングすることがある。imagimagickhcpyで画像作成するとき、convertするので使う。pip2matplotlibデータの入手公式サイトからのリンクで行けるGithubのexample。下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。https://github.com/mkr..</description>
            <content:encoded><![CDATA[
<h2 id="calculix-10-7-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.4em; border-bottom: 1px solid #eeeeee;">Calculixとは</h2><p style="margin: 0px 0px 1.2em !important;">フリーの解析ソフト。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ccx　ソルバー</li><li style="margin: 0.5em 0px;">cgx　プリポスト</li></ul><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">環境</h3><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">WSL</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Xming</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">Calculix 2.11</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">gmsh</p><p style="margin: 0.5em 0px !important;">gmshの機能を使ってメッシングすることがある。</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">imagimagick</p><p style="margin: 0.5em 0px !important;">hcpyで画像作成するとき、convertするので使う。</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">pip2</p></li><li style="margin: 0.5em 0px;"><p style="margin: 0.5em 0px !important;">matplotlib</p></li></ul><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">データの入手</h4><p style="margin: 0px 0px 1.2em !important;"><a href="http://www.calculix.de/">公式サイト</a>からのリンクで行ける<a href="https://github.com/mkraska/CalculiX-Examples/">Githubのexample</a>。</p><p style="margin: 0px 0px 1.2em !important;">下記サイトのリンクから、自分のCalculixのバージョンにあったファイルを探す。</p><p style="margin: 0px 0px 1.2em !important;"><a href="https://github.com/mkraska/CalculiX-Examples/releases">https://github.com/mkraska/CalculiX-Examples/releases</a></p><h3 id="-7-example-contact-shellassembly" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">ノック7本目:&nbsp;exampleの実行 Contact/Shellassembly</h3><h3 id="contact" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">Contact</h3><h4 id="shell_assembly" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">shell_assembly</h4><p style="margin: 0px 0px 1.2em !important;">4種類の.inpが入っていた。</p><ul style="margin: 1.2em 0px; padding-left: 2em;"><li style="margin: 0.5em 0px;">ペナルティ法でnode to surfaceの接触</li><li style="margin: 0.5em 0px;">ペナルティ法でsurface to surfaceの接触</li><li style="margin: 0.5em 0px;">*tieを使ったMPC接触</li><li style="margin: 0.5em 0px;">*equationを使ったMPC接触</li></ul><p style="margin: 0px 0px 1.2em !important;">固有値計算してる。</p><p style="margin: 0px 0px 1.2em !important;">他のサイトでは、<a href="[https://forum.altair.com/topic/23272-%E6%8E%A5%E8%A7%A6%E3%82%92%E8%80%83%E6%85%AE%E3%81%97%E3%81%9F%E5%9B%BA%E6%9C%89%E5%80%A4%E8%A7%A3%E6%9E%90%E3%82%84%E5%91%A8%E6%B3%A2%E6%95%B0%E5%BF%9C%E7%AD%94%E8%A7%A3%E6%9E%90/](https://forum.altair.com/topic/23272-接触を考慮した固有値解析や周波数応答解析/">「接触を考慮した固有値解析はできない」と書いてある。</a> )<br />不安になるが、まぁ、できるんならいいんじゃない…？<br />いや、良くないのかなぁ。「接触 固有値」でググると、皆、いろいろ工夫してるみたいだし。</p><p style="margin: 0px 0px 1.2em !important;">どうやら、.inpファイルのstep, perturbationに鍵があるらしい。</p><h4 id="readme-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">READMEざっくり訳</h4><blockquote><p><code>*tie</code><span>とペナルティ法を使った、MPC接触は、シェルのエッジとシェルの表面の間の、硬い接続（？）になります。</span> <code>*tie</code><span>を使った、Node to surfaceペナルティ法やMPC接触は似た結果になります。</span> <span>ペナルティ接触の固有値の周波数は、ふつう、MPC接触を使った場合よりもきわめて低く、もっともらしいです。ペナルティ接触はcomplianceを足しているからです。</span></p></blockquote><blockquote><p><span>Surface to surface接触は、MPC接触とは全く異なった固有周波数になります。0付近に5つの周波数しかありません（6つの剛体モードがあるべき）。</span></p></blockquote><blockquote><p><span>（surface to surfaceもnode to surfaceのどちらも）ペナルティ接触は、モード解析が必要です。モード解析は、静的なstepに先立って摂動ステップとして行われます。</span> <span>摂動解析の最初の結果のインクリメントはモードシェイプではないことに気を付けてください。</span></p></blockquote><blockquote><p><code>*equation</code><span>を使ったMPC接触は、シェルとフェイス接触を、ヒンジ接続にします。（7剛体モード）</span></p></blockquote><p style="margin: 0px 0px 1.2em !important;">う～ん分からない。訳が合ってるのかも不安。</p><h5 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">まずはディレクトリの移動。</h5><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-bash" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;"><span class="hljs-built_in" style="color: #0086b3;">cd</span> ~/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/CalculiX-Examples-<span class="hljs-number" style="color: #008080;">2.11</span>/Contact/</code></pre><p style="margin: 0px 0px 1.2em !important;">「~」は、サンプルを解凍した場所のアドレス。</p><p style="margin: 0px 0px 1.2em !important;">最新版だとShell0に入っているサンプル。</p><h5 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">操作</h5><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code class="hljs language-bash" style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block; overflow: auto; overflow-x: auto; color: #333333; background: #f8f8f8; text-size-adjust: none;">cgx -b pre.fbd<br />ccx tie<br />cgx tie.frd</code></pre><p style="margin: 0px 0px 1.2em !important;">こんな感じでtieの部分をequ、pc-ss、pc-nsに替えて実行する。</p><h5 id="pre-fbd" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">pre.fbd</h5><p style="margin: 0px 0px 1.2em !important;">seto～setcを使ってセットを作っていた。</p><p style="margin: 0px 0px 1.2em !important;">上側のプレート1をswepで作って、</p><p style="margin: 0px 0px 1.2em !important;">下側のプレート2をswepで作って、</p><p style="margin: 0px 0px 1.2em !important;">qu4（inpでいうs4（4節点シェルエレメント））を指定してメッシュ作成して(all.mshにS4と記入される)、</p><p style="margin: 0px 0px 1.2em !important;">プレート1のサーフェイスを出力して(S1.sur)、</p><p style="margin: 0px 0px 1.2em !important;">プレート2のエッジ（L007 ）を出力して(k1.sur)、</p><p style="margin: 0px 0px 1.2em !important;">すべてのメッシュを出力してして(all.msh)、</p><p style="margin: 0px 0px 1.2em !important;">プレート1のサーフェイスとプレート2のエッジ(L007)を123456のMPCとして出力していた(k1.equ)。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/line_name-b53d1.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/line_name-b53d1-thumbnail2.png" alt="line_name.png" width="320" height="274" border="0" /></a></p><h5 id="pgdn-pgup-plot-set-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">PgDn, PgUpでplotするsetの切り替えができた！</h5><p style="margin: 0px 0px 1.2em !important;">PgDn、PgUpでセット間を行き来できるのは知らなかった。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">plot fa all</code></pre><p style="margin: 0px 0px 1.2em !important;">と打った後に、PgDn、PgUpすると、作成した各セットを行き来できるので、いちいちplotコマンドを打たなくていい。作ってる最中に便利かも。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/12-d31d2.gif" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/12-d31d2.gif" alt="12.gif" width="781" height="699" border="0" /></a></p><h3 id="-inp-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">.inpを見る</h3><h4 id="tie-inp" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">tie.inp</h4><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*tie,name=t1,position tolerance=0.1<br />Sk1,Ss1</code></pre><p style="margin: 0px 0px 1.2em !important;">とあった</p><h4 id="pc-ss-inp" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">pc-ss.inp</h4><h5 id="step-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">stepの部分</h5><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*step,nlgeom<br />*static<br />*end step<br />*STEP,perturbation<br />*frequency<br />~~~<br />~~~<br />*END STEP</code></pre><p style="margin: 0px 0px 1.2em !important;">と書いてあった。<br />「PERTUBATIONってなんだ？」となったので、取説を検索すると、</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">The parameter PERTURBATION is allowed for <em>FREQUENCY and </em>BUCKLE steps only. If it is specified, the last *STATIC step is taken as reference state and used to calculate the stiffness matrix.</p><p style="margin: 0px 0px 1.2em !important;">パラメーター<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">PERTURBATION</code> は*FREQUENCY(固有値解析) *BUCKLE(座屈解析)にだけ使用できます。もし、これが指定されると、最後の <code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*STATIC</code> stepの剛性マトリックスが参照され、計算に使用されます。</p></blockquote><p style="margin: 0px 0px 1.2em !important;">たしかに、直前に<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*static</code>してるstepがある。その結果を読み込んで、固有値計算をしているらしい。</p><h5 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">接触の部分</h5><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*surface interaction, name=Klebung<br />*surface behavior, pressure-overclosure=tied<br />1.E7<br />*friction<br />1,1.E7<br />*contact pair, interaction=Klebung, type=surface to surface, adjust=1<br />Sk1,Ss1</code></pre><p style="margin: 0px 0px 1.2em !important;">pc-ss.inpとは、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">pressure-overclosure=tied</code>と、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">type=surface to surface</code>が違う。</p><p style="margin: 0px 0px 1.2em !important;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*friction</code>の下の数値が、摩擦係数と粘性slopeらしい。取説には下の様に書いてある。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">For face-to-face penalty contact with PRESSURE-OVERCLOSURE=TIED the value of the friction coefficient is irrelevant.</p><p style="margin: 0px 0px 1.2em !important;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">PRESSURE-OVERCLOSURE=TIED</code>を使ったface to faceペナルティ接触にとっては、摩擦係数は無関係です。</p></blockquote><p style="margin: 0px 0px 1.2em !important;">とあるので、1っていう数字は要らないんじゃないかと思ったが、なきゃ無いでエラーが起こるのでそのままにした。</p><h4 id="pc-ss-inp" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">pc-ss.inp</h4><h5 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">接触の部分</h5><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*surface interaction, name=Klebung<br />*surface behavior, pressure-overclosure=linear<br />1.E7,10000,10000<br />*friction<br />1,1.E7<br />*contact pair, interaction=Klebung, type=node to surface, adjust=1<br />Sk1,Ss1</code></pre><p style="margin: 0px 0px 1.2em !important;">pc-ns.inpとは、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">pressure-overclosure=linear</code>と、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">type=node to surface</code>が違う。</p><h4 id="equ-inp" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">equ.inp</h4><p style="margin: 0px 0px 1.2em !important;">これは、下記で読み込んでいる、k1.equにの条件が書かれているところに特徴があった。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*include, input=k1.equ</code></pre><p style="margin: 0px 0px 1.2em !important;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">*equation</code> を使って、MPCの式が書かれていた。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*EQUATION4<br />4<br />6,1,-1.000000000000<br />2,1,0.800000000000<br />11,1,0.200000000000<br />12,1,0.000000000000</code></pre><p style="margin: 0px 0px 1.2em !important;">4というのが、式の項の数で、<br />その下に、ノード番号、拘束方向、変数の係数が書かれている。変数は、ノードの拘束方向の変位。</p><p style="margin: 0px 0px 1.2em !important;">k1.equを見ると、近い4つのノード同士で式を作っていた。ノードがどうやって選ばれたのかは知らない。</p><p style="margin: 0px 0px 1.2em !important;"><a href="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/node_all.png" target="_blank"><img src="http://gakusyu-comic.sakura.ne.jp/sblo_files/naga-tsuzuki/image/node_all-thumbnail2.png" alt="node_all.png" width="320" height="274" border="0" /></a></p><h3 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.3em;">結果</h3><p style="margin: 0px 0px 1.2em !important;">固有値の結果は、.datファイルに出力される。</p><p style="margin: 0px 0px 1.2em !important;">cgxのwindowの「Time:」って書いてある横の数値は、そのまま周波数として読めそう（CYCLES/TIME）。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">*el fileS</code></pre><h5 id="pgdn-pgup-plot-dataset-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">PgDn, PgUpでplotするdatasetの切り替えができた！</h5><p style="margin: 0px 0px 1.2em !important;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">plot</code>コマンドのところでも書いたが、<code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0px 0.3em; white-space: pre-wrap; border: 1px solid #eaeaea; background-color: #f8f8f8; border-radius: 3px; display: inline;">ds</code>コマンドでも、PgDn, PgUpデータセットの切り替えができる。<br />下記コマンド等、適当に入力後、PgDn, PgUpで、データセットを切り替えられる。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">ds 1 e 1</code></pre><h4 id="-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1.2em;">問題点</h4><h5 id="cgx-" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">cgxのオプション</h5><p style="margin: 0px 0px 1.2em !important;">cgxを使って結果の読取りをする際、cgxの起動時に -bオプションををつけると結果が表示されない。何もつけない（自動）か、-readで出てくると思う。</p><h5 id="cgx-dataset" style="margin: 1.3em 0px 1em; padding: 0px; font-weight: bold; font-size: 1em;">cgxのdataset</h5><p style="margin: 0px 0px 1.2em !important;">cgxのGUIからdatasetを選択すると、アプリケーションが勝手に終了して下記の表示が出た。</p><blockquote style="margin: 1.2em 0px; border-left: 4px solid #dddddd; padding: 0px 1em; color: #777777; quotes: none;"><p style="margin: 0px 0px 1.2em !important;">freeglut (cgx): Menu manipulation not allowed while menus in use.</p></blockquote><p style="margin: 0px 0px 1.2em !important;">表示させるためには、コマンドから下記の様に入力。</p><pre style="font-size: 1em; font-family: Consolas, Inconsolata, Courier, monospace; line-height: 1.2em; margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas, Inconsolata, Courier, monospace; margin: 0px 0.15em; padding: 0.5em 0.7em; white-space: pre; border: 1px solid #cccccc; background-color: #f8f8f8; border-radius: 3px; display: block !important; overflow: auto;">ds 1 e 4</code></pre><p style="margin: 0px 0px 1.2em !important;">データセット1の4番目の結果を表示。何番に何が入っているかは、出力要求によって違う。</p><p style="margin: 0px 0px 1.2em !important;">windows版ならGUIは問題なく動くと思う。</p><a name="more"></a>

]]></content:encoded>
            <category>Calculix</category>
      <author>yuchan</author>
          </item>
      </channel>
</rss>
