![見出し画像](https://assets.st-note.com/production/uploads/images/66564639/rectangle_large_type_2_62ab0c4962d50478864982ef0c36ca75.png?width=1200)
【OpenFOAMバスケットボールの流れ】メッシュ作成(2)snappyHexMesh
こんにちは。
引き続きバスケットボールまわりの流れのモデル設定を行っています。
前回はFreeCADでバスケットボールのモデルを作成しました
こちらは日記です↓
メッシュ生成
今回はsnappyHexMeshでバスケットボールまわりのメッシュを生成します。
以下にblockMesh、snappyHexMeshのメモ書きを残りています。
ちゃんとした手順は追々ブログにまとめる予定です(^^)/
メッシュ品質のチェック
メッシュ品質は計算の安定性や精度に影響を及ぼすので、アスペクト比がおかしく歪んだメッシュがないかをチェックします。
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _7bdb509494-20201222 OPENFOAM=2012
Arch : "LSB;label=32;scalar=64"
Exec : checkMesh -constant
Date : Nov 27 2021
Time : 20:45:38
Host : DESKTOP-CT961AV
PID : 675
I/O : uncollated
Case : /mnt/c/work/openfoam/20211010_basketball_flow/002_mesh_create/motorBike/mesh1
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = constant
Time = constant
Mesh stats
points: 1056321
faces: 3104000
internal faces: 3040000
cells: 1024000
faces per cell: 6
boundary patches: 6
point zones: 0
face zones: 0
cell zones: 0
Overall number of cells of each type:
hexahedra: 1024000
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 0
Checking topology...
Boundary definition OK.
Cell to face addressing OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).
Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology
x_min_1 6400 6561 ok (non-closed singly connected)
x_max_1 6400 6561 ok (non-closed singly connected)
y_min_1 12800 13041 ok (non-closed singly connected)
y_max_1 12800 13041 ok (non-closed singly connected)
z_min_1 12800 13041 ok (non-closed singly connected)
z_max_1 12800 13041 ok (non-closed singly connected)
Checking faceZone topology for multiply connected surfaces...
No faceZones found.
Checking basic cellZone addressing...
No cellZones found.
Checking geometry...
Overall domain bounding box (-0.2 -0.2 -0.2) (0.6 0.2 0.2)
Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
Mesh has 3 solution (non-empty) directions (1 1 1)
Boundary openness (-5.248e-17 1.81178e-17 3.03725e-17) OK.
Max cell openness = 2.73761e-16 OK.
Max aspect ratio = 1 OK.
Minimum face area = 2.5e-05. Maximum face area = 2.5e-05. Face area magnitudes OK.
Min volume = 1.25e-07. Max volume = 1.25e-07. Total volume = 0.128. Cell volumes OK.
Mesh non-orthogonality Max: 0 average: 0
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 1.77636e-13 OK.
Coupled point location match (average 0) OK.
Mesh OK.
--> FOAM Warning :
From virtual Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate()
in file meshes/polyMesh/polyMeshIO.C at line 210
Number of patches has changed. This may have unexpected consequences. Proceed with care.
Time = 1
Mesh stats
points: 1141328
faces: 3296658
internal faces: 3199746
cells: 1077752
faces per cell: 6.02774
boundary patches: 7
point zones: 0
face zones: 0
cell zones: 0
Overall number of cells of each type:
hexahedra: 1068901
prisms: 0
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 8851
Breakdown of polyhedra by number of faces:
faces number of cells
6 3373
9 2441
12 1588
15 1449
Checking topology...
Boundary definition OK.
Cell to face addressing OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).
Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology
x_min_1 6400 6561 ok (non-closed singly connected)
x_max_1 6400 6561 ok (non-closed singly connected)
y_min_1 12800 13041 ok (non-closed singly connected)
y_max_1 12800 13041 ok (non-closed singly connected)
z_min_1 12800 13041 ok (non-closed singly connected)
z_max_1 12800 13041 ok (non-closed singly connected)
basketball 32912 32914 ok (closed singly connected)
Checking faceZone topology for multiply connected surfaces...
No faceZones found.
Checking basic cellZone addressing...
No cellZones found.
Checking geometry...
Overall domain bounding box (-0.2 -0.2 -0.2) (0.6 0.2 0.2)
Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
Mesh has 3 solution (non-empty) directions (1 1 1)
Boundary openness (-4.15902e-17 6.56865e-18 2.26725e-17) OK.
Max cell openness = 2.79182e-16 OK.
Max aspect ratio = 1 OK.
Minimum face area = 6.25e-06. Maximum face area = 2.5e-05. Face area magnitudes OK.
Min volume = 1.5625e-08. Max volume = 1.25e-07. Total volume = 0.124619. Cell volumes OK.
Mesh non-orthogonality Max: 25.2394 average: 2.79444
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.333333 OK.
Coupled point location match (average 0) OK.
Mesh OK.
Time = 2
Mesh stats
points: 1133188
faces: 3284722
internal faces: 3199746
cells: 1077752
faces per cell: 6.01666
boundary patches: 7
point zones: 0
face zones: 0
cell zones: 0
Overall number of cells of each type:
hexahedra: 1060501
prisms: 2864
wedges: 0
pyramids: 0
tet wedges: 0
tetrahedra: 0
polyhedra: 14387
Breakdown of polyhedra by number of faces:
faces number of cells
4 3536
5 2000
6 3373
9 2441
12 1588
15 1449
Checking topology...
Boundary definition OK.
Cell to face addressing OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).
Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology
x_min_1 6400 6561 ok (non-closed singly connected)
x_max_1 6400 6561 ok (non-closed singly connected)
y_min_1 12800 13041 ok (non-closed singly connected)
y_max_1 12800 13041 ok (non-closed singly connected)
z_min_1 12800 13041 ok (non-closed singly connected)
z_max_1 12800 13041 ok (non-closed singly connected)
basketball 20976 24774 ok (closed singly connected)
Checking faceZone topology for multiply connected surfaces...
No faceZones found.
Checking basic cellZone addressing...
No cellZones found.
Checking geometry...
Overall domain bounding box (-0.2 -0.2 -0.2) (0.6 0.2 0.2)
Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
Mesh has 3 solution (non-empty) directions (1 1 1)
Boundary openness (-1.96556e-16 -3.125e-16 -1.09329e-15) OK.
Max cell openness = 2.87007e-16 OK.
Max aspect ratio = 3.63349 OK.
Minimum face area = 2.25826e-06. Maximum face area = 2.64682e-05. Face area magnitudes OK.
Min volume = 3.42659e-09. Max volume = 1.32994e-07. Total volume = 0.124627. Cell volumes OK.
Mesh non-orthogonality Max: 37.4074 average: 3.23937
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 0.763821 OK.
Coupled point location match (average 0) OK.
Mesh OK.
Time = 3
Mesh stats
points: 1214661
faces: 3494369
internal faces: 3409841
cells: 1141924
faces per cell: 6.04612
boundary patches: 7
point zones: 0
face zones: 0
cell zones: 0
Overall number of cells of each type:
hexahedra: 1098207
prisms: 3008
wedges: 0
pyramids: 0
tet wedges: 112
tetrahedra: 0
polyhedra: 40597
Breakdown of polyhedra by number of faces:
faces number of cells
4 4301
5 2112
6 3991
7 13952
8 9949
9 2843
10 396
11 16
12 1588
15 1449
Checking topology...
Boundary definition OK.
Cell to face addressing OK.
Point usage OK.
Upper triangular ordering OK.
Face vertices OK.
Number of regions: 1 (OK).
Checking patch topology for multiply connected surfaces...
Patch Faces Points Surface topology
x_min_1 6400 6561 ok (non-closed singly connected)
x_max_1 6400 6561 ok (non-closed singly connected)
y_min_1 12800 13041 ok (non-closed singly connected)
y_max_1 12800 13041 ok (non-closed singly connected)
z_min_1 12800 13041 ok (non-closed singly connected)
z_max_1 12800 13041 ok (non-closed singly connected)
basketball 20528 24398 ok (closed singly connected)
Checking faceZone topology for multiply connected surfaces...
No faceZones found.
Checking basic cellZone addressing...
No cellZones found.
Checking geometry...
Overall domain bounding box (-0.2 -0.2 -0.2) (0.6 0.2 0.2)
Mesh has 3 geometric (non-empty/wedge) directions (1 1 1)
Mesh has 3 solution (non-empty) directions (1 1 1)
Boundary openness (1.57286e-17 6.11238e-16 4.14878e-16) OK.
Max cell openness = 3.42979e-16 OK.
Max aspect ratio = 10.652 OK.
Minimum face area = 4.9168e-07. Maximum face area = 3.29533e-05. Face area magnitudes OK.
Min volume = 4.54393e-10. Max volume = 1.56058e-07. Total volume = 0.124625. Cell volumes OK.
Mesh non-orthogonality Max: 55.4708 average: 4.56967
Non-orthogonality check OK.
Face pyramids OK.
Max skewness = 1.30959 OK.
Coupled point location match (average 0) OK.
Mesh OK.
End
全然何書いているかわかりませんが。。。。OKが出てるのでOKでしょう('ω')
Twitter➡@t_kun_kamakiri
Instagram➡kamakiri1225
ブログ➡宇宙に入ったカマキリ(物理ブログ)
ココナラ➡物理の質問サポートサービス
コミュニティ➡製造業ブロガー