basicThermo, heSolidThermo: Added support for specifying the boundary conditions of alpha

Patch contributed by Björn Pfeiffelmann
Resolves patch request https://bugs.openfoam.org/view.php?id=2713
This commit is contained in:
Henry Weller
2017-11-07 13:53:46 +00:00
parent 36dcb28511
commit 204c6ee449
2 changed files with 17 additions and 5 deletions

View File

@ -198,11 +198,16 @@ Foam::basicThermo::basicThermo
phasePropertyName("thermo:alpha"),
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
dimensionedScalar
(
"zero",
dimensionSet(1, -1, -1, 0, 0),
Zero
)
),
dpdt_(lookupOrDefault<Switch>("dpdt", true))
@ -253,11 +258,16 @@ Foam::basicThermo::basicThermo
phasePropertyName("thermo:alpha"),
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::READ_IF_PRESENT,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
dimensionedScalar
(
"zero",
dimensionSet(1, -1, -1, 0, 0),
Zero
)
)
{}

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -134,6 +134,8 @@ void Foam::heSolidThermo<BasicSolidThermo, MixtureType>::calculate()
}
}
}
this->alpha_.correctBoundaryConditions();
}