ENH: Modifying oppositePanels combustion case

This commit is contained in:
sergio
2012-08-08 10:27:40 +01:00
parent 4604b692f8
commit 0731c47257
7 changed files with 16 additions and 10 deletions

View File

@ -110,6 +110,7 @@ void reactingOneDim::updateQr()
const volScalarField kappaRad_(kappaRad()); const volScalarField kappaRad_(kappaRad());
// Propagate Qr through 1-D regions // Propagate Qr through 1-D regions
label totalFaceId = 0;
forAll(intCoupledPatchIDs_, i) forAll(intCoupledPatchIDs_, i)
{ {
const label patchI = intCoupledPatchIDs_[i]; const label patchI = intCoupledPatchIDs_[i];
@ -121,7 +122,7 @@ void reactingOneDim::updateQr()
{ {
const scalar Qr0 = Qrp[faceI]; const scalar Qr0 = Qrp[faceI];
point Cf0 = Cf[faceI]; point Cf0 = Cf[faceI];
const labelList& cells = boundaryFaceCells_[faceI]; const labelList& cells = boundaryFaceCells_[totalFaceId];
scalar kappaInt = 0.0; scalar kappaInt = 0.0;
forAll(cells, k) forAll(cells, k)
{ {
@ -132,6 +133,7 @@ void reactingOneDim::updateQr()
Qr_[cellI] = Qr0*exp(-kappaInt); Qr_[cellI] = Qr0*exp(-kappaInt);
Cf0 = Cf1; Cf0 = Cf1;
} }
totalFaceId ++;
} }
} }
@ -156,6 +158,7 @@ void reactingOneDim::updatePhiGas()
const volScalarField& HsiGas = tHsiGas(); const volScalarField& HsiGas = tHsiGas();
const volScalarField& RRiGas = tRRiGas(); const volScalarField& RRiGas = tRRiGas();
label totalFaceId = 0;
forAll(intCoupledPatchIDs_, i) forAll(intCoupledPatchIDs_, i)
{ {
const label patchI = intCoupledPatchIDs_[i]; const label patchI = intCoupledPatchIDs_[i];
@ -164,7 +167,7 @@ void reactingOneDim::updatePhiGas()
forAll(phiGasp, faceI) forAll(phiGasp, faceI)
{ {
const labelList& cells = boundaryFaceCells_[faceI]; const labelList& cells = boundaryFaceCells_[totalFaceId];
scalar massInt = 0.0; scalar massInt = 0.0;
forAllReverse(cells, k) forAllReverse(cells, k)
{ {
@ -185,6 +188,7 @@ void reactingOneDim::updatePhiGas()
<< " [kg/s] " << endl; << " [kg/s] " << endl;
} }
} }
totalFaceId ++;
} }
tHsiGas().clear(); tHsiGas().clear();
} }

View File

@ -22,6 +22,7 @@ active true;
infinitelyFastChemistryCoeffs infinitelyFastChemistryCoeffs
{ {
C 10; C 10;
semiImplicit false;
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -31,9 +31,9 @@ FoamFile
radFluxName Qr; radFluxName Qr;
minimumDelta 1e-8; minimumDelta 1e-12;
reactionDeltaMin 1e-8; reactionDeltaMin 1e-12;
moveMesh false; moveMesh false;
} }

View File

@ -33,7 +33,7 @@ fvDOMCoeffs
nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X) nPhi 3; // azimuthal angles in PI/2 on X-Y.(from Y to X)
nTheta 6; // polar angles in PI (from Z to X-Y plane) nTheta 6; // polar angles in PI (from Z to X-Y plane)
convergence 1e-4; // convergence criteria for radiation iteration convergence 1e-4; // convergence criteria for radiation iteration
maxIter 4; // maximum number of iterations maxIter 2; // maximum number of iterations
} }
// Number of flow iterations per radiation iteration // Number of flow iterations per radiation iteration

View File

@ -16,25 +16,25 @@ FoamFile
application fireFoam; application fireFoam;
startFrom startTime; startFrom latestTime;
startTime 0; startTime 0;
stopAt endTime; stopAt endTime;
endTime 15.0; endTime 15;
deltaT 0.03; deltaT 0.03;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 0.5; writeInterval 1
purgeWrite 0; purgeWrite 0;
writeFormat ascii; writeFormat ascii;
writePrecision 6; writePrecision 12;
writeCompression off; writeCompression off;

View File

@ -70,6 +70,7 @@ fluxRequired
{ {
default no; default no;
p_rgh; p_rgh;
phiMesh;
} }

View File

@ -32,7 +32,7 @@ solvers
relTol 0; relTol 0;
} }
rhoThermo rho
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;