mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp - fvMotionSolver
This commit is contained in:
@ -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
|
||||
(
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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=
|
||||
(
|
||||
|
||||
@ -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=
|
||||
(
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user