We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.

Ansys Learning Forum Forums AIS Japan ANSYS製品 Technical Support Inquiry: APDL /INPUT command executing incorrect script conten Reply To: Technical Support Inquiry: APDL /INPUT command executing incorrect script conten

25rmm26
Subscriber

Ansysサポートチーム様

早急なご返信ありがとうございます。 

/PREP7ご要望に応じて、 AI コーディング パートナーと徹底的にデバッグした後に開発された、修正された APDL スクリプト (ブロック) の冒頭を以下に示します。

! --- 修正されたスクリプトの始まり (/PREP7 ブロック) ---
仕上げる
/クリア、ノースタート
 
/準備7
! --- パラメータ ---
DDD=4e-3
NNN=44
THK=.08e-3
THI=60
GL=.001
GW=.0002
PPP=(2*1.4*((1.04**2)-1))/(1.4+1)
MMM=1.04
CCC=340
DTT=(DDD/(MMM*CCC))/NNN
 
! --- 要素と材質 ---
ET,1,シェル181
R,1,THK
MP、EX、1,200e9
MP,PRXY,1,0.3
MP、DENS、1、7.8e3
 
! --- ジオメトリ作成 ---
エリアック,0,0,DDD/2
CSYS,0
長方形、-.5*GL、-.5*GW、GL、GW
ASEL,S,エリア,,最後
AROTAT、ALL、、、、、、THI
アセル、オール
 
長方形、-.5*GL、-.5*GW、GL、GW
ASEL,S,エリア,,最後
AROTAT、ALL、、、、、、、-THI
アセル、オール
 
*DO,I,1,NNN-1
    x_pos = -DDD/2 + (DDD/NNN)*I
    y_hgt = sqrt((DDD/2)**2 - x_pos**2)
    kp1 = 1000 + (I*2 - 1)
    kp2 = 1000 + (I*2)
    K, kp1, x_pos, -y_​​hgt
    K、kp2、x_pos、y_hgt
    L、kp1、kp2
*エンドド
 
! --- 結合とクリーンアップ ---
AOVLAP、すべて
番号、すべて
 
! --- メッシュ ---
サイズ、DDD/NNN*1.1
アメシュ、オール
番号、ノード
 
仕上げる