ENH: splitMeshRegions now fills in coupling information in directMapped patch.

- added directMapped*Patch constructors with uniform offset
- changed splitMeshRegions to use it
- adapted chtMultiRegionFoam tutorials
This commit is contained in:
mattijs
2010-01-27 13:24:06 +00:00
parent 6684a0d563
commit 011bbf46bc
17 changed files with 164 additions and 275 deletions

View File

@ -18,30 +18,13 @@ dictionaryReplacement
{
boundary
{
".*"
minX
{
type wall;
}
bottomAir_to_leftSolid
maxX
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_bottomAir;
}
bottomAir_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_bottomAir;
}
bottomAir_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_bottomAir;
type wall;
}
}

View File

@ -18,37 +18,17 @@ dictionaryReplacement
{
boundary
{
".*"
minY
{
type patch;
}
heater_to_bottomAir
minZ
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_heater;
type patch;
}
heater_to_leftSolid
maxZ
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_heater;
}
heater_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_heater;
}
heater_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_heater;
type patch;
}
}

View File

@ -18,30 +18,13 @@ dictionaryReplacement
{
boundary
{
".*"
minZ
{
type patch;
}
leftSolid_to_bottomAir
maxZ
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_leftSolid;
}
leftSolid_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_leftSolid;;
}
leftSolid_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_leftSolid;;
type patch;
}
}

View File

@ -18,30 +18,13 @@ dictionaryReplacement
{
boundary
{
".*"
minZ
{
type patch;
}
rightSolid_to_heater
maxZ
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_rightSolid;
}
rightSolid_to_bottomAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_rightSolid;
}
rightSolid_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_rightSolid;
type patch;
}
}

View File

@ -16,43 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
".*"
{
type wall;
}
minX
{
type patch;
}
maxX
{
type patch;
}
topAir_to_leftSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_topAir;
}
topAir_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_topAir;
}
topAir_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_topAir;
}
}
U
{
internalField uniform (0.01 0 0);

View File

@ -16,31 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
bottomAir_to_leftSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_bottomAir;
}
bottomAir_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_bottomAir;
}
bottomAir_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_bottomAir;
}
}
U
{
internalField uniform (0 0 0);

View File

@ -16,38 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
heater_to_bottomAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_heater;
}
heater_to_leftSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_heater;
}
heater_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_heater;
}
heater_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_heater;
}
}
T
{
internalField uniform 300;

View File

@ -16,31 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
leftSolid_to_bottomAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_leftSolid;
}
leftSolid_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_leftSolid;;
}
leftSolid_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_leftSolid;;
}
}
T
{
internalField uniform 300;

View File

@ -16,31 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
rightSolid_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_rightSolid;
}
rightSolid_to_bottomAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion bottomAir;
samplePatch bottomAir_to_rightSolid;
}
rightSolid_to_topAir
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion topAir;
samplePatch topAir_to_rightSolid;
}
}
T
{
internalField uniform 300;

View File

@ -16,31 +16,6 @@ FoamFile
dictionaryReplacement
{
boundary
{
topAir_to_leftSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion leftSolid;
samplePatch leftSolid_to_topAir;
}
topAir_to_heater
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion heater;
samplePatch heater_to_topAir;
}
topAir_to_rightSolid
{
offset ( 0 0 0 );
sampleMode nearestPatchFace;
sampleRegion rightSolid;
samplePatch rightSolid_to_topAir;
}
}
U
{
internalField uniform ( 0.01 0 0 );