diff --git a/src/surfaceForces/surfaceTensionForceModels/surfaceTensionForceModel/heightFunction/heightFunction.C b/src/surfaceForces/surfaceTensionForceModels/surfaceTensionForceModel/heightFunction/heightFunction.C index 74dd9de4..7b5f5ded 100644 --- a/src/surfaceForces/surfaceTensionForceModels/surfaceTensionForceModel/heightFunction/heightFunction.C +++ b/src/surfaceForces/surfaceTensionForceModels/surfaceTensionForceModel/heightFunction/heightFunction.C @@ -100,7 +100,6 @@ void Foam::heightFunction::computeColumns return; } - scalar avgColVal = 0.5; DynamicField alphaValues(100); // should be big enough avoids resizing for (label i = HFCol.status[orientation].iterI;i<7;i++) // move four times in both direction @@ -132,6 +131,10 @@ void Foam::heightFunction::computeColumns ); } } + else + { + return; + } if (fullColumn(HFCol.status[orientation].avgColVal,columnHeightTol) ) { @@ -319,7 +322,6 @@ void Foam::heightFunction::correct() deltaFunctionModel_->correct(); const fvMesh& mesh = alpha1_.mesh(); - const surfaceVectorField& Sf = mesh.Sf(); reconstructionSchemes& surf = mesh.lookupObjectRef("reconstructionScheme"); @@ -334,8 +336,6 @@ void Foam::heightFunction::correct() boolList nextToInterface(mesh.nCells(),false); - scalar deltaX = mag(mesh_.delta())().average().value(); - volScalarField cellDistField ( IOobject @@ -414,10 +414,22 @@ void Foam::heightFunction::correct() dimensionedScalar("scalar", dimless, 0), "calculated" //alpha1.boundaryField().types() ); - label test = twoDim_ ? 2 : 3; Vector