settlingFoam: Changed from reading alpha to reading Alpha to support more complex BCs for Alpha

This commit is contained in:
Henry
2012-11-14 15:44:23 +00:00
parent 0c9c9ef91d
commit 63a406e935
4 changed files with 10 additions and 10 deletions

View File

@ -12,12 +12,12 @@
mesh mesh
); );
Info<< "Reading field alpha\n" << endl; Info<< "Reading field Alpha\n" << endl;
volScalarField alpha volScalarField Alpha
( (
IOobject IOobject
( (
"alpha", "Alpha",
runTime.timeName(), runTime.timeName(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ,
@ -100,21 +100,20 @@
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
(scalar(1) - alpha)*rhoc + alpha*rhod rhoc/(scalar(1) + (rhoc/rhod - 1.0)*Alpha)
); );
volScalarField Alpha volScalarField alpha
( (
IOobject IOobject
( (
"Alpha", "alpha",
runTime.timeName(), runTime.timeName(),
mesh, mesh,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::AUTO_WRITE
), ),
alpha*rhod/rho, rho*Alpha/rhod
alpha.boundaryField().types()
); );
#include "compressibleCreatePhi.H" #include "compressibleCreatePhi.H"

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object alpha; object Alpha;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -50,6 +50,7 @@ FoamFile
frontAndBack frontAndBack
{ {
type empty; type empty;
inGroups 1(empty);
nFaces 16000; nFaces 16000;
startFace 16240; startFace 16240;
} }

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object alpha; object Alpha;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //