NeoPZ
TPZPlasticStepTranslator.h
Go to the documentation of this file.
1 /*
2  * File: TPZPlasticStepTranslator.h
3  * Author: thiago
4  *
5  * Created on 12 de Março de 2018, 19:47
6  */
7 
8 #ifndef TPZPLASTICSTEPTRANSLATOR_H
9 #define TPZPLASTICSTEPTRANSLATOR_H
10 
11 #include "TPZChunkTranslator.h"
13 
14 template <typename YC_t, typename TF_t, typename ER_t>
16 public:
19 
20  virtual void UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion);
21 
22  virtual ~TPZPlasticStepTranslator();
23 protected:
28 };
29 
30 template <typename YC_t, typename TF_t, typename ER_t>
32 }
33 
34 template <typename YC_t, typename TF_t, typename ER_t>
36 }
37 
38 template <typename YC_t, typename TF_t, typename ER_t>
39 void TPZPlasticStepTranslator<YC_t, TF_t, ER_t>::UpdateAttributes(TPZChunkInTranslation& chunk, const std::map<std::string, uint64_t>& toVersion) {
40  fYCTranslator.UpdateStream(chunk, toVersion);
41  fTFTranslator.UpdateStream(chunk, toVersion);
42  fERTranslator.UpdateStream(chunk, toVersion);
43  REAL fResTol;
44  chunk.mOldStream.Read(&fResTol);
45  chunk.mNewStream.Write(&fResTol);
46  REAL fIntegrTol;
47  chunk.mOldStream.Read(&fIntegrTol);
48  chunk.mNewStream.Write(&fIntegrTol);
49  int fMaxNewton;
50  chunk.mOldStream.Read(&fMaxNewton);
51  chunk.mNewStream.Write(&fMaxNewton);
52  REAL fMinLambda;
53  chunk.mOldStream.Read(&fMinLambda);
54  chunk.mNewStream.Write(&fMinLambda);
55  REAL fMinStepSize;
56  chunk.mOldStream.Read(&fMinStepSize);
57  chunk.mNewStream.Write(&fMinStepSize);
58  tpzPlasticStateTranslatorREAL.UpdateStream(chunk, toVersion); //fN
59  int fMaterialTensionSign;
60  chunk.mOldStream.Read(&fMaterialTensionSign);
61  chunk.mNewStream.Write(&fMaterialTensionSign);
62  int fInterfaceTensionSign;
63  chunk.mOldStream.Read(&fInterfaceTensionSign);
64  chunk.mNewStream.Write(&fInterfaceTensionSign);
65 
66 }
67 
68 template <typename YC_t, typename TF_t, typename ER_t>
70 }
71 
72 
73 
74 #endif /* TPZPLASTICSTEPTRANSLATOR_H */
75 
virtual void Read(int *p, int howMany=1)
virtual void Write(const int *p, int howMany=1)
TPZPlasticStateTranslator< REAL > tpzPlasticStateTranslatorREAL
TPZContBufferedStream mOldStream
virtual void UpdateAttributes(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
virtual void UpdateStream(TPZChunkInTranslation &chunk, const std::map< std::string, uint64_t > &toVersion)
TPZContBufferedStream mNewStream