GIT: Resolve conflict

This commit is contained in:
andy
2011-11-02 12:50:27 +00:00
77 changed files with 1262 additions and 2878 deletions

View File

@ -7,7 +7,7 @@
);
// Add resistance on the actuation disks
actuationDisks.addSu(UEqn());
sources.apply(UEqn());
UEqn().relax();

View File

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
#include "createFields.H"
#include "initContinuityErrs.H"
IObasicSourceList actuationDisks(mesh);
IObasicSourceList sources(mesh);
simpleControl simple(mesh);

View File

@ -41,7 +41,7 @@ Description
#include "rhoChemistryCombustionModel.H"
#include "radiationModel.H"
#include "porousZones.H"
#include "timeActivatedExplicitSource.H"
#include "IObasicSourceList.H"
#include "SLGThermo.H"
#include "fvcSmooth.H"
#include "pimpleControl.H"

View File

@ -7,9 +7,10 @@
==
rho.dimensionedInternalField()*g
+ parcels.SU(U)
+ momentumSource.Su()
);
sources.apply(UEqn);
pZones.addResistance(UEqn);
if (pimple.momentumPredictor())

View File

@ -23,7 +23,7 @@ if (solveSpecies)
{
volScalarField& Yi = Y[i];
solve
fvScalarMatrix YEqn
(
fvm::ddt(rho, Yi)
+ mvConvection->fvmDiv(phi, Yi)
@ -31,10 +31,12 @@ if (solveSpecies)
==
parcels.SYi(i, Yi)
+ combustion->R(Yi)
+ massSource.Su(i),
mesh.solver("Yi")
);
sources.apply(YEqn);
YEqn.solve(mesh.solver("Yi"));
Yi.max(0.0);
Yt += Yi;
}

View File

@ -1,27 +1,2 @@
Info<< "Creating mass source\n" << endl;
scalarTimeActivatedExplicitSourceList massSource
(
"mass",
mesh,
dimMass/dimTime/dimVolume,
composition.species()
);
Info<< "Creating momentum source\n" << endl;
vectorTimeActivatedExplicitSourceList momentumSource
(
"momentum",
mesh,
dimMass*dimVelocity/dimTime/dimVolume,
"U"
);
Info<< "Creating energy source\n" << endl;
scalarTimeActivatedExplicitSourceList energySource
(
"energy",
mesh,
dimEnergy/dimTime/dimVolume,
"h"
);
Info<< "Creating sources\n" << endl;
IObasicSourceList sources(mesh);

View File

@ -8,10 +8,11 @@
DpDt
+ parcels.Sh(hs)
+ radiation->Shs(thermo)
+ energySource.Su()
+ combustion->Sh()
);
sources.apply(hsEqn);
hsEqn.solve();
thermo.correct();

View File

@ -29,9 +29,10 @@
+ fvc::div(phi)
==
parcels.Srho()
+ massSource.SuTot()
);
sources.apply(pDDtEqn);
while (pimple.correctNonOrthogonal())
{
fvScalarMatrix pEqn

View File

@ -36,9 +36,10 @@ Description
+ fvc::div(phi)
==
parcels.Srho(rho)
+ massSource.SuTot()
);
sources.apply(rhoEqn);
rhoEqn.solve();
Info<< "rho min/max = " << min(rho).value() << ", " << max(rho).value()

View File

@ -76,7 +76,7 @@ Info<< "Time scales min/max:" << endl;
(
DpDt
+ parcels.hsTrans()/(mesh.V()*runTime.deltaT())
+ energySource.Su()
// + energySource.Su()
+ combustion->Sh()()
)
/rho

View File

@ -9,6 +9,8 @@
+ limestoneParcels.SU(U)
);
sources.apply(UEqn);
UEqn.relax();
if (pimple.momentumPredictor())

View File

@ -32,6 +32,8 @@ tmp<fv::convectionScheme<scalar> > mvConvection
+ combustion->R(Yi)
);
sources.apply(YiEqn);
YiEqn.relax();
YiEqn.solve(mesh.solver("Yi"));

View File

@ -40,7 +40,7 @@ Description
#include "basicThermoCloud.H"
#include "coalCloud.H"
#include "psiChemistryCombustionModel.H"
#include "timeActivatedExplicitSource.H"
#include "IObasicSourceList.H"
#include "radiationModel.H"
#include "SLGThermo.H"
#include "pimpleControl.H"

