Adding reflecting fluxes to Solar load radiation model.
Adding functionality to the boundary radiation models and new
place holder for basic wall types such as transparent, opaqueDiffusive,
opaqueReflective,etc.
Changing radiation wall models to run time selectable.
Adding multi-band capabilities to VF model and improving the set up
for using solar loads in VF and fvDOM radiation models.
This commit is contained in:
sergio
2018-12-03 13:51:40 -08:00
committed by Andrew Heather
parent 36112db110
commit 9893e62386
93 changed files with 5062 additions and 1228 deletions

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
down
{
type symmetryPlane;
}
right
{
type zeroGradient;
}
up
{
type symmetryPlane;
}
left
{
type uniformFixedValue;
uniformValue constant (1 0 0);
}
cylinder
{
type symmetry;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
down
{
type symmetryPlane;
}
right
{
type fixedValue;
value uniform 0;
}
up
{
type symmetryPlane;
}
left
{
type zeroGradient;
}
cylinder
{
type symmetry;
}
defaultFaces
{
type empty;
}
}
// ************************************************************************* //

View File

@ -17,16 +17,16 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 0.8;
absorptivity 0.0;
absorptivity 0.8;
}
inlet
{
mode lookup;
type lookup;
emissivity 0.9;
absorptivity 0.0;
absorptivity 0.9;
}

View File

@ -22,8 +22,6 @@ radiationModel opaqueSolid;
absorptionEmissionModel none;
transmissivityModel none;
scatterModel none;
sootModel none;

View File

@ -187,6 +187,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -18,12 +18,16 @@ FoamFile
region0_to_pyrolysisRegion_coupledWall
{
mode solidRadiation;
type opaqueDiffusive;
wallAbsorptionEmissionModel
{
type solidAbsorption;
}
}
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 1.0;
transmissivity 0.0;

View File

@ -37,6 +37,5 @@ greyMeanSolidAbsorptionEmissionCoeffs
scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -52,7 +52,5 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -18,15 +18,17 @@ FoamFile
".*"
{
type boundaryRadiation;
mode lookup;
type lookup;
emissivity 1.0;
}
"(region0_to.*)"
{
type boundaryRadiation;
mode solidRadiation;
type opaqueDiffusive;
wallAbsorptionEmissionModel
{
type solidAbsorption;
}
}

View File

@ -39,6 +39,4 @@ greyMeanSolidAbsorptionEmissionCoeffs
scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -189,6 +189,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
}

View File

@ -30,6 +30,5 @@ greyMeanSolidAbsorptionEmissionCoeffs
}
scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -30,6 +30,5 @@ P1Coeffs
scatterModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,25 +17,25 @@ FoamFile
base
{
mode lookup;
type lookup;
emissivity 1.0;
}
outlet
{
mode lookup;
type lookup;
emissivity 1.0;
}
sides
{
mode lookup;
type lookup;
emissivity 1.0;
}
inlet
{
mode lookup;
type lookup;
emissivity 1.0;
}

View File

@ -194,7 +194,5 @@ mixtureFractionSootCoeffs
Wsoot 12;
}
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,9 +17,8 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 0.0;
}

View File

@ -188,7 +188,5 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 1.0;
}

View File

@ -43,6 +43,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 1.0;
}

View File

@ -35,6 +35,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,7 +17,7 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 1.0;
}

View File

@ -43,6 +43,5 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -54,8 +54,7 @@ boundaryField
air_to_floor
{
type compressible::turbulentTemperatureRadCoupledMixed;
value uniform 300;
inletValue uniform 300;
value uniform 350;
Tnbr T;
kappaMethod fluidThermo;
qrNbr none;
@ -65,8 +64,7 @@ boundaryField
air_to_solid
{
type compressible::turbulentTemperatureRadCoupledMixed;
value uniform 300;
inletValue uniform 300;
value uniform 350;
Tnbr T;
kappaMethod fluidThermo;
qrNbr none;

View File

@ -48,12 +48,14 @@ boundaryField
}
air_to_floor
{
type calculated;
type greyDiffusiveRadiationViewFactor;
qro uniform 0;
value uniform 0;
}
air_to_solid
{
type calculated;
type greyDiffusiveRadiationViewFactor;
qro uniform 0;
value uniform 0;
}
}

View File

