GeometricField: Temporary fields are no longer registered on the database by default

Registration occurs when the temporary field is transferred to a non-temporary
field via a constructor or if explicitly transferred to the database via the
regIOobject "store" methods.
This commit is contained in:
Henry Weller
2018-12-20 11:00:37 +00:00
parent 6faadcb45c
commit 146a59e46c
307 changed files with 707 additions and 1042 deletions

View File

@ -84,7 +84,7 @@ bool Foam::functionObjects::CourantNo::calc()
mesh_
),
mesh_,
dimensionedScalar("0", dimless, 0),
dimensionedScalar(dimless, 0),
zeroGradientFvPatchScalarField::typeName
)
);

View File

@ -118,7 +118,7 @@ bool Foam::functionObjects::age::execute()
IOobject::AUTO_WRITE
),
mesh_,
dimensionedScalar("zero", dimTime, 0),
dimensionedScalar(dimTime, 0),
patchTypes()
);
@ -154,7 +154,7 @@ bool Foam::functionObjects::age::execute()
solve
(
fvm::div(phi, t, divScheme)
== dimensionedScalar("one", dimless, 1),
== dimensionedScalar(dimless, 1),
schemesField_
);
}

View File

@ -501,7 +501,7 @@ bool Foam::functionObjects::regionSizeDistribution::write()
IOobject::NO_WRITE
),
mesh_,
dimensionedScalar("zero", dimless, 0)
dimensionedScalar(dimless, 0)
);
Info<< " Dumping region as volScalarField to " << region.name()
<< endl;

View File

@ -82,7 +82,7 @@ Foam::tmp<Foam::pointScalarField> Foam::functionObjects::streamFunction::calc
mesh_
),
pMesh,
dimensionedScalar("zero", phi.dimensions(), 0)
dimensionedScalar(phi.dimensions(), 0)
)
);
pointScalarField& streamFunction = tstreamFunction.ref();

View File

@ -115,7 +115,7 @@ bool Foam::functionObjects::turbulenceIntensity::execute()
/max
(
max(uPrime, mag(turbModel.U())),
dimensionedScalar("small", dimVelocity, small)
dimensionedScalar(dimVelocity, small)
)
);
}

View File

@ -76,7 +76,7 @@ Foam::functionObjects::wallHeatFlux::calcWallHeatFlux
mesh_
),
mesh_,
dimensionedScalar("0", dimMass/pow3(dimTime), 0)
dimensionedScalar(dimMass/pow3(dimTime), 0)
)
);

View File

@ -83,7 +83,6 @@ Foam::functionObjects::wallHeatTransferCoeff::calcHeatTransferCoeff
mesh_,
dimensionedScalar
(
"0",
dimMass/pow3(dimTime)/(dimTemperature/dimLength),
0
)

View File

@ -78,7 +78,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::yPlus::calcYPlus
mesh_
),
mesh_,
dimensionedScalar("0", dimless, 0)
dimensionedScalar(dimless, 0)
)
);

View File

@ -342,7 +342,7 @@ Foam::tmp<Foam::volScalarField> Foam::functionObjects::forces::rho() const
mesh_
),
mesh_,
dimensionedScalar("rho", dimDensity, rhoRef_)
dimensionedScalar(dimDensity, rhoRef_)
)
);
}