Commit 091baa91 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp - solvers/ stressAnalysis

parent 078c4275
......@@ -102,7 +102,7 @@ int main(int argc, char *argv[])
}
{
volTensorField gradD = fvc::grad(D);
volTensorField gradD(fvc::grad(D));
sigmaD = mu*twoSymm(gradD) + (lambda*I)*tr(gradD);
if (compactNormalStress)
......
......@@ -168,7 +168,7 @@ void tractionDisplacementFvPatchVectorField::updateCoeffs()
scalar twoMuLambda = (2*mu + lambda).value();
vectorField n = patch().nf();
vectorField n(patch().nf());
const fvPatchField<symmTensor>& sigmaD =
patch().lookupPatchField<volSymmTensorField, symmTensor>("sigmaD");
......@@ -207,7 +207,11 @@ void tractionDisplacementFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField(fvPatchVectorField, tractionDisplacementFvPatchVectorField);
makeNonTemplatedPatchTypeField
(
fvPatchVectorField,
tractionDisplacementFvPatchVectorField
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
if (!(runTime.timeIndex() % 5))
{
volScalarField kineticEnergy = magSqr(Dcorr);
volScalarField kineticEnergy(magSqr(Dcorr);
dimensionedScalar intKineticEnergy = fvc::domainIntegrate(kineticEnergy);
Info<< "kineticEnergy = " << intKineticEnergy.value() << endl;
volScalarField kineticPower = (Dcorr - Dcorr.oldTime()) & Dcorr;
volScalarField kineticPower((Dcorr - Dcorr.oldTime()) & Dcorr);
dimensionedScalar intKineticPower = fvc::domainIntegrate(kineticPower);
Info<< "kineticPower = " << intKineticPower.value() << endl;
......
......@@ -69,7 +69,7 @@ int main(int argc, char *argv[])
D += accFac*Dcorr;
{
volTensorField gradDcorr = fvc::grad(Dcorr);
volTensorField gradDcorr(fvc::grad(Dcorr));
sigmaExp =
(lambda - mu)*gradDcorr + mu*gradDcorr.T()
......
......@@ -165,7 +165,7 @@ void tractionDisplacementCorrectionFvPatchVectorField::updateCoeffs()
lambda = nu*E/((1.0 + nu)*(1.0 - nu));
}
vectorField n = patch().nf();
vectorField n(patch().nf());
const fvPatchField<symmTensor>& sigmaD =
patch().lookupPatchField<volSymmTensorField, symmTensor>("sigmaD");
......@@ -194,7 +194,7 @@ void tractionDisplacementCorrectionFvPatchVectorField::write(Ostream& os) const
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
makePatchTypeField
makeNonTemplatedPatchTypeField
(
fvPatchVectorField,
tractionDisplacementCorrectionFvPatchVectorField
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment