COMP: avoid ambiguous construct from tmp - fvMotionSolver

This commit is contained in:
Mark Olesen
2010-12-17 17:02:42 +01:00
parent ee574dbbbd
commit cc8ad42aa8
8 changed files with 10 additions and 10 deletions

View File

@ -134,9 +134,9 @@ void Foam::displacementSBRStressFvMotionSolver::solve()
diffusivityPtr_->correct();
pointDisplacement_.boundaryField().updateCoeffs();
surfaceScalarField Df = diffusivityPtr_->operator()();
surfaceScalarField Df(diffusivityPtr_->operator()());
volTensorField gradCd = fvc::grad(cellDisplacement_);
volTensorField gradCd(fvc::grad(cellDisplacement_));
Foam::solve
(

View File

@ -180,7 +180,7 @@ displacementInterpolationFvMotionSolver
zoneCoordinates.last() += SMALL;
// Check if we have static min and max mesh bounds
const scalarField meshCoords = points0().component(dir);
const scalarField meshCoords(points0().component(dir));
scalar minCoord = gMin(meshCoords);
scalar maxCoord = gMax(meshCoords);

View File

@ -68,7 +68,7 @@ void Foam::directionalDiffusivity::correct()
{
const fvMesh& mesh = mSolver().mesh();
surfaceVectorField n = mesh.Sf()/mesh.magSf();
const surfaceVectorField n(mesh.Sf()/mesh.magSf());
faceDiffusivity_ == (n & cmptMultiply(diffusivityVector_, n));
}

View File

@ -96,7 +96,7 @@ void Foam::inverseFaceDistanceDiffusivity::correct()
{
const polyPatch& patch = bdry[iter.key()];
const vectorField::subField fc = patch.faceCentres();
const vectorField::subField fc(patch.faceCentres());
forAll(fc, patchFaceI)
{

View File

@ -90,7 +90,7 @@ void Foam::motionDirectionalDiffusivity::correct()
);
D.correctBoundaryConditions();
surfaceVectorField n = mesh.Sf()/mesh.magSf();
const surfaceVectorField n(mesh.Sf()/mesh.magSf());
faceDiffusivity_ == (n & cmptMultiply(fvc::interpolate(D), n));
}
else

View File

@ -160,7 +160,7 @@ void angularOscillatingDisplacementPointPatchVectorField::updateCoeffs()
scalar angle = angle0_ + amplitude_*sin(omega_*t.value());
vector axisHat = axis_/mag(axis_);
vectorField p0Rel = p0_ - origin_;
vectorField p0Rel(p0_ - origin_);
vectorField::operator=
(

View File

@ -161,7 +161,7 @@ void angularOscillatingVelocityPointPatchVectorField::updateCoeffs()
scalar angle = angle0_ + amplitude_*sin(omega_*t.value());
vector axisHat = axis_/mag(axis_);
vectorField p0Rel = p0_ - origin_;
vectorField p0Rel(p0_ - origin_);
vectorField::operator=
(

View File

@ -439,14 +439,14 @@ void surfaceDisplacementPointPatchVectorField::updateCoeffs()
const polyMesh& mesh = patch().boundaryMesh().mesh()();
vectorField currentDisplacement = this->patchInternalField();
vectorField currentDisplacement(this->patchInternalField());
// Calculate intersections with surface w.r.t points0.
vectorField displacement(currentDisplacement);
calcProjection(displacement);
// offset wrt current displacement
vectorField offset = displacement-currentDisplacement;
vectorField offset(displacement-currentDisplacement);
// Clip offset to maximum displacement possible: velocity*timestep