15 static log4cxx::LoggerPtr logger(Logger::getLogger(
"pz.geom.pzgeoquad"));
26 cout <<
" o tamanho do vetores eh diferente de 3"<< endl;
28 REAL x1=v1[0], y1=v1[1],z1=v1[2];
29 REAL x2=v2[0], y2=v2[1],z2=v2[2];
31 result[0]=y1*z2-z1*y2;
32 result[1]=z1*x2-x1*z2;
33 result[2]=x1*y2-y1*x2;
46 VectorialProduct(v1,v2,normal);
47 VectorialProduct(v1,normal,result);
94 for (
int i=0; i<3; i++) {
99 gmesh.
NodeVec()[nodeindexes[0]].Initialize(co, gmesh);
100 co[0] += 0.6 * size[0];
102 gmesh.
NodeVec()[nodeindexes[1]].Initialize(co, gmesh);
103 co[1] += 0.6 * size[0];
104 co[0] += 0.1 * size[0];
105 co[2] += 0.3 * size[0];
107 gmesh.
NodeVec()[nodeindexes[2]].Initialize(co, gmesh);
108 for (
int i = 0; i < 3; i++) co[i] = lowercorner[i] + 0.2 * size[i];
109 co[1] += 0.4 * size[1];
110 co[2] -= 0.2 * size[2];
112 gmesh.
NodeVec()[nodeindexes[3]].Initialize(co, gmesh);
118 int TPZGeoQuad::ClassId()
const{
126 void TPZGeoQuad::Write(
TPZStream &buf,
int withclassid)
const {
int AllocateNewElement()
Makes more room for new elements.
Contains the TPZInt1d, TPZIntTriang, TPZIntQuad, TPZIntCube3D, TPZIntTetra3D, TPZIntPyram3D and TPZIn...
Contains definitions to LOGPZ_DEBUG, LOGPZ_INFO, LOGPZ_WARN, LOGPZ_ERROR and LOGPZ_FATAL, and the implementation of the inline InitializePZLOG(string) function using log4cxx library or not. It must to be called out of "#ifdef LOG4CXX" scope.
Implements a vector class which allows to use external storage provided by the user. Utility.
virtual TPZGeoEl * CreateGeoElement(MElementType type, TPZVec< int64_t > &cornerindexes, int matid, int64_t &index, int reftype=1)
Generic method for creating a geometric element. Putting this method centrally facilitates the modifi...
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object reallocating the necessary storage, copying the existing objects to the new...
Contains TPZMatrixclass which implements full matrix (using column major representation).
const double pzgeom_TPZNodeRep_tol
Initializing tolerance to TPZNodeRep.
TPZAdmChunkVector< TPZGeoNode > & NodeVec()
Contains declaration of TPZGeoElRefPattern class which implements a generic geometric element which i...
REAL co[8][3]
Coordinates of the eight nodes.
Implements ... Geometry Topology.
int32_t Hash(std::string str)
This class implements a geometric mesh for the pz environment. Geometry.
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
Groups all classes which model the geometry.