@ -17,7 +17,7 @@ FoamFile
dimensions [ 0 0 0 1 0 0 0 ];
internalField uniform 300;
internalField uniform 350;
boundaryField
{
@ -29,7 +29,7 @@ boundaryField
solid_to_air
{
type compressible::turbulentTemperatureRadCoupledMixed;
value uniform 300;
value uniform 350;
Tnbr T;
kappaMethod solidThermo;
qrNbr qr;

View File

@ -15,4 +15,6 @@ rm -f constant/air/globalFaceFaces
rm -f constant/air/mapDist
rm -f constant/air/visibleFaceFaces
rm -rf constant/triSurface
#------------------------------------------------------------------------------

View File

@ -17,20 +17,41 @@ FoamFile
".*"
{
mode lookup;
emissivity 1.0;
absorptivity 0.0;
transmissivity 1.0;
type transparent;
wallAbsorptionEmissionModel
{
type multiBandAbsorption;
emissivity (1 1);
absorptivity (0 0);
}
}
air_to_solid
{
mode solidRadiation;
type opaqueReflective;
// Fraction of the reflected is diffussive
fd 0.0; // 0: all specular 1: all diffusive
wallAbsorptionEmissionModel
{
type solidAbsorption;
//multiBandAbsorption;
//absorptivity (0.1 0.1);
//emissivity (0.1 0.1);
};
}
air_to_floor
{
mode solidRadiation;
type opaqueDiffusive;
wallAbsorptionEmissionModel
{
type multiBandAbsorption;
absorptivity (0.3 0.7);
emissivity (0.3 0.7);
};
}
// ************************************************************************* //

View File

@ -17,21 +17,19 @@ FoamFile
radiation on;
radiationModel solarLoad;
radiationModel viewFactor;//solarLoad;
solarLoadCoeffs
{
// Calculate reflected/secondary heat fluxes
useVFbeamToDiffuse true;
// Sun direction ray model. Give the sunDirection or calculated using the
// (solar calculator)
sunDirectionModel sunDirTracking;//sunDirConstant;
sunDirectionModel sunDirTracking; //sunDirConstant
// Time interval to update Sun position (sec)
sunTrackingUpdateInterval 800;
//sunDirection (-1 1 -1);
//sunDirection (1 0 -1);
localStandardMeridian 9; // GMT offset (hours)
startDay 204; // day of the year
@ -39,12 +37,13 @@ solarLoadCoeffs
longitude 139.74; // longitude (degrees)
latitude 35.658; // latitude (degrees)
// Grid orientation
gridUp (0 0 1);
gridEast (1 0 0);
// Energy spectrum
spectralDistribution (1 1);
spectralDistribution (2 1);
// Solar model:
@ -52,14 +51,14 @@ solarLoadCoeffs
sunLoadModel sunLoadFairWeatherConditions;
// Sun load constant model
directSolarRad 500; // [w/m2]
diffuseSolarRad 40; // [w/m2]
//directSolarRad 500; // [w/m2]
//diffuseSolarRad 40; // [w/m2]
// Fair Weather Conditions Model Constants.
// Calculate beta from the Solar calculator or input
A 300; // Apparent solar irradiation at air mass m = 0
A 500; // Apparent solar irradiation at air mass m = 0
B 0.142; // Atmospheric extinction coefficient
//beta 45; // Solar altitude (in degrees) above the horizontal
//beta 45; // Solar altitude (in degrees) above the horizontal
// Theoretical maximum model constants
Setrn 10;
@ -74,6 +73,19 @@ solarLoadCoeffs
// Radiative flux coupling flags
solidCoupled true; //Couple through qr the solid regions (default true)
wallCoupled false; //Couple through qr wall patches (default false)
// Reflecting rays
useReflectedRays true;
reflecting
{
nPhi 10;
nTheta 10;
}
absorptionEmissionModel none;
scatterModel none;
sootModel none;
}
@ -82,6 +94,10 @@ viewFactorCoeffs
smoothing true; //Smooth view factor matrix (use when in a close surface
//to force Sum(Fij = 1)
constantEmissivity true; //constant emissivity on surfaces.
nBands 2;
useSolarLoad true;
}
// Number of flow iterations per radiation iteration
@ -93,6 +109,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -24,15 +24,8 @@ absorptionEmissionModel multiBandSolidAbsorptionEmission;
multiBandSolidAbsorptionEmissionCoeffs
{
absorptivity (0.7 0.7);
emissivity (0.7 0.7);
}
transmissivityModel multiBandSolidTransmissivity;
multiBandSolidTransmissivityCoeffs
{
transmissivity (0 0);
absorptivity (0.3 0.7);
emissivity (0.3 0.7);
}
scatterModel none;

View File

@ -24,15 +24,8 @@ absorptionEmissionModel multiBandSolidAbsorptionEmission;
multiBandSolidAbsorptionEmissionCoeffs
{
absorptivity (0.7 0.7);
emissivity (0.7 0.7);
}
transmissivityModel multiBandSolidTransmissivity;
multiBandSolidTransmissivityCoeffs
{
transmissivity (0 0);
absorptivity (0.1 0.1);
emissivity (0.1 0.1);
}
scatterModel none;

View File

@ -18,15 +18,18 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
absorptivity 1.0;
}
"bottomAir_to_.*"
{
type boundaryRadiation;
mode solidRadiation;
type opaqueDiffusive;
wallAbsorptionEmissionModel
{
type solidAbsorption;
}
}

View File

@ -42,7 +42,4 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -33,5 +33,5 @@ scatterModel none;
sootModel none;
transmissivityModel none;
// ************************************************************************* //

View File

@ -17,13 +17,17 @@ FoamFile
".*"
{
mode lookup;
type lookup;
emissivity 1.0;
}
"topAir_to_.*"
{
mode solidRadiation;
type opaqueDiffusive;
wallAbsorptionEmissionModel
{
type solidAbsorption;
}
}
// ************************************************************************* //