Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
091baa91
Commit
091baa91
authored
Dec 21, 2010
by
Mark Olesen
Browse files
COMP: avoid ambiguous construct from tmp - solvers/ stressAnalysis
parent
078c4275
Changes
5
Hide whitespace changes
Inline
Side-by-side
applications/solvers/stressAnalysis/solidDisplacementFoam/solidDisplacementFoam.C
View file @
091baa91
...
...
@@ -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
)
...
...
applications/solvers/stressAnalysis/solidDisplacementFoam/tractionDisplacement/tractionDisplacementFvPatchVectorField.C
View file @
091baa91
...
...
@@ -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
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/kineticEnergyLimiter.H
View file @
091baa91
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
;
...
...
applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/solidEquilibriumDisplacementFoam.C
View file @
091baa91
...
...
@@ -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
()
...
...
applications/solvers/stressAnalysis/solidEquilibriumDisplacementFoam/tractionDisplacementCorrection/tractionDisplacementCorrectionFvPatchVectorField.C
View file @
091baa91
...
...
@@ -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
make
NonTemplated
PatchTypeField
(
fvPatchVectorField
,
tractionDisplacementCorrectionFvPatchVectorField
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment