下記はsimpleCHTでのsplitMeshRegionsコマンド実行ログです。
-----------------------------------------------------------
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.4.x-e713234c04f6
Exec : splitMeshRegions -cellZones -overwrite
Date : Jun 24 2016
Time : 11:55:34
Host : "dexcs2015"
PID : 13608
Case : /opt/OpenFOAM/me8000166-2.4.x/run/simpleCHT
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Creating single patch per inter-region interface.
Trying to match regions to existing cell zones.
Number of regions:2
Writing region per cell file (for manual decomposition) to "/opt/OpenFOAM/me8000166-2.4.x/run/simpleCHT/constant/cellToRegion"
Writing region per cell as volScalarField to "/opt/OpenFOAM/me8000166-2.4.x/run/simpleCHT/0/cellToRegion"
Region Cells
------ -----
0 280
1 120
Region Zone Name
------ ---- ----
0 0 air
1 1 solid
Sizes of interfaces between regions:
Interface Region Region Faces
--------- ------ ------ -----
0 0 1 20
Reading volScalarField cellToRegion
Reading volScalarField p
Reading volScalarField T
Reading volScalarField k
Reading volScalarField epsilon
Reading volScalarField p_rgh
Reading volVectorField U
Adding patches
Adding patches
For interface between region air and solid added patches
5 air_to_solid
6 solid_to_air
Region 0
--------
Creating mesh for region 0 air
Testing:"/opt/OpenFOAM/me8000166-2.4.x/run/simpleCHT/system/air/fvSchemes"
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region0 points back to base mesh.
Writing map faceRegionAddressing from region0 faces back to base mesh.
Writing map cellRegionAddressing from region0 cells back to base mesh.
Writing map boundaryRegionAddressing from region0 boundary back to base mesh.
Region 1
--------
Creating mesh for region 1 solid
Testing:"/opt/OpenFOAM/me8000166-2.4.x/run/simpleCHT/system/solid/fvSchemes"
Mapping fields
Mapping field cellToRegion
Mapping field k
Mapping field p_rgh
Mapping field p
Mapping field T
Mapping field epsilon
Mapping field U
Deleting empty patches
Writing new mesh
Writing addressing to base mesh
Writing map pointRegionAddressing from region1 points back to base mesh.
Writing map faceRegionAddressing from region1 faces back to base mesh.
Writing map cellRegionAddressing from region1 cells back to base mesh.
Writing map boundaryRegionAddressing from region1 boundary back to base mesh.
End
-----------------------------------------------------------
Interface Region Region Faces
--------- ------ ------ -----
0 0 1 20
Reading volScalarField cellToRegion
Reading volScalarField p
Reading volScalarField T
Reading volScalarField k
Reading volScalarField epsilon
Reading volScalarField p_rgh
Reading volVectorField U
Adding patches
Adding patches
For interface between region air and solid added patches
5 air_to_solid
6 solid_to_air
Interface Region Region Faces
--------- ------ ------ -----
Reading volScalarField alphat
Reading volScalarField p_rgh
Reading volScalarField mut
Reading volScalarField cellToRegion
Reading volScalarField p
Reading volScalarField T
Reading volScalarField k
Reading volScalarField epsilon
Reading volVectorField U
Adding patches
Adding patches
その結果、constant/air/polyMesh/boundaryデータが
simpleCHTでは
air_to_solid
{
type mappedWall;
inGroups 1(wall);
nFaces 20;
startFace 1134;
sampleMode nearestPatchFace;
sampleRegion solid;
samplePatch solid_to_air;
}
となっていますが、私のモデルでは
Copy_heater_air
{
type wall;
inGroups 1(wall);
nFaces 239;
startFace 525295;
}
となっています。
皆様からのアドバイスをお待ちしております。
2016年6月23日木曜日 12時07分09秒 UTC+9 art.sugawara:
前回同様、春日様のサイトにあったsimpleCHTとの比較をしています。
(チュートリアルのmultiRegionheaterでも同様ですが)
5
(
top
{
type wall;
inGroups 1(wall);
nFaces 20;
startFace 760;
}
bottom
{
type wall;
inGroups 1(wall);
nFaces 20;
startFace 780;
}
left
{
type patch;
nFaces 20;
startFace 800;
}
right
{
type patch;
nFaces 20;
startFace 820;
}
frontAndBack
{
type empty;
inGroups 1(empty);
nFaces 800;
startFace 840;
}
)
// ************************************************************************* //
topoSetで作られたcellSetとcellZoneがsetSetコマンドで確認できます。
Time:0 cells:400 faces:1640 points:882 patches:5 bb:(0 0 0) (1 1 0.1)
cellSets:
air size:280
solid size:120
cellZones:
air size:280
solid size:120
splitMeshRegions -cellZones -detectOnlyを実行すると
Interfaceが認識されています。
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.4.x-e713234c04f6
Exec : splitMeshRegions -cellZones -detectOnly
Date : Jun 28 2016
Time : 11:29:04
Host : "dexcs2015"
PID : 18598
splitMeshRegions -cellZonesを実行後のconstant/air/polyMesh/boundaryです。
Interface境界がmappedWallタイプとして追加定義されています。
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/air/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
5
(
bottom
{
type wall;
inGroups 1(wall);
nFaces 20;
startFace 526;
}
left
{
type patch;
nFaces 14;
startFace 546;
}
right
{
type patch;
nFaces 14;
startFace 560;
}
frontAndBack
{
type empty;
inGroups 1(empty);
nFaces 560;
startFace 574;
}
air_to_solid
{
type mappedWall;
inGroups 1(wall);
nFaces 20;
startFace 1134;
sampleMode nearestPatchFace;
sampleRegion solid;
samplePatch solid_to_air;
}
)
// ************************************************************************* //
9
(
Copy_heater_air
{
type wall;
inGroups 1(wall);
nFaces 239;
startFace 791738;
}
outlet
{
type patch;
nFaces 395;
startFace 791977;
}
Copy_pipe_air
{
type wall;
inGroups 1(wall);
nFaces 17130;
startFace 792372;
}
inlet
{
type patch;
nFaces 377;
startFace 809502;
}
heater_air
{
type wall;
inGroups 1(wall);
nFaces 239;
startFace 809879;
}
Copy_pipe_heater
{
type wall;
inGroups 1(wall);
nFaces 156;
startFace 810118;
}
pipe_air
{
type wall;
inGroups 1(wall);
nFaces 17130;
startFace 810274;
}
pipe_side
{
type wall;
inGroups 1(wall);
nFaces 19512;
startFace 827404;
}
pipe_heater
{
type wall;
inGroups 1(wall);
nFaces 156;
startFace 846916;
}
)
// ************************************************************************* //
setSetコマンドでcellSetとcellZoneができているのが確認できます。
Time:0 cells:140902 faces:847072 points:670692 patches:9 bb:(0 -0.1 -0.1) (4.1 6 1.1)
cellSets:
air size:93017
heater size:420
pipe size:47465
cellZones:
air size:93017
heater size:420
pipe size:47465
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
Creating single patch per inter-region interface.
Trying to match regions to existing cell zones.
Number of regions:3
Writing region per cell file (for manual decomposition) to "/opt/OpenFOAM/me8000166-2.4.x/run/poly_cht/constant/cellToRegion"
Writing region per cell as volScalarField to "/opt/OpenFOAM/me8000166-2.4.x/run/poly_cht/0/cellToRegion"
よろしくお願いいたします。
2016年6月24日金曜日 13時25分23秒 UTC+9 art.sugawara: