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