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 "linearCohesiveLaw.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "zeroGradientFvPatchFields.H"
30 #include "cohesiveFvPatch.H"
31 #include "cohesiveLaw.H"
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
37 defineTypeNameAndDebug(linearCohesiveLaw, 0);
38 addToRunTimeSelectionTable(cohesiveLaw, linearCohesiveLaw, dictionary);
42 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
44 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 // Construct from dictionary
47 Foam::linearCohesiveLaw::linearCohesiveLaw
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::linearCohesiveLaw::~linearCohesiveLaw()
68 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
70 Foam::tmp<Foam::volScalarField> Foam::linearCohesiveLaw::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::linearCohesiveLaw::sigmaMax() const
94 return tmp<surfaceScalarField>
96 new surfaceScalarField
101 mesh().time().timeName(),
112 Foam::tmp<Foam::surfaceScalarField> Foam::linearCohesiveLaw::tauMax() const
114 return tmp<surfaceScalarField>
116 new surfaceScalarField
121 mesh().time().timeName(),
132 Foam::tmp<Foam::surfaceScalarField> Foam::linearCohesiveLaw::GIc() const
134 return tmp<surfaceScalarField>
136 new surfaceScalarField
141 mesh().time().timeName(),
152 Foam::tmp<Foam::surfaceScalarField> Foam::linearCohesiveLaw::GIIc() const
154 return tmp<surfaceScalarField>
156 new surfaceScalarField
161 mesh().time().timeName(),
173 void Foam::linearCohesiveLaw::damageTractions
182 const scalarField& globalPatchMaterials
186 // Calculate apparent initiation normal traction tNia
187 // tNia is the initiation traction assuming that the ratio tN/tS
188 // has stayed constant at the current value i.e.
191 // where we term B the initiation traction constant.
193 // Calculate current B
194 const scalar B = 1.0 /
196 (tN/sigmaMax_.value())*(tN/sigmaMax_.value())
197 + (tS/tauMax_.value())*(tS/tauMax_.value())
200 // Calculate apparent initiation tractions
201 const scalar tNia = B * tN;
202 const scalar tSia = B * tS;
205 // Calculate apparent critical delta deltaCa
206 // deltaCa would be the deltaC if the mode mix stayed constant at
210 // where we term C the mode-mix constant
213 const scalar C = 1.0 /
214 ( (GI/GIc_.value()) + (GII/GIIc_.value()) );
216 // Calculate apparent critical energies
217 const scalar GIca = C * GI;
218 const scalar GIIca = C * GII;
220 // Calculate apparent critical deltas
221 const scalar deltaNca = 2.0 * GIca / tNia;
222 const scalar deltaSca = 2.0 * GIIca / tSia;
225 // Set current tractions linearly decreasing from
227 // When the face is close to propagation the tN and
228 // tS will get close to zero so we will limit
229 // them to be positive as they are magnitudes
230 tN = max( 0.0, tNia * ( 1.0 - (deltaN/deltaNca) ) );
231 tS = max( 0.0, tSia * ( 1.0 - (deltaS/deltaSca) ) );
234 // Hold the effective traction traction and
235 // allow the mix of tractions to vary based on:
236 // (tN/tS) = a * (deltaN/deltaS)
237 // where a=1 is assumed here.
238 // This essentially allows the mode-mixity
239 // to vary depending on the deltas
241 (sigmaMax_.value()/B) * deltaN /
244 + (deltaS*deltaS)*(sigmaMax_.value()*sigmaMax_.value()
245 /(tauMax_.value()*tauMax_.value()))
249 (tauMax_.value()/B) * deltaS /
252 + (deltaN*deltaN)*(tauMax_.value()*tauMax_.value()
253 /(sigmaMax_.value()*sigmaMax_.value()))
259 Foam::tmp<Foam::surfaceVectorField>
260 Foam::linearCohesiveLaw::interfaceTraction
262 surfaceVectorField n,
264 volTensorField gradU,
266 volScalarField lambda
269 notImplemented(type() + "::interfaceTraction()");
271 tmp<surfaceVectorField> tresult
273 new surfaceVectorField
278 mesh().time().timeName(),
284 dimensionedVector("zero", dimForce/dimArea, vector(0, 0, 0))
291 // ************************************************************************* //