mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updating tutorials for view factors generation
This commit is contained in:
@ -9,11 +9,11 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
#-- Run on single processor
|
#-- Run on single processor
|
||||||
|
|
||||||
# Agglomerate patch faces
|
# Agglomerate patch faces
|
||||||
for region in air
|
#for region in air
|
||||||
do
|
#do
|
||||||
runApplication -s $region \
|
# runApplication -s $region \
|
||||||
faceAgglomerate -region $region -dict constant/viewFactorsDict
|
# faceAgglomerate -region $region -dict constant/viewFactorsDict
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Generate view factors
|
# Generate view factors
|
||||||
for region in air
|
for region in air
|
||||||
|
|||||||
@ -12,11 +12,11 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
runApplication decomposePar -allRegions -constant
|
runApplication decomposePar -allRegions -constant
|
||||||
|
|
||||||
# Agglomerate patch faces
|
# Agglomerate patch faces
|
||||||
for region in air
|
#for region in air
|
||||||
do
|
#do
|
||||||
runParallel -s $region \
|
# runParallel -s $region \
|
||||||
faceAgglomerate -region $region -dict constant/viewFactorsDict
|
# faceAgglomerate -region $region -dict constant/viewFactorsDict
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Generate view factors
|
# Generate view factors
|
||||||
for region in air
|
for region in air
|
||||||
|
|||||||
@ -15,7 +15,6 @@ FoamFile
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
writeViewFactorMatrix true;
|
writeViewFactorMatrix true;
|
||||||
writeFacesAgglomeration true;
|
|
||||||
writePatchViewFactors false;
|
writePatchViewFactors false;
|
||||||
// dumpRays true;
|
// dumpRays true;
|
||||||
|
|
||||||
|
|||||||
@ -9,11 +9,11 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
#-- Run on single processor
|
#-- Run on single processor
|
||||||
|
|
||||||
# Agglomerate patch faces
|
# Agglomerate patch faces
|
||||||
for region in bottomAir topAir
|
#for region in bottomAir topAir
|
||||||
do
|
#do
|
||||||
runApplication -s "$region" \
|
# runApplication -s "$region" \
|
||||||
faceAgglomerate -region "$region" -dict constant/viewFactorsDict
|
# faceAgglomerate -region "$region" -dict constant/viewFactorsDict
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Generate view factors
|
# Generate view factors
|
||||||
for region in bottomAir topAir
|
for region in bottomAir topAir
|
||||||
|
|||||||
@ -12,11 +12,11 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
runApplication decomposePar -allRegions
|
runApplication decomposePar -allRegions
|
||||||
|
|
||||||
# Agglomerate patch faces
|
# Agglomerate patch faces
|
||||||
for region in bottomAir topAir
|
#for region in bottomAir topAir
|
||||||
do
|
#do
|
||||||
runParallel -s "$region" \
|
# runParallel -s "$region" \
|
||||||
faceAgglomerate -region "$region" -dict constant/viewFactorsDict
|
# faceAgglomerate -region "$region" -dict constant/viewFactorsDict
|
||||||
done
|
#done
|
||||||
|
|
||||||
# Generate view factors
|
# Generate view factors
|
||||||
for region in bottomAir topAir
|
for region in bottomAir topAir
|
||||||
|
|||||||
@ -15,56 +15,6 @@ FoamFile
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
writeViewFactorMatrix true;
|
writeViewFactorMatrix true;
|
||||||
writeFacesAgglomeration true;
|
|
||||||
writePatchViewFactors false;
|
|
||||||
|
|
||||||
bottomAir_to_heater
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 30;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
bottomAir_to_leftSolid
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
bottomAir_to_rightSolid
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
minX
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 10;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
minY
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 30;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
minZ
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
maxX
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 10;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
maxZ
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -15,56 +15,5 @@ FoamFile
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
writeViewFactorMatrix true;
|
writeViewFactorMatrix true;
|
||||||
writeFacesAgglomeration true;
|
|
||||||
writePatchViewFactors false;
|
|
||||||
|
|
||||||
topAir_to_heater
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 24;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
topAir_to_leftSolid
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
topAir_to_rightSolid
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
minX
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 10;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
maxY
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 40;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
minZ
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
maxX
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 10;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
maxZ
|
|
||||||
{
|
|
||||||
nFacesInCoarsestLevel 20;
|
|
||||||
featureAngle 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
Reference in New Issue
Block a user