まずはエッジのグルーピングをする。
Grouping Edges:
SALOME operation
Menu-New Entity-Group-Create
Create Group window
Shape Type:Edge
Group Name:height
Main Shape And Sub-Shapes:Partition_1
Main Shape Selecion restriction:No restriction
Select All Edges of height then click Add and then click Apply.
マウスとキーボードを操作して、高さを表すエッジを全て選択し、Add、をクリックすると、選択したエッジの要素番号がウインドウ中に転記される。さらにApplyをクリックしてグルーピングを確定させる。
SALOMEのGEOMETRY MODULEのマウス操作は以下ような動きになっている。
Ctrl+左クリック&ドラッグ:拡大縮小
Ctrl+トグルクリック&ドラッグ:パンニング
Ctrl+右クリック&ドラッグ:回転
Shift+左クリック:複数選択
続いて面のグルーピングをする。
Grouping Faces:
SALOME operation
Create Group window
Shape Type:Face
Group Name:symmetry
Main Shape And Sub-Shapes:Partition_1
Main Shape Selecion restriction:No restriction
Select All Faces of symmetry then click Add and then click Apply.
symmetryのグルーピング作業は対象面が多いので、意図したとおりに選択できているか確認する方が良い。
Menu-View-Display Mode-Shading/Wireframe
表示をワイヤフレームからシェイディングに切り替えると、意図した面が全て選択できているか、確認しやすい。
Select All Faces of inlet then click Add and then click Apply.Select All Faces of outlet then click Add and then click Apply.
Select All Faces of walls then click Add and then click Apply.
wallsは、円筒の外周面を選択するが、この作業の際には"Hide Selectied"を使うと便利。邪魔な面の表示を隠してくれる。
Select All Faces of secondhalf then click Add and then click Apply.
このように、解析モデルの中で同一の境界条件にする面を全て選択し名前を付けて保存していく。エッジのグルーピングは、メッシングの際に分割数を設定するのに用いる。
グルーピングが完了したらメッシュモジュールに切り替える。
Menu-Mesh-Create Mesh
Create Mesh window
Name:mesh_1
Geometry:Partition_1
3D tab:Algorithm:Hexahedron(i,j,k)
2D tab:Algorithm:Quadrangle(Mapping)
1D tab:Algorithm:Wire discretisation,Hypothesis:Nb. Segments_1
Arguments:Number of Segments=30,Type of distribution=Equidistant distribution
Apply and Close
Menu-Mesh-Create Sub-Mesh
Name:Submesh_1
Mesh:Mesh_1
Geometry:height
1D tab:Algorithm:Wire discretisation,Hypothesis:Nb. Segments_2
Arguments:Number of Segments=1,Type of distribution=Equidistant distribution
Apply
Name:Submesh_2
Geometry:secondhalf
1D tab:Algorithm:Wire discretisation,Hypothesis:Nb. Segments_3
Arguments:Number of Segments=60,Type of distribution=Equidistant distribution
Apply and Close
Menu-Mesh-Compute
これでメッシング完了。
Code_Saturneで2D解析を行う場合は、厚み方向を1分割でメッシングし、symmetry定義を用いる。他に軸対称解析も出来るみたいなので、後々チャレンジしたいと思っている。
Number of Segmentsの値は任意に設定して良い。壁際をもっと細かく切りたい場合は、数値を増せば良い。また今回はsymmetryで定義したが側壁を定義したい場合は、partitionを切る際に、壁際に細分割を施す厚み分を考慮すると良い。
ジオメトリモジュールで定義したグループをメッシュグループに適用する。
Menu-Mesh-Create Group from GeometryCreate Group from Geometry window
適用対象はFaceグループのみで、symmetry,inlet,outlet,wallsの4つ。
これでメッシュ作成作業が完了。SALOMEの作業履歴を保存する場合は標準フォーマットは.hdfだが、Code_Saturneで読み込む為には.MEDフォーマットに出力する必要がある。
Menu-Export-MED File
適当な場所に適当な名前で保存すれば良いが、/home/(user name)/Document/、以下を推奨する。他の場所でフォルダを作って試した事があるが、何故かうまく行かなかった経験があり、原因解明までは出来ていない。
0 件のコメント:
コメントを投稿