0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

「せん断によるひずみエネルギーの計算方法を教えて下さい。」をAI先生に聞きました。sympyのソースコードで。

Last updated at Posted at 2025-04-22

(本日の)ChatGPT先生へ

質問リスト

・質問リストの追番は無視して下さい。1個ずつです。途中の回答表示は省略しています。

# 質問リスト
1. せん断によるひずみエネルギーの計算方法を教えて下さい。  
2. 上記をsympy のソースコードのシンボリックでお願いします。  
3. プロットをお願いします。  
4. 私の質問をMarkdown形式でリスト化して出力して。Markdown形式でリストからアスタリスクは削除して。1行目に、# 質問リスト の文字を出力して。最後の質問も追加して下さい。追番を追加して下さい。

ChatGPT:
◆ 最終式の導出
◆ SymPyでこの積分を再現するコード(シンボリック)

import sympy as sp

# 記号の定義
tau, gamma, G, V = sp.symbols('tau gamma G V', real=True, positive=True)

# 基本式(単位体積あたりのひずみエネルギー)
U1 = (1/2) * tau * gamma

# フックの法則 tau = G * gamma を代入した式
U2 = (1/2) * G * gamma**2

# tau^2 / (2G) 形式
U3 = tau**2 / (2 * G)

# 体積を掛けた全ひずみエネルギー(それぞれ)
U1_total = U1 * V
U2_total = U2 * V
U3_total = U3 * V

# 表示
sp.pprint(U1, use_unicode=True)
sp.pprint(U2, use_unicode=True)
sp.pprint(U3, use_unicode=True)
sp.pprint(U1_total, use_unicode=True)

以下省略
...

Gemini先生へ

copilot先生へ

いつもの? sympyの実行環境と 参考のおすすめです。

(テンプレート)

いつもと違うおすすめです。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?