mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
reactingEulerFoam: Added wall-boiling and phase change capability to populationBalance functionality
Introduced thermalPhaseChangePopulationBalanceTwo- and MultiphaseSystem as
user-selectable phaseSystems which are the first to actually use multiple mass
transfer mechanisms enabled by
commit d3a237f560.
The functionality is demonstrated using the reactingTwoPhaseEulerFoam
wallBoilingPolydisperse tutorial.
Patch contributed by VTT Technical Research Centre of Finland Ltd and Institute
of Fluid Dynamics, Helmholtz-Zentrum Dresden - Rossendorf (HZDR).
This commit is contained in:
@ -31,7 +31,7 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
template<class Type>
|
||||
Foam::scalar Foam::dynamicIndexedOctree<Type>::perturbTol_ = 10*SMALL;
|
||||
Foam::scalar Foam::dynamicIndexedOctree<Type>::perturbTol_ = 10*small;
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
@ -653,13 +653,13 @@ Foam::point Foam::dynamicIndexedOctree<Type>::pushPoint
|
||||
if (mag(pt[dir]-bb.min()[dir]) < mag(perturbVec[dir]))
|
||||
{
|
||||
// Close to 'left' side. Push well beyond left side.
|
||||
scalar perturbDist = perturbVec[dir] + ROOTVSMALL;
|
||||
scalar perturbDist = perturbVec[dir] + rootVSmall;
|
||||
perturbedPt[dir] = bb.min()[dir] + perturbDist;
|
||||
}
|
||||
else if (mag(pt[dir]-bb.max()[dir]) < mag(perturbVec[dir]))
|
||||
{
|
||||
// Close to 'right' side. Push well beyond right side.
|
||||
scalar perturbDist = perturbVec[dir] + ROOTVSMALL;
|
||||
scalar perturbDist = perturbVec[dir] + rootVSmall;
|
||||
perturbedPt[dir] = bb.max()[dir] - perturbDist;
|
||||
}
|
||||
}
|
||||
@ -670,12 +670,12 @@ Foam::point Foam::dynamicIndexedOctree<Type>::pushPoint
|
||||
{
|
||||
if (mag(pt[dir]-bb.min()[dir]) < mag(perturbVec[dir]))
|
||||
{
|
||||
scalar perturbDist = perturbVec[dir] + ROOTVSMALL;
|
||||
scalar perturbDist = perturbVec[dir] + rootVSmall;
|
||||
perturbedPt[dir] = bb.min()[dir] - perturbDist;
|
||||
}
|
||||
else if (mag(pt[dir]-bb.max()[dir]) < mag(perturbVec[dir]))
|
||||
{
|
||||
scalar perturbDist = perturbVec[dir] + ROOTVSMALL;
|
||||
scalar perturbDist = perturbVec[dir] + rootVSmall;
|
||||
perturbedPt[dir] = bb.max()[dir] + perturbDist;
|
||||
}
|
||||
}
|
||||
@ -729,22 +729,22 @@ Foam::point Foam::dynamicIndexedOctree<Type>::pushPoint
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[0] = bb.min()[0] + (perturbVec[0] + ROOTVSMALL);
|
||||
perturbedPt[0] = bb.min()[0] + (perturbVec[0] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[0] = bb.min()[0] - (perturbVec[0] + ROOTVSMALL);
|
||||
perturbedPt[0] = bb.min()[0] - (perturbVec[0] + rootVSmall);
|
||||
}
|
||||
}
|
||||
else if (faceID & treeBoundBox::RIGHTBIT)
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[0] = bb.max()[0] - (perturbVec[0] + ROOTVSMALL);
|
||||
perturbedPt[0] = bb.max()[0] - (perturbVec[0] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[0] = bb.max()[0] + (perturbVec[0] + ROOTVSMALL);
|
||||
perturbedPt[0] = bb.max()[0] + (perturbVec[0] + rootVSmall);
|
||||
}
|
||||
}
|
||||
|
||||
@ -752,22 +752,22 @@ Foam::point Foam::dynamicIndexedOctree<Type>::pushPoint
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[1] = bb.min()[1] + (perturbVec[1] + ROOTVSMALL);
|
||||
perturbedPt[1] = bb.min()[1] + (perturbVec[1] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[1] = bb.min()[1] - (perturbVec[1] + ROOTVSMALL);
|
||||
perturbedPt[1] = bb.min()[1] - (perturbVec[1] + rootVSmall);
|
||||
}
|
||||
}
|
||||
else if (faceID & treeBoundBox::TOPBIT)
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[1] = bb.max()[1] - (perturbVec[1] + ROOTVSMALL);
|
||||
perturbedPt[1] = bb.max()[1] - (perturbVec[1] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[1] = bb.max()[1] + (perturbVec[1] + ROOTVSMALL);
|
||||
perturbedPt[1] = bb.max()[1] + (perturbVec[1] + rootVSmall);
|
||||
}
|
||||
}
|
||||
|
||||
@ -775,22 +775,22 @@ Foam::point Foam::dynamicIndexedOctree<Type>::pushPoint
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[2] = bb.min()[2] + (perturbVec[2] + ROOTVSMALL);
|
||||
perturbedPt[2] = bb.min()[2] + (perturbVec[2] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[2] = bb.min()[2] - (perturbVec[2] + ROOTVSMALL);
|
||||
perturbedPt[2] = bb.min()[2] - (perturbVec[2] + rootVSmall);
|
||||
}
|
||||
}
|
||||
else if (faceID & treeBoundBox::FRONTBIT)
|
||||
{
|
||||
if (pushInside)
|
||||
{
|
||||
perturbedPt[2] = bb.max()[2] - (perturbVec[2] + ROOTVSMALL);
|
||||
perturbedPt[2] = bb.max()[2] - (perturbVec[2] + rootVSmall);
|
||||
}
|
||||
else
|
||||
{
|
||||
perturbedPt[2] = bb.max()[2] + (perturbVec[2] + ROOTVSMALL);
|
||||
perturbedPt[2] = bb.max()[2] + (perturbVec[2] + rootVSmall);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user