Femtet2026.0マクロヘルプ/マニュアル
 

ホーム / 計算結果の抽出 / CGogh / 関数 / SimpleIntegralPotentialAtBody

SimpleIntegralPotentialAtBody関数

定義

SimpleIntegralPotentialAtBody(Bodies() As Long, Result As CComplex) As Boolean
 


[Python]
 SimpleIntegralPotentialAtBody_py(int[] Bodies)

戻り値

True   成功
False   失敗
 


[Python]
[0]   True:成功、False:失敗
[1]   積分結果(CComplex)

引数

Bodies

 

インデックスは、計算結果画面のツリー又は、ボディのピック時のツールチップに表示されています。参照図

Result

 

積分結果
 


[Python]   

Bodies

 

インデックスは、計算結果画面のツリー又は、ボディのピック時のツールチップに表示されています。参照図

解説

現在設定中のポテンシャルのフィールドを被積分関数として、指定したボディで体積分を実行します。

実行例

Dim Femtet As New CFemtet
Dim BodyArray(2) As Long
Dim Result As New CComplex

'計算結果を開く
If Femtet.OpenPDT("C:\test\test.pdt") = False Then
    Femtet.ShowLastError
End If

'積分するボディの設定
BodyArray(0) = 1
BodyArray(1) = 1
BodyArray(2) = 1

'ポテンシャルフィールドの設定
Femtet.Gogh.Watt.Potential = WATT_TEMPERATURE_C

'積分
If Femtet.Gogh.SimpleIntegralPotentialAtBody(BodyArray, Result) = False Then
    Femtet.ShowLastError
End If

'結果表示
MsgBox Result.Real, vbInformation, "Real"
MsgBox Result.Imag, vbInformation, "Imag"