Permalink
Browse files

tractionDisplacementFvPatchVectorField: changed applied pressure to b…

…e +ve from the outside

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=763
  • Loading branch information...
1 parent 908f75c commit 6502e850de67d1fc0b461b820372202afe9fe819 Henry committed Mar 5, 2013
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
+ \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@@ -181,7 +181,7 @@ void tractionDisplacementFvPatchVectorField::updateCoeffs()
gradient() =
(
- (traction_ + pressure_*n)/rho
+ (traction_ - pressure_*n)/rho
+ twoMuLambda*fvPatchField<vector>::snGrad() - (n & sigmaD)
)/twoMuLambda;

0 comments on commit 6502e85

Please sign in to comment.