View File

@ -122,14 +122,8 @@
fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p)
);
Info<< "\nConstructing explicit enthalpy source" << endl;
scalarTimeActivatedExplicitSourceList enthalpySource
(
"energy",
mesh,
dimEnergy/dimTime/dimVolume,
"hs"
);
Info<< "\nConstructing sources" << endl;
IObasicSourceList sources(mesh);
volScalarField dQ
(

View File

@ -9,10 +9,11 @@
+ combustion->Sh()
+ coalParcels.Sh(hs)
+ limestoneParcels.Sh(hs)
+ enthalpySource.Su()
+ radiation->Shs(thermo)
);
sources.apply(hsEqn);
hsEqn.relax();
hsEqn.solve();

View File

@ -26,6 +26,8 @@ if (pimple.transonic())
coalParcels.Srho()
);
sources.apply(pEqn);
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
if (pimple.finalNonOrthogonalIter())
@ -54,6 +56,8 @@ else
coalParcels.Srho()
);
sources.apply(pEqn);
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
if (pimple.finalNonOrthogonalIter())

View File

@ -30,13 +30,17 @@ Description
\*---------------------------------------------------------------------------*/
{
solve
fvScalarMatrix rhoEqn
(
fvm::ddt(rho)
+ fvc::div(phi)
==
coalParcels.Srho(rho)
);
sources.apply(rhoEqn);
rhoEqn.solve();
}
// ************************************************************************* //

View File

@ -7,9 +7,10 @@
==
rho.dimensionedInternalField()*g
+ parcels.SU(U)
+ momentumSource.Su()
);
sources.apply(UEqn);
pZones.addResistance(UEqn);
if (pimple.momentumPredictor())

View File

@ -24,7 +24,7 @@ if (solveSpecies)
{
volScalarField& Yi = Y[i];
solve
fvScalarMatrix YiEqn
(
fvm::ddt(rho, Yi)
+ mvConvection->fvmDiv(phi, Yi)
@ -32,10 +32,12 @@ if (solveSpecies)
==
parcels.SYi(i, Yi)
+ combustion->R(Yi)
+ massSource.Su(i),
mesh.solver("Yi")
);
sources.apply(YiEqn);
YiEqn.solve(mesh.solver("Yi"));
Yi.max(0.0);
Yt += Yi;
}

View File

@ -1,27 +1,2 @@
Info<< "Creating mass source\n" << endl;
scalarTimeActivatedExplicitSourceList massSource
(
"mass",
mesh,
dimMass/dimTime/dimVolume,
composition.species()
);
Info<< "Creating momentum source\n" << endl;
vectorTimeActivatedExplicitSourceList momentumSource
(
"momentum",
mesh,
dimMass*dimVelocity/dimTime/dimVolume,
"U"
);
Info<< "Creating energy source\n" << endl;
scalarTimeActivatedExplicitSourceList energySource
(
"energy",
mesh,
dimEnergy/dimTime/dimVolume,
"h"
);
Info<< "Creating sources\n" << endl;
IObasicSourceList sources(mesh);

View File

@ -29,7 +29,7 @@
}
{
solve
fvScalarMatrix hsEqn
(
fvm::ddt(rho, hs)
+ mvConvection->fvmDiv(phi, hs)
@ -38,10 +38,13 @@
pWork()
+ parcels.Sh(hs)
+ radiation->Shs(thermo)
+ energySource.Su()
+ combustion->Sh()
);
sources.apply(hsEqn);
hsEqn.solve();
thermo.correct();
radiation->correct();

View File

@ -29,9 +29,10 @@
+ fvc::div(phi)
==
parcels.Srho()
+ massSource.SuTot()
);
sources.apply(pDDtEqn);
while (pimple.correctNonOrthogonal())
{
fvScalarMatrix pEqn

View File

@ -45,7 +45,7 @@ Description
#include "rhoChemistryCombustionModel.H"
#include "radiationModel.H"
#include "porousZones.H"
#include "timeActivatedExplicitSource.H"
#include "IObasicSourceList.H"
#include "SLGThermo.H"
#include "pimpleControl.H"

View File

@ -36,9 +36,10 @@ Description
+ fvc::div(phi)
==
parcels.Srho(rho)
+ massSource.SuTot()
);
sources.apply(rhoEqn);
rhoEqn.solve();
}