Rev 1740 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1740 | Rev 3649 | ||
|---|---|---|---|
| Line 11... | Line 11... | ||
| 11 | ** file 'COPYRIGHT' in main directory for information on usage and **
|
11 | ** file 'COPYRIGHT' in main directory for information on usage and **
|
| 12 | ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
|
12 | ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
|
| 13 | ** **
|
13 | ** **
|
| 14 | ** ****************************************************************** */
|
14 | ** ****************************************************************** */
|
| 15 | 15 | ||
| 16 | // $Revision: 1.6 $
|
- | |
| 17 | // $Date: 2004-02-24 22:53:34 $
|
- | |
| - | 16 | // $Revision: 1.7 $
|
|
| - | 17 | // $Date: 2008-10-20 22:23:03 $
|
|
| 18 | // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/J2PlaneStrain.cpp,v $
|
18 | // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/J2PlaneStrain.cpp,v $
|
| 19 | 19 | ||
| 20 | // Written: Ed "C++" Love
|
20 | // Written: Ed "C++" Love
|
| 21 | //
|
21 | //
|
| 22 | // J2PlaneStrain isotropic hardening material class
|
22 | // J2PlaneStrain isotropic hardening material class
|
| Line 72... | Line 72... | ||
| 72 | double G,
|
72 | double G,
|
| 73 | double yield0,
|
73 | double yield0,
|
| 74 | double yield_infty,
|
74 | double yield_infty,
|
| 75 | double d,
|
75 | double d,
|
| 76 | double H,
|
76 | double H,
|
| 77 | double viscosity ) : |
- | |
| - | 77 | double viscosity,
|
|
| - | 78 | double rho) : |
|
| 78 | J2Plasticity( tag, ND_TAG_J2PlaneStrain,
|
79 | J2Plasticity( tag, ND_TAG_J2PlaneStrain,
|
| 79 | K, G, yield0, yield_infty, d, H, viscosity )
|
- | |
| - | 80 | K, G, yield0, yield_infty, d, H, viscosity, rho )
|
|
| 80 | {
|
81 | {
|
| 81 | 82 | ||
| 82 | }
|
83 | }
|
| 83 | 84 | ||
| 84 | 85 | ||
| Line 305... | Line 306... | ||
| 305 | int
|
306 | int
|
| 306 | J2PlaneStrain::sendSelf (int commitTag, Channel &theChannel) |
307 | J2PlaneStrain::sendSelf (int commitTag, Channel &theChannel) |
| 307 | {
|
308 | {
|
| 308 | // we place all the data needed to define material and it's state
|
309 | // we place all the data needed to define material and it's state
|
| 309 | // int a vector object
|
310 | // int a vector object
|
| 310 | static Vector data(18); |
- | |
| - | 311 | static Vector data(19); |
|
| 311 | int cnt = 0; |
312 | int cnt = 0; |
| 312 | data(cnt++) = this->getTag(); |
313 | data(cnt++) = this->getTag(); |
| 313 | data(cnt++) = bulk; |
314 | data(cnt++) = bulk; |
| 314 | data(cnt++) = shear; |
315 | data(cnt++) = shear; |
| 315 | data(cnt++) = sigma_0; |
316 | data(cnt++) = sigma_0; |
| 316 | data(cnt++) = sigma_infty; |
317 | data(cnt++) = sigma_infty; |
| 317 | data(cnt++) = delta; |
318 | data(cnt++) = delta; |
| 318 | data(cnt++) = Hard; |
319 | data(cnt++) = Hard; |
| 319 | data(cnt++) = eta; |
320 | data(cnt++) = eta; |
| - | 321 | data(cnt++) = rho; |
|
| - | 322 | ||
| 320 | data(cnt++) = xi_n; |
323 | data(cnt++) = xi_n; |
| 321 | 324 | ||
| 322 | // data(cnt++) = commitEps22;
|
325 | // data(cnt++) = commitEps22;
|
| 323 | for (int i=0; i<3; i++) |
326 | for (int i=0; i<3; i++) |
| 324 | for (int j=0; j<3; j++) |
327 | for (int j=0; j<3; j++) |
| Line 336... | Line 339... | ||
| 336 | J2PlaneStrain::recvSelf (int commitTag, Channel &theChannel, |
339 | J2PlaneStrain::recvSelf (int commitTag, Channel &theChannel, |
| 337 | FEM_ObjectBroker &theBroker) |
340 | FEM_ObjectBroker &theBroker) |
| 338 | {
|
341 | {
|
| 339 | 342 | ||
| 340 | // recv the vector object from the channel which defines material param and state
|
343 | // recv the vector object from the channel which defines material param and state
|
| 341 | static Vector data(18); |
- | |
| - | 344 | static Vector data(19); |
|
| 342 | if (theChannel.recvVector(this->getDbTag(), commitTag, data) < 0) { |
345 | if (theChannel.recvVector(this->getDbTag(), commitTag, data) < 0) { |
| 343 | opserr << "J2PlaneStrain::recvSelf - failed to sned vectorto channel\n"; |
346 | opserr << "J2PlaneStrain::recvSelf - failed to sned vectorto channel\n"; |
| 344 | return -1; |
347 | return -1; |
| 345 | }
|
348 | }
|
| 346 | 349 | ||
| Line 352... | Line 355... | ||
| 352 | sigma_0 = data(cnt++); |
355 | sigma_0 = data(cnt++); |
| 353 | sigma_infty = data(cnt++); |
356 | sigma_infty = data(cnt++); |
| 354 | delta = data(cnt++); |
357 | delta = data(cnt++); |
| 355 | Hard = data(cnt++); |
358 | Hard = data(cnt++); |
| 356 | eta = data(cnt++); |
359 | eta = data(cnt++); |
| - | 360 | rho = data(cnt++); |
|
| 357 | xi_n = data(cnt++); |
361 | xi_n = data(cnt++); |
| 358 | for (int i=0; i<3; i++) |
362 | for (int i=0; i<3; i++) |
| 359 | for (int j=0; j<3; j++) |
363 | for (int j=0; j<3; j++) |
| 360 | epsilon_p_n(i,j) = data(cnt++); |
364 | epsilon_p_n(i,j) = data(cnt++); |
| 361 | 365 | ||