1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "dugdaleCohesiveLaw.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "zeroGradientFvPatchFields.H"
30 #include "cohesiveFvPatch.H"
31 #include "cohesiveLaw.H"
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
37 defineTypeNameAndDebug(dugdaleCohesiveLaw, 0);
38 addToRunTimeSelectionTable(cohesiveLaw, dugdaleCohesiveLaw, dictionary);
42 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
44 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 // Construct from dictionary
47 Foam::dugdaleCohesiveLaw::dugdaleCohesiveLaw
50 const volSymmTensorField& sigma,
51 const dictionary& dict
54 cohesiveLaw(name, sigma, dict),
55 GIc_(dict.lookup("GIc")),
56 GIIc_(dict.lookup("GIIc")),
57 sigmaMax_(dict.lookup("sigmaMax")),
58 tauMax_(dict.lookup("tauMax"))
62 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
64 Foam::dugdaleCohesiveLaw::~dugdaleCohesiveLaw()
68 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
70 Foam::tmp<Foam::volScalarField> Foam::dugdaleCohesiveLaw::materials() const
72 notImplemented(type() + "::materials()");
74 return tmp<volScalarField>
81 mesh().time().timeName(),
87 dimensionedScalar("zero", dimless, 0.0)
92 Foam::tmp<Foam::surfaceScalarField> Foam::dugdaleCohesiveLaw::sigmaMax() const
94 return tmp<surfaceScalarField>
96 new surfaceScalarField
101 mesh().time().timeName(),
112 Foam::tmp<Foam::surfaceScalarField> Foam::dugdaleCohesiveLaw::tauMax() const
114 return tmp<surfaceScalarField>
116 new surfaceScalarField
121 mesh().time().timeName(),
132 Foam::tmp<Foam::surfaceScalarField> Foam::dugdaleCohesiveLaw::GIc() const
134 return tmp<surfaceScalarField>
136 new surfaceScalarField
141 mesh().time().timeName(),
152 Foam::tmp<Foam::surfaceScalarField> Foam::dugdaleCohesiveLaw::GIIc() const
154 return tmp<surfaceScalarField>
156 new surfaceScalarField
161 mesh().time().timeName(),
173 void Foam::dugdaleCohesiveLaw::damageTractions
182 const scalarField& globalPatchMaterials
185 // Update normal traction
187 sigmaMax_.value() * deltaN /
188 (SMALL + ::sqrt( (deltaN*deltaN)
189 + (deltaS*deltaS)*(sigmaMax_.value()*sigmaMax_.value()
190 /(tauMax_.value()*tauMax_.value()))
195 // Update shear traction
197 tauMax_.value() * deltaS /
198 (SMALL + ::sqrt( (deltaS*deltaS)
199 + (deltaN*deltaN)*(tauMax_.value()*tauMax_.value()
200 /(sigmaMax_.value()*sigmaMax_.value()))
207 Foam::tmp<Foam::surfaceVectorField>
208 Foam::dugdaleCohesiveLaw::interfaceTraction
210 surfaceVectorField n,
212 volTensorField gradU,
214 volScalarField lambda
217 notImplemented(type() + "::interfaceTraction()");
219 tmp<surfaceVectorField> tresult
221 new surfaceVectorField
226 mesh().time().timeName(),
232 dimensionedVector("zero", dimForce/dimArea, vector(0, 0, 0))
239 // ************************************************************************* //