Skip to content
Snippets Groups Projects
Commit 63a406e9 authored by Henry's avatar Henry
Browse files

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

parent 0c9c9ef9
No related branches found
No related tags found
No related merge requests found
...@@ -12,12 +12,12 @@ ...@@ -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 @@ ...@@ -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"
......
...@@ -10,7 +10,7 @@ FoamFile ...@@ -10,7 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object alpha; object Alpha;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
...@@ -50,6 +50,7 @@ FoamFile ...@@ -50,6 +50,7 @@ FoamFile
frontAndBack frontAndBack
{ {
type empty; type empty;
inGroups 1(empty);
nFaces 16000; nFaces 16000;
startFace 16240; startFace 16240;
} }
......
...@@ -10,7 +10,7 @@ FoamFile ...@@ -10,7 +10,7 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class volScalarField; class volScalarField;
object alpha; object Alpha;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment