mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Modifying oppositePanels combustion case
This commit is contained in:
@ -110,6 +110,7 @@ void reactingOneDim::updateQr()
|
||||
const volScalarField kappaRad_(kappaRad());
|
||||
|
||||
// Propagate Qr through 1-D regions
|
||||
label totalFaceId = 0;
|
||||
forAll(intCoupledPatchIDs_, i)
|
||||
{
|
||||
const label patchI = intCoupledPatchIDs_[i];
|
||||
@ -121,7 +122,7 @@ void reactingOneDim::updateQr()
|
||||
{
|
||||
const scalar Qr0 = Qrp[faceI];
|
||||
point Cf0 = Cf[faceI];
|
||||
const labelList& cells = boundaryFaceCells_[faceI];
|
||||
const labelList& cells = boundaryFaceCells_[totalFaceId];
|
||||
scalar kappaInt = 0.0;
|
||||
forAll(cells, k)
|
||||
{
|
||||
@ -132,6 +133,7 @@ void reactingOneDim::updateQr()
|
||||
Qr_[cellI] = Qr0*exp(-kappaInt);
|
||||
Cf0 = Cf1;
|
||||
}
|
||||
totalFaceId ++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -156,6 +158,7 @@ void reactingOneDim::updatePhiGas()
|
||||
const volScalarField& HsiGas = tHsiGas();
|
||||
const volScalarField& RRiGas = tRRiGas();
|
||||
|
||||
label totalFaceId = 0;
|
||||
forAll(intCoupledPatchIDs_, i)
|
||||
{
|
||||
const label patchI = intCoupledPatchIDs_[i];
|
||||
@ -164,7 +167,7 @@ void reactingOneDim::updatePhiGas()
|
||||
|
||||
forAll(phiGasp, faceI)
|
||||
{
|
||||
const labelList& cells = boundaryFaceCells_[faceI];
|
||||
const labelList& cells = boundaryFaceCells_[totalFaceId];
|
||||
scalar massInt = 0.0;
|
||||
forAllReverse(cells, k)
|
||||
{
|
||||
@ -185,6 +188,7 @@ void reactingOneDim::updatePhiGas()
|
||||
<< " [kg/s] " << endl;
|
||||
}
|
||||
}
|
||||
totalFaceId ++;
|
||||
}
|
||||
tHsiGas().clear();
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@ active true;
|
||||
infinitelyFastChemistryCoeffs
|
||||
{
|
||||
C 10;
|
||||
semiImplicit false;
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -31,9 +31,9 @@ FoamFile
|
||||
|
||||
radFluxName Qr;
|
||||
|
||||
minimumDelta 1e-8;
|
||||
minimumDelta 1e-12;
|
||||
|
||||
reactionDeltaMin 1e-8;
|
||||
reactionDeltaMin 1e-12;
|
||||
|
||||
moveMesh false;
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ fvDOMCoeffs
|
||||
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)
|
||||
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
|
||||
|
||||
@ -16,25 +16,25 @@ FoamFile
|
||||
|
||||
application fireFoam;
|
||||
|
||||
startFrom startTime;
|
||||
startFrom latestTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 15.0;
|
||||
endTime 15;
|
||||
|
||||
deltaT 0.03;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 0.5;
|
||||
writeInterval 1
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat ascii;
|
||||
|
||||
writePrecision 6;
|
||||
writePrecision 12;
|
||||
|
||||
writeCompression off;
|
||||
|
||||
|
||||
@ -70,6 +70,7 @@ fluxRequired
|
||||
{
|
||||
default no;
|
||||
p_rgh;
|
||||
phiMesh;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ solvers
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
rhoThermo
|
||||
rho
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner DIC;
|
||||
|
||||
Reference in New Issue
Block a user