mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp - engine
This commit is contained in:
@ -68,9 +68,11 @@ void Foam::fvMotionSolverEngineMesh::move()
|
||||
motionSolver_.cellMotionU().boundaryField()[pistonIndex_] == deltaZ;
|
||||
|
||||
{
|
||||
scalarField linerPoints =
|
||||
scalarField linerPoints
|
||||
(
|
||||
motionSolver_.cellMotionU()
|
||||
.boundaryField()[linerIndex_].patch().Cf().component(vector::Z);
|
||||
.boundaryField()[linerIndex_].patch().Cf().component(vector::Z)
|
||||
);
|
||||
|
||||
motionSolver_.cellMotionU().boundaryField()[linerIndex_] ==
|
||||
deltaZ*pos(deckHeight_.value() - linerPoints)
|
||||
|
||||
@ -64,7 +64,7 @@ void Foam::layeredEngineMesh::move()
|
||||
// Position of the top of the static mesh layers above the piston
|
||||
scalar pistonPlusLayers = pistonPosition_.value() + pistonLayers_.value();
|
||||
|
||||
pointField newPoints = points();
|
||||
pointField newPoints(points());
|
||||
|
||||
forAll(newPoints, pointi)
|
||||
{
|
||||
|
||||
@ -80,8 +80,10 @@
|
||||
|
||||
// Calculate kernel area from b field consistent with the
|
||||
// discretisation of the b equation.
|
||||
volScalarField mgb =
|
||||
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb;
|
||||
const volScalarField mgb
|
||||
(
|
||||
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb
|
||||
);
|
||||
dimensionedScalar AkEst = gSum(mgb*mesh.V().field());
|
||||
|
||||
StCorr.value() = max(min((Ak/AkEst).value(), 10.0), 1.0);
|
||||
|
||||
@ -130,7 +130,7 @@ void Foam::errorDrivenRefinement::setRefinement(polyTopoChange& ref) const
|
||||
const volVectorField& resError =
|
||||
runTime.lookupObject<volVectorField>(errorField_);
|
||||
|
||||
const volScalarField magResError = Foam::mag(resError);
|
||||
const volScalarField magResError(Foam::mag(resError));
|
||||
|
||||
scalar min = Foam::min(magResError).value();
|
||||
scalar max = Foam::max(magResError).value();
|
||||
|
||||
Reference in New Issue
Block a user