9 #ifndef __PZ__TPZOneShapeRestraint__ 10 #define __PZ__TPZOneShapeRestraint__ 31 for(
int i=0; i<4; i++)
33 fFaces[i] = std::make_pair<int64_t,int>(-1, -1);
50 return fFaces[0].first != -1;
53 void Print(std::ostream &out)
const 55 out <<
"TPZOneShapeRestraint ConnectIndex/Degree of freedom : ";
56 for(
int i=0; i<4; i++) out << fFaces[i].
first <<
"/" << fFaces[i].second <<
" ";
58 out <<
"Orientation of each face ";
59 for(
int i=0; i<4; i++) out << fOrient[i] <<
" ";
66 for (
int i=0; i<4; i++)
68 seqnums[i] = fFaces[i].first;
69 faces[i] = fFaces[i].second;
71 buf.
Write(&seqnums[0],4);
72 buf.
Write(&faces[0],4);
73 buf.
Write(&fOrient[0],4);
79 buf.
Read(&seqnums[0],4);
80 buf.
Read(&faces[0],4);
81 buf.
Read(&fOrient[0],4);
82 for (
int i=0; i<4; i++)
85 fFaces[i] = std::make_pair(seqnums[i], faces[i]);
void Read(TPZStream &buf)
Implements a vector class which allows to use external storage provided by the user. Utility.
bool IsInitialized() const
Definition of the retraint associated with the top of the pyramid.
TPZManVector< std::pair< int64_t, int >, 4 > fFaces
Faces which are related. First item is the connect index, second item is the degree of freedom...
TPZOneShapeRestraint & operator=(const TPZOneShapeRestraint ©)
virtual void Write(const bool val)
Free store vector implementation.
TPZManVector< int, 4 > fOrient
Orientation of each face.
TPZOneShapeRestraint(const TPZOneShapeRestraint ©)
void Print(std::ostream &out) const
Contains declaration of the abstract TPZStream class. TPZStream defines the interface for saving and ...
Defines the interface for saving and reading data. Persistency.
void Write(TPZStream &buf) const
virtual void Read(bool &val)