6 #ifndef PZTOPOLOGYTPZLINE_H 7 #define PZTOPOLOGYTPZLINE_H 40 friend void pztopology::GetPermutation<TPZLine>(
const int permute,
TPZVec<int> &permutation);
126 for(
int i = 0; i < pt.
size(); i++) xi[i]= pt[i].
val();
239 template <
class TVar>
244 for (
int i=0; i<3; i++) {
245 directions(i,0) = -gradx(i,0)/detjac;
246 directions(i,1) = gradx(i,0)/detjac;
247 directions(i,2) = gradx(i,0)/detjac;
static void Shape(TPZVec< REAL > &loc, TPZFMatrix< REAL > &phi, TPZFMatrix< REAL > &dphi)
Compute the shape being used to construct the x mapping from local parametric coordinates.
static int bilinearounao[81]
Contains the TPZInt1d, TPZIntTriang, TPZIntQuad, TPZIntCube3D, TPZIntTetra3D, TPZIntPyram3D and TPZIn...
static TPZTransform SideToSideTransform(int sidefrom, int sideto)
Returns the transformation which takes a point from the side sidefrom to the side sideto...
static void LowerDimensionSides(int side, TPZStack< int > &smallsides)
Get all sides with lower dimension on side.
To export a graphical one dimensional discontinuous element. Post processing.
static int NumSides()
Returns the number of connects for a set dimension.
static bool IsInParametricDomain(const TPZVec< REAL > &pt, REAL tol=pztopology::gTolerance)
Verifies if the parametric point pt is in the element parametric domain.
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
static int NBilinearSides()
static int SideDimension(int side)
Returns the dimension of the side.
Defines enum MElementType and contains the implementation of MElementType_NNodes(...) functions.
REAL val(STATE &number)
Returns value of the variable.
static int GetTransformId(TPZVec< int64_t > &id)
Method which identifies the transformation based on the IDs of the corner nodes.
void Read(TPZStream &buf, void *context) override
read objects from the stream
TPZInt1d IntruleType
Typedef to numerical integration rule.
Handles the numerical integration for one-dimensional problems. Numerical Integration.
TPZGraphEl1dd GraphElType
Typedef to graphical element type.
Abstract class defining integration rules. Numerical Integration.
static void HigherDimensionSides(int side, TPZStack< int > &high)
Returns all sides whose closure contains side.
static void ComputeHDivDirections(TPZFMatrix< TVar > &gradx, TPZFMatrix< TVar > &directions)
Compute the directions of the HDiv vectors.
int64_t size() const
Returns the number of elements of the vector.
static void MapToSide(int side, TPZVec< T > &InternalPar, TPZVec< T > &SidePar, TPZFMatrix< T > &JacToSide)
Groups all classes defining the structure of the master element.
static TPZTransform TransformElementToSide(int side)
Returns the transformation which transform a point from the interior of the element to the side...
int ClassId() const override
Define the class id associated with the class.
Defines the behaviour of all geometric elements. GeometryTPZGeoEl is the common denominator for all g...
Contains TPZMatrixclass which implements full matrix (using column major representation).
static void RandomPoint(TPZVec< REAL > &pt)
Generates a random point in the master domain.
static void GetSideHDivPermutation(int transformationid, TPZVec< int > &permgather)
Identifies the permutation of the nodes needed to make neighbouring elements compatible in terms of o...
static int NSideNodes(int side)
Returns the number of nodes (not connectivities) associated with a side.
static TPZIntPoints * CreateSideIntegrationRule(int side, int order)
Create an integration rule over side.
static int fPermutations[2][3]
Valid permutations between nodes.
static void BlendFactorForSide(const int &side, const TPZVec< T > &xi, T &blendFactor, TPZVec< T > &corrFactorDxi)
static int ContainedSideLocId(int side, int c)
Returns the local connect number of the connect "c" along side "side".
Defines the topology of a line element. Topology Sides 0 and 1 are vertices, side 2 is the line...
static TPZTransform TransformSideToElement(int side)
Returns the transformation which transform a point from the side to the interior of the element...
TPZLine()
Default constructor.
static void TShape(const TPZVec< T > &loc, TPZFMatrix< T > &phi, TPZFMatrix< T > &dphi)
Compute the shape being used to construct the x mapping from local parametric coordinates.
static void GetSideHDivDirections(TPZVec< int > &sides, TPZVec< int > &dir, TPZVec< int > &bilinearounao)
MElementType
Define the element types.
Implements computational mesh. Computational Mesh.
Defines the interface for saving and reading data. Persistency.
virtual ~TPZLine()
Default destructor.
static bool CheckProjectionForSingularity(const int &side, const TPZVec< T > &xiInterior)
This class defines the interface to save and restore objects from TPZStream objects. Persistency.
Defines the interface of a computational element. Computational Element.
static int SideNodeLocId(int side, int node)
Returns the local node number of the node "node" along side "side".
static void ParametricDomainNodeCoord(int node, TPZVec< REAL > &nodeCoord)
static constexpr REAL RefElVolume()
Volume of the master element (measure of the element)
static int NContainedSides(int side)
Returns the number of nodes (not connectivities) associated with a side.
static void CenterPoint(int side, TPZVec< REAL > ¢er)
Returns the barycentric coordinates in the master element space of the original element.
static void ComputeDirections(int side, TPZFMatrix< REAL > &gradx, TPZFMatrix< REAL > &directions, TPZVec< int > &sidevectors)
static MElementType Type()
Returns the type of the element as specified in file pzeltype.h.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.