Go to the documentation of this file.
6 #define defineViscoPlasticCoefficients(esr) \
7 exp0 = exp(-exponentViscoPlastic*esr); \
8 nuT = (etaViscoPlastic + (yieldStressViscoPlastic/esr)*(1.-exp0)); \
9 nuTd = .5*( (-1./esr)*(1.-exp0) + exponentViscoPlastic*exp0 )*(yieldStressViscoPlastic/(esr*esr)); \
16 #define defineViscoPlasticCoefficientsAndTwoDerivatives(esr) \
17 exp0 = exp(-exponentViscoPlastic*esr); \
18 nuT = (etaViscoPlastic + (yieldStressViscoPlastic/esr)*(1.-exp0)); \
19 nuTd = .5*( (-1./esr)*(1.-exp0) + exponentViscoPlastic*exp0 )*(yieldStressViscoPlastic/(esr*esr)); \
20 nuTdd= .25*( 3./(esr*esr)*(1.-exp0) -3./(esr)*exponentViscoPlastic*exp0 - exponentViscoPlastic*exponentViscoPlastic*exp0 )*(yieldStressViscoPlastic/(esr*esr*esr))
30 #define declareViscoPlasticParameters \
32 real nuViscoPlastic=1., etaViscoPlastic=1., yieldStressViscoPlastic=10., exponentViscoPlastic=10.; \
33 real epsViscoPlastic=1.e-10; \
34 parameters.dbase.get<ListOfShowFileParameters>("pdeParameters").getParameter("nuViscoPlastic",nuViscoPlastic); \
35 parameters.dbase.get<ListOfShowFileParameters>("pdeParameters").getParameter("etaViscoPlastic",etaViscoPlastic); \
36 parameters.dbase.get<ListOfShowFileParameters>("pdeParameters").getParameter("yieldStressViscoPlastic",yieldStressViscoPlastic); \
37 parameters.dbase.get<ListOfShowFileParameters>("pdeParameters").getParameter("exponentViscoPlastic",exponentViscoPlastic); \
38 parameters.dbase.get<ListOfShowFileParameters>("pdeParameters").getParameter("epsViscoPlastic",epsViscoPlastic);
46 #define strainRate2d(u0x,u0y,v0x,v0y) (sqrt( (2./3.)*( SQR(u0x) + SQR(v0y) + .5*SQR( u0y + v0x ) ) )+epsViscoPlastic)
48 #define strainRate3d(u0x,u0y,u0z, v0x,v0y,v0z, w0x,w0y,w0z) \
49 (sqrt( (2./3.)*( SQR(u0x) + SQR(v0y) + SQR(w0z) + .5*( SQR( u0y + v0x ) + SQR( u0z + w0x )+ SQR( v0z + w0y )) ) )+epsViscoPlastic)