Integrated Foundation code to commit 104aac5

This commit is contained in:
Andrew Heather
2017-05-17 16:35:18 +01:00
590 changed files with 5963 additions and 3699 deletions

View File

@ -16,43 +16,38 @@ FoamFile
dynamicFvMesh dynamicRefineFvMesh;
// Refine every refineInterval timesteps
refineInterval 1;
dynamicRefineFvMeshCoeffs
{
// Maximum refinement level (starts from 0)
maxRefinement 2;
// Refine every refineInterval timesteps
refineInterval 1;
// Maximum cell limit (approximate)
maxCells 10000;
// Maximum refinement level (starts from 0)
maxRefinement 2;
// volScalarField to base refinement on
field normalisedGradP;
// Maximum cell limit (approximate)
maxCells 10000;
nBufferLayers 1;
// volScalarField to base refinement on
field normalisedGradP;
dumpLevel true;
nBufferLayers 1;
lowerRefineLevel 0.5;
upperRefineLevel 1.5;
dumpLevel true;
unrefineLevel 0.5;
lowerRefineLevel 0.5;
upperRefineLevel 1.5;
nBufferLayers 1;
// Newly introduced patch points optionally get projected onto a surface
//projectSurfaces ("fixedWalls4.stl");
//projectPatches (fixedWalls);
// Maximum project distance
//projectDistance 1;
unrefineLevel 0.5;
nBufferLayers 1;
// Newly introduced patch points optionally get projected onto a surface
//projectSurfaces ("fixedWalls4.stl");
//projectPatches (fixedWalls);
// Maximum project distance
//projectDistance 1;
// Fluxes to adapt. For newly created faces or split faces the flux
// gets estimated from an interpolated volVectorField ('velocity')
// First is name of the flux to adapt, second is velocity that will
// be interpolated and inner-producted with the face area vector.
correctFluxes ((phi rhoU) (phi_0 none));
}
// Fluxes to adapt. For newly created faces or split faces the flux
// gets estimated from an interpolated volVectorField ('velocity')
// First is name of the flux to adapt, second is velocity that will
// be interpolated and inner-producted with the face area vector.
correctFluxes ((phi rhoU) (phi_0 none));
// ************************************************************************* //

View File

@ -53,8 +53,8 @@ boundaryField
filmRegion filmRegion;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
qrNbr none;
qr qr;
filmDeltaDry 0.0;
filmDeltaWet 2e-4;
value $internalField;

View File

@ -38,8 +38,8 @@ boundaryField
filmRegion filmRegion;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
qrNbr qr;
qr none;
filmDeltaDry 0.0;
filmDeltaWet 2e-4;
value uniform 298;

View File

@ -11,7 +11,7 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object Qr;
object qr;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -38,7 +38,7 @@ boundaryField
sampleMode nearestPatchFace;
samplePatch region0_to_pyrolysisRegion_coupledWall;
offset (0 0 0);
field Qr; // this is the name of Qr field in region0
field qr; // this is the name of qr field in region0
setAverage no;
average 0;
value uniform 0;

View File

@ -28,9 +28,9 @@ pyrolysis
filmCoupled true;
gasHSource true;
QrHSource false;
qrHSource false;
radFluxName Qr;
radFluxName qr;
moveMesh false; // true;
minimumDelta 1e-6;

View File

@ -51,8 +51,8 @@ boundaryField
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod fluidThermo;
QrNbr none;
Qr Qr;
qrNbr none;
qr qr;
value $internalField;
}
}

View File

@ -42,8 +42,8 @@ boundaryField
type compressible::turbulentTemperatureRadCoupledMixed;
Tnbr T;
kappaMethod solidThermo;
QrNbr Qr;
Qr none;
qrNbr qr;
qr none;
value uniform 298.15;
}

View File

@ -11,7 +11,7 @@ FoamFile
format ascii;
class volScalarField;
location "0";
object Qr;
object qr;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -43,7 +43,7 @@ boundaryField
sampleMode nearestPatchFace;
samplePatch region0_to_panelRegion_fLeft_zone;
offset (0 0 0);
field Qr;
field qr;
setAverage no;
average 0;
value uniform 0;
@ -56,7 +56,7 @@ boundaryField
sampleMode nearestPatchFace;
samplePatch region0_to_panelRegion_fRight_zone;
offset (0 0 0);
field Qr;
field qr;
setAverage no;
average 0;
value uniform 0;

View File

@ -26,7 +26,7 @@ pyrolysis
reactingOneDimCoeffs
{
gasHSource false; //Energy source term due to pyrolysis gas
QrHSource false; //Energy source term due in depht radiation
qrHSource false; //Energy source term due in depht radiation
minimumDelta 1e-12;
reactionDeltaMin 1e-12;

View File

@ -25,7 +25,7 @@ pyrolysis
reactingOneDimCoeffs
{
radFluxName Qr;
radFluxName qr;
minimumDelta 1e-8;

View File

@ -25,7 +25,7 @@ pyrolysis
reactingOneDimCoeffs
{
radFluxName Qr;
radFluxName qr;
minimumDelta 1e-8;

View File

@ -0,0 +1,44 @@
/*--------------------------------*- C++ -*----------------------------------* \
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object G;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 0 -3 0 0 0 0];
internalField uniform 0;
boundaryField
{
".*"
{
type MarshakRadiation;
T T;
emissivityMode lookup;
emissivity uniform 1.0;
value uniform 0;
}
frontAndBack_pos
{
type wedge;
}
frontAndBack_neg
{
type wedge;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,24 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation
{
type radiation;
libs ("libradiationModels.so");
}
// ************************************************************************* //

View File

@ -5,6 +5,7 @@
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
@ -15,48 +16,19 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Radiation model on/off
radiation on;
radiation on;
// Radiation model
radiationModel P1;
// Absorption coefficients model
absorptionEmissionModel greyMeanAbsorptionEmission;
P1Coeffs
{
C C [0 0 0 0 0 0 0] 0;
}
// Number of flow iterations per radiation iteration
solverFreq 1;
//
noRadiation
{
}
// P1 Model
P1Coeffs
{
}
fvDOMCoeffs
{
nPhi 2; // azimuthal angles in PI/2 on X-Y.(from Y to X)
nTheta 2; // polar angles in PI (from Z to X-Y plane)
convergence 1e-1; // convergence criteria for radiation iteration
maxIter 1; // maximum number of iterations
cacheDiv true; // cache the div of the RTE equation.
// NOTE: Caching div is "only" accurate if the upwind scheme is used in
// div(Ji,Ii_h)
}
constantAbsorptionEmissionCoeffs
{
absorptivity absorptivity [ m^-1 ] 0.01;
emissivity emissivity [ m^-1 ] 0.01;
E E [ kg m^-1 s^-3 ] 0;
}
absorptionEmissionModel greyMeanAbsorptionEmission;
greyMeanAbsorptionEmissionCoeffs
{
@ -206,5 +178,4 @@ scatterModel none;
sootModel none;
// ************************************************************************* //

View File

@ -13,6 +13,7 @@ FoamFile
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application reactingFoam;
@ -22,7 +23,7 @@ startTime 0;
stopAt endTime;
endTime 5000;
endTime 7000;
deltaT 1;

View File

@ -56,6 +56,20 @@ solvers
tolerance 1e-8;
relTol 0.1;
}
G
{
solver PCG;
preconditioner DIC;
tolerance 1e-5;
relTol 0.1;
}
GFinal
{
$G;
relTol 0;
}
}
PIMPLE