E.Mogura さん返信ありがとうございます。
> snappyMultiRegionHeaterチュートリアルの場合で、
> たとえば、topAir.stl が存在しないとしてやってみました。
> (bottomAir, heater, leftSolid, rightSolid はstlが存在して、
> cellZoneを作成済みという状態)
これは、デフォルトのsnappyMultiRegionHeaterチュートリアル
のsnappyHexMeshDictファイルのgeometryおよびrefinementSurfaces
から、topAirに関する部分のみをコメントアウトするという変更のみを行って、
blockMesh と
snappyHexMesh
を実行するという理解でよろしいでしょうか?
> [makeCellSets.setSet]
> cellSet topAir clear
> cellSet topAir add zoneToCell bottomAir
> cellSet topAir add zoneToCell heater
> cellSet topAir add zoneToCell leftSolid
> cellSet topAir add zoneToCell rightSolid
> cellSet topAir invert
>
> というファイルを作成しておいて、
>
> setSet -batch makeCellSets.setSet
> setsToZones -noFlipMap
上記を実行すると、以下のコメントが表示されました。
/
************************************************************************************************************/
Create
time
Create polyMesh for time = 0
Time:0 cells:3000 faces:9700 points:3751 patches:6 bb:(-0.1 -0.04
-0.05) (0.1 0.04 0.05)
Reading commands from file "makeCellSets.setSet"
Please type 'help', 'quit' or a set command after prompt.
Doing:"cellSet topAir clear"
Set:topAir Size:0 Action:clear
Writing topAir (size 0) to "constant/polyMesh/sets/topAir" and to
vtk file "VTK/topAir/topAir_1.vtk"
Doing:"cellSet topAir add zoneToCell bottomAir"
Set:topAir Size:0 Action:add
Adding all cells of cellZone bottomAir ...
--> FOAM Warning :
From function zoneToCell::combine(topoSet&, const bool)
in file sets/cellSources/zoneToCell/zoneToCell.C at line 87
Cannot find any cellZone named bottomAir
Valid names are
0
(
)
Writing topAir (size 0) to "constant/polyMesh/sets/topAir" and to
vtk file "VTK/topAir/topAir_1.vtk"
Doing:"cellSet topAir add zoneToCell heater"
Set:topAir Size:0 Action:add
Adding all cells of cellZone heater ...
--> FOAM Warning :
From function zoneToCell::combine(topoSet&, const bool)
in file sets/cellSources/zoneToCell/zoneToCell.C at line 87
Cannot find any cellZone named heater
Valid names are
0
(
)
Writing topAir (size 0) to "constant/polyMesh/sets/topAir" and to
vtk file "VTK/topAir/topAir_1.vtk"
Doing:"cellSet topAir add zoneToCell leftSolid"
Set:topAir Size:0 Action:add
Adding all cells of cellZone leftSolid ...
--> FOAM Warning :
From function zoneToCell::combine(topoSet&, const bool)
in file sets/cellSources/zoneToCell/zoneToCell.C at line 87
Cannot find any cellZone named leftSolid
Valid names are
0
(
)
Writing topAir (size 0) to "constant/polyMesh/sets/topAir" and to
vtk file "VTK/topAir/topAir_1.vtk"
Doing:"cellSet topAir add zoneToCell rightSolid"
Set:topAir Size:0 Action:add
Adding all cells of cellZone rightSolid ...
--> FOAM Warning :
From function zoneToCell::combine(topoSet&, const bool)
in file sets/cellSources/zoneToCell/zoneToCell.C at line 87
Cannot find any cellZone named rightSolid
Valid names are
0
(
)
Writing topAir (size 0) to "constant/polyMesh/sets/topAir" and to
vtk file "VTK/topAir/topAir_1.vtk"
Doing:"cellSet topAir invert"
Set:topAir Size:0 Action:invert
Writing topAir (size 3000) to "constant/polyMesh/sets/topAir" and
to vtk file "VTK/topAir/topAir_1.vtk"
End of batch file
End
/
************************************************************************************************************/
Create
time
Create polyMesh for time = 0.002
Searched : "0.002/polyMesh/sets"
Found :
0
(
)
Writing mesh.
End
/
************************************************************************************************************/
constant/polyMesh/sets/topAir は作成されましたが、中身を見ると要素数がblockMeshの
数の3000となっています。どこか私の設定に良くない点があったのでしょうか?
また、
> を実行すれば、topAir というcellZones が出来てくれるようです。
> (topAir.stl をベースにSHMで作成したものとは微妙に異なりますが)
このtopAirのcellZonesはどのファイルに記述されるのでしょうか?
最後に、
polyMesh/setsにtopAirのみではなく、デフォルトのチュートリアルのように全ての領域の
データが書き出されるようにするにはどのように設定を変更すればよろしいですか?
以上、よろしくお願いします。