19 static LoggerPtr logger(Logger::getLogger(
"pz.mesh.TPZCompElHDivPressureBound"));
23 template <
class TSHAPE>
56 template<
class TSHAPE>
64 template<
class TSHAPE>
73 template<
class TSHAPE>
81 template<
class TSHAPE>
86 template<
class TSHAPE>
93 template<
class TSHAPE>
99 template<
class TSHAPE>
106 template<
class TSHAPE>
136 template<
class TSHAPE>
139 if(side == TSHAPE::NSides-1 && node == 1)
150 template<
class TSHAPE>
161 template<
class TSHAPE>
165 std::cout<<
"\nNao implementado";
169 template<
class TSHAPE>
173 if(connectaux<0 || connectaux > this->
NConnects()) {
174 PZError <<
"TPZCompElHDivPressureBound::SetSideOrder. Bad paramenter side " << side <<
" order " << order << std::endl;
176 std::stringstream sout;
177 sout << __PRETTY_FUNCTION__ <<
" Bad side or order " << side <<
" order " << order;
184 int64_t seqnum = c.SequenceNumber();
202 template<
class TSHAPE>
217 template<
class TSHAPE>
226 template<
class TSHAPE>
233 shapeindex.
Resize(nshape);
236 for(is=0 ; is<nsides; is++)
238 int side = sides[is];
240 int NShapeFace = TSHAPE::NConnectShapeF(side,sideorder);
242 for(ishapeface=0; ishapeface<NShapeFace; ishapeface++)
244 shapeindex[count++] = is;
250 std::stringstream sout;
251 sout <<
"count = " << count <<
" nshape " << nshape;
252 sout << std::endl<<
"sides associated with the normals "<< sides <<
253 "\nnormal associated with each shape function : shape function indexes " << shapeindex;
260 template<class TSHAPE>
264 std::cout <<
"\nNao implementado";
267 template<
class TSHAPE>
271 std::cout <<
"\nNao implementado";
275 template<
class TSHAPE>
279 std::cout <<
"\nNao implementado";
284 template<
class TSHAPE>
291 template<
class TSHAPE>
297 template<
class TSHAPE>
299 #ifndef STATE_COMPLEX
virtual int SideConnectLocId(int node, int side) const override
Returns the local node number of icon along is.
int Set(const int index, const int dim, const int pos=-1)
Modifies existing block dimensions or creates a new block with given index.
Represents a set of shape functions associated with a computational element/side. Computational Eleme...
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.
virtual int NConnectShapeF(int connect, int order) const override
Returns the number of shapefunctions associated with a connect.
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
int ClassId() const override
Returns the unique identifier for reading/writing objects to streams.
virtual ~TPZCompElHDivPressureBound()
Default destructor.
virtual int64_t AllocateNewConnect(int nshape, int nstate, int order)
Returns an index to a new connect.
void Read(TPZStream &buf, void *context) override
Reads the element data from a stream.
virtual void SetConnectIndex(int i, int64_t connectindex) override
Sets the node pointer of node i to nod.
groups all classes dedicated to the computation of shape functions
virtual void SetIntegrationRule(int ord) override
virtual int SideConnectLocId(int node, int side) const override
Returns the local node number of icon along is.
void SetLagrangeMultiplier(unsigned char mult)
Set the connect as a pressure connect or not.
virtual int Dimension() const override
Returns the dimension of the element.
virtual int NStateVariables() const =0
Returns the number of state variables associated with the material.
MShapeFunctionType fShapeType
virtual int64_t CreateMidSideConnect(int side)
Verify the neighbours of the element and create a node along this side.
virtual int NConnectShapeF(int connect, int order) const override
Returns the number of shapefunctions associated with a connect.
TPZCompElHDivPressureBound()
Default constructor.
virtual void Resize(const int64_t newsize, const T &object)
Resizes the vector object.
Contains TPZShapeLinear class which implements the shape functions of a linear one-dimensional elemen...
int NShapeF() const override
Returns the total number of shapefunctions.
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
void Write(TPZStream &buf, int withclassid) const override
Saves the element data to a stream.
This abstract class defines the behaviour which each derived class needs to implement.
virtual TPZMaterial * Material() const
Identify the material object associated with the element.
virtual void InitMaterialData(TPZMaterialData &data) override
Initialize a material data and its attributes based on element dimension, number of state variables a...
Implements a generic computational element to HDiv-Pressure scope. Computational Element.
virtual void SetConnectIndex(int i, int64_t connectindex) override
Sets the node pointer of node i to nod.
void ComputeShapeIndex(TPZVec< int > &sides, TPZVec< int64_t > &shapeindex)
Compute the correspondence between the normal vectors and the shape functions.
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...
unsigned char Order() const
Access function to return the order associated with the connect.
int64_t SequenceNumber() const
Returns the Sequence number of the connect object.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
#define DebugStop()
Returns a message to user put a breakpoint in.
int fPressureOrder
Defines the interpolation order for pressure variable.
#define LOGPZ_DEBUG(A, B)
Define log for debug info.
TPZCompMesh * Mesh() const
Return a pointer to the grid of the element.
int Dimension() const
Returns the dimension of the simulation.
virtual void GetInterpolationOrder(TPZVec< int > &ord) override
Identifies the interpolation order on the interior of the element.
virtual void SetSideOrder(int side, int order) override
Returns the preferred order of the polynomial along side iside.
virtual void SideShapeFunction(int side, TPZVec< REAL > &point, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi) override
Compute the values of the shape function of the side.
virtual int ConnectOrder(int connect) const override
int numberdualfunctions
number of dual function (e.g. pressure in HDiv approximations)
const TPZBlock< STATE > & Block() const
Access the block structure of the solution vector.
virtual void SetCreateFunctions(TPZCompMesh *mesh) override
Set create function in TPZCompMesh to create elements of this type.
Contains declaration of TPZCompelDisc class which implements a computational element for discontinuou...
TPZAdmChunkVector< TPZConnect > & ConnectVec()
Return a reference to the connect pointers vector.
int64_t Index() const
Returns element index of the mesh fELementVec list.
Contains the TPZMaterialData class which implements an interface between TPZCompEl::CalcStiff and TPZ...
Implements a generic computational element to HDiv scope. Computational Element.
Contains TPZShapePoint class which implements the shape function associated with a point...
virtual int EffectiveSideOrder(int side) const override
Returns the actual interpolation order of the polynomial along the side.
virtual TPZConnect & Connect(int i) const
Returns a pointer to the ith node.
void FirstShapeIndex(TPZVec< int64_t > &Index)
Returns the vector index of the first index shape associate to element.
Contains declaration of TPZCompElHDivPressure class which implements a generic computational element ...
Contains declaration of TPZCompElHDivPressureBound class which implements a generic computational ele...
TPZManVector< int64_t, TSHAPE::NSides > fConnectIndexes
Indexes of the connects associated with the elements.
virtual int Dimension() const =0
Returns the dimension of the element.
Contains declaration of TPZCompElHDivBound2 class which implements a generic computational element (H...
virtual void InitMaterialData(TPZMaterialData &data) override
Initialize a material data and its attributes based on element dimension, number of state variables a...
Implements computational mesh. Computational Mesh.
void SetAllCreateFunctionsHDivPressure()
virtual void SetPressureOrder(int ord)
Identifies the interpolation order for pressure variable.
Contains the declaration of the shape function discontinuous.
virtual int ConnectOrder(int connect) const override
Defines the interface for saving and reading data. Persistency.
int64_t NElements() const
Returns the number of elements of the vector.
virtual int NConnects() const override
Returns the number of connect objects of the element.
static int NShapeF(int degree, int dimension, MShapeType type)
Number of shapefunctions dependent on the dimension and order of interpolation.
Contains TPZShapeQuad class which implements the shape functions of a quadrilateral element...
virtual int NConnects() const override
Returns the number of connect objects of the element.
Contains TPZShapeTriang class which implements the shape functions of a triangular element...
Implements an interface to register a class id and a restore function. Persistence.
#define PZError
Defines the output device to error messages and the DebugStop() function.