mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
updates to enable requested field activated injection
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 1991-2007 OpenCFD Ltd.
|
||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -76,6 +76,9 @@ int main(int argc, char *argv[])
|
||||
|
||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||
|
||||
rhoEffLagrangian = coalParcels.rhoEff() + limestoneParcels.rhoEff();
|
||||
pDyn = 0.5*rho*magSqr(U);
|
||||
|
||||
Info << "Evolving coal cloud" << endl;
|
||||
|
||||
coalParcels.evolve();
|
||||
|
||||
@ -28,50 +28,36 @@
|
||||
thermo->rho()
|
||||
);
|
||||
|
||||
// lagrangian coal density field
|
||||
/* volScalarField rholc
|
||||
// lagrangian effective density field - used externally (optional)
|
||||
volScalarField rhoEffLagrangian
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"rholc",
|
||||
"rhoEffLagrangian",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimensionSet(1, -3, 0, 0, 0, 0, 0), 0.0)
|
||||
dimensionedScalar("zero", dimDensity, 0.0)
|
||||
);
|
||||
|
||||
// lagrangian limestone density field
|
||||
volScalarField rhols
|
||||
// dynamic pressure field - used externally (optional)
|
||||
volScalarField pDyn
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"rhols",
|
||||
"injectionIndicator",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimensionSet(1, -3, 0, 0, 0, 0, 0), 0.0)
|
||||
dimensionedScalar("zero", dimPressure, 0.0)
|
||||
);
|
||||
|
||||
// lagrangian total density field
|
||||
volScalarField rhol
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"rhol",
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::NO_READ,
|
||||
IOobject::AUTO_WRITE
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("zero", dimensionSet(1, -3, 0, 0, 0, 0, 0), 0.0)
|
||||
);*/
|
||||
|
||||
Info<< "\nReading field U\n" << endl;
|
||||
volVectorField U
|
||||
|
||||
Reference in New Issue
Block a user