Skip to content
Snippets Groups Projects
Commit bd7d27e6 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp - engine

parent 7b1eb1ce
No related branches found
No related tags found
No related merge requests found
...@@ -68,9 +68,11 @@ void Foam::fvMotionSolverEngineMesh::move() ...@@ -68,9 +68,11 @@ void Foam::fvMotionSolverEngineMesh::move()
motionSolver_.cellMotionU().boundaryField()[pistonIndex_] == deltaZ; motionSolver_.cellMotionU().boundaryField()[pistonIndex_] == deltaZ;
{ {
scalarField linerPoints = scalarField linerPoints
(
motionSolver_.cellMotionU() motionSolver_.cellMotionU()
.boundaryField()[linerIndex_].patch().Cf().component(vector::Z); .boundaryField()[linerIndex_].patch().Cf().component(vector::Z)
);
motionSolver_.cellMotionU().boundaryField()[linerIndex_] == motionSolver_.cellMotionU().boundaryField()[linerIndex_] ==
deltaZ*pos(deckHeight_.value() - linerPoints) deltaZ*pos(deckHeight_.value() - linerPoints)
......
...@@ -64,7 +64,7 @@ void Foam::layeredEngineMesh::move() ...@@ -64,7 +64,7 @@ void Foam::layeredEngineMesh::move()
// Position of the top of the static mesh layers above the piston // Position of the top of the static mesh layers above the piston
scalar pistonPlusLayers = pistonPosition_.value() + pistonLayers_.value(); scalar pistonPlusLayers = pistonPosition_.value() + pistonLayers_.value();
pointField newPoints = points(); pointField newPoints(points());
forAll(newPoints, pointi) forAll(newPoints, pointi)
{ {
......
...@@ -80,8 +80,10 @@ ...@@ -80,8 +80,10 @@
// Calculate kernel area from b field consistent with the // Calculate kernel area from b field consistent with the
// discretisation of the b equation. // discretisation of the b equation.
volScalarField mgb = const volScalarField mgb
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb; (
fvc::div(nf, b, "div(phiSt,b)") - b*fvc::div(nf) + dMgb
);
dimensionedScalar AkEst = gSum(mgb*mesh.V().field()); dimensionedScalar AkEst = gSum(mgb*mesh.V().field());
StCorr.value() = max(min((Ak/AkEst).value(), 10.0), 1.0); StCorr.value() = max(min((Ak/AkEst).value(), 10.0), 1.0);
......
...@@ -130,7 +130,7 @@ void Foam::errorDrivenRefinement::setRefinement(polyTopoChange& ref) const ...@@ -130,7 +130,7 @@ void Foam::errorDrivenRefinement::setRefinement(polyTopoChange& ref) const
const volVectorField& resError = const volVectorField& resError =
runTime.lookupObject<volVectorField>(errorField_); runTime.lookupObject<volVectorField>(errorField_);
const volScalarField magResError = Foam::mag(resError); const volScalarField magResError(Foam::mag(resError));
scalar min = Foam::min(magResError).value(); scalar min = Foam::min(magResError).value();
scalar max = Foam::max(magResError).value(); scalar max = Foam::max(magResError).value();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment