Tutorial updates

This commit is contained in:
Hrvoje Jasak 2011-08-25 00:11:43 +01:00
parent 4abbb47ee4
commit 4bbe67ebbe
5 changed files with 28 additions and 226 deletions

View file

@ -8,6 +8,11 @@ runApplication setSet -batch makeCellSets.setSet
rm constant/polyMesh/sets/*_old rm constant/polyMesh/sets/*_old
runApplication setsToZones -noFlipMap runApplication setsToZones -noFlipMap
runApplication splitMeshRegions -cellZones runApplication splitMeshRegions -cellZones
cp 0/* 0.001/bottomAir/
cp 0/* 0.001/heater/
cp 0/* 0.001/leftSolid/
cp 0/* 0.001/rightSolid/
cp 0/* 0.001/topAir/
changeDictionary -region bottomAir changeDictionary -region bottomAir
changeDictionary -region topAir changeDictionary -region topAir
changeDictionary -region heater changeDictionary -region heater

View file

@ -17,5 +17,6 @@ rm -rf constant/topAir/polyMesh
rm -rf constant/heater/polyMesh rm -rf constant/heater/polyMesh
rm -rf constant/leftSolid/polyMesh rm -rf constant/leftSolid/polyMesh
rm -rf constant/rightSolid/polyMesh rm -rf constant/rightSolid/polyMesh
rm -f snappyMultiRegionHeater/constant/cellLevel snappyMultiRegionHeater/constant/pointLevel snappyMultiRegionHeater/constant/polyMesh/refinementHistory
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

View file

@ -9,6 +9,13 @@ runApplication blockMesh
runApplication snappyHexMesh -overwrite runApplication snappyHexMesh -overwrite
runApplication splitMeshRegions -cellZones runApplication splitMeshRegions -cellZones
# copy fields
cp 0/* 0.001/bottomAir/
cp 0/* 0.001/heater/
cp 0/* 0.001/leftSolid/
cp 0/* 0.001/rightSolid/
cp 0/* 0.001/topAir/
# remove fluid fields from solid regions (important for post-processing) # remove fluid fields from solid regions (important for post-processing)
for i in heater leftSolid rightSolid for i in heater leftSolid rightSolid
do do
@ -26,7 +33,6 @@ do
changeDictionary -region $i > log.changeDictionary.$i 2>&1 changeDictionary -region $i > log.changeDictionary.$i 2>&1
done done
#-- Run on single processor #-- Run on single processor
runApplication chtMultiRegionFoam runApplication chtMultiRegionFoam

View file

@ -1,6 +1,6 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD | | \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext | | \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de | | \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | | | \\/ M anipulation | |
@ -15,253 +15,43 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 6
( (
maxY maxY
{ {
type wall; type wall;
nFaces 1200; nFaces 300;
startFace 41630; startFace 8300;
} }
minX minX
{ {
type patch; type patch;
nFaces 250; nFaces 100;
startFace 42830; startFace 8600;
} }
maxX maxX
{ {
type patch; type patch;
nFaces 250; nFaces 100;
startFace 43080; startFace 8700;
} }
minY minY
{ {
type wall; type wall;
nFaces 1200; nFaces 300;
startFace 43330; startFace 8800;
} }
minZ minZ
{ {
type wall; type wall;
nFaces 750; nFaces 300;
startFace 44530; startFace 9100;
} }
maxZ maxZ
{ {
type wall; type wall;
nFaces 750; nFaces 300;
startFace 45280; startFace 9400;
}
bottomAir_minX
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_maxX
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_minY
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_minZ
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_maxZ
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_bottomAir_to_rightSolid
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_bottomAir_to_leftSolid
{
type wall;
nFaces 0;
startFace 46030;
}
bottomAir_bottomAir_to_heater
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_maxY
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_minX
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_maxX
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_minZ
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_maxZ
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_topAir_to_rightSolid
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_topAir_to_heater
{
type wall;
nFaces 0;
startFace 46030;
}
topAir_topAir_to_leftSolid
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_minX
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_minZ
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_maxZ
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_leftSolid_to_bottomAir
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_leftSolid_to_heater
{
type wall;
nFaces 0;
startFace 46030;
}
leftSolid_leftSolid_to_topAir
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_maxX
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_minZ
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_maxZ
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_rightSolid_to_bottomAir
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_rightSolid_to_topAir
{
type wall;
nFaces 0;
startFace 46030;
}
rightSolid_rightSolid_to_heater
{
type wall;
nFaces 0;
startFace 46030;
}
heater_minY
{
type wall;
nFaces 0;
startFace 46030;
}
heater_minZ
{
type wall;
nFaces 0;
startFace 46030;
}
heater_maxZ
{
type wall;
nFaces 0;
startFace 46030;
}
heater_heater_to_topAir
{
type wall;
nFaces 0;
startFace 46030;
}
heater_heater_to_rightSolid
{
type wall;
nFaces 0;
startFace 46030;
}
heater_heater_to_leftSolid
{
type wall;
nFaces 0;
startFace 46030;
}
heater_heater_to_bottomAir
{
type wall;
nFaces 0;
startFace 46030;
} }
) )

View file

@ -1,6 +1,6 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD | | \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext | | \\ / O peration | Version: 1.6-ext |
| \\ / A nd | Web: www.extend-project.de | | \\ / A nd | Web: www.extend-project.de |
| \\/ M anipulation | | | \\/ M anipulation | |