26 fCompMesh(cm), fDimension(dimension), fMaterialIds(matids), fScalarNames(scalarnames), fVecNames(vecnames), fTensorNames()
69 for(int64_t i=0;i<nel;i++) {
82 for(int64_t index=0;index<nnod;index++) {
93 cout <<
"TPZGraphMesh::FindNode, sid out of range sid = " << sid << endl;
96 for(int64_t index=0;index<nelem;index++) {
121 for(int64_t i=0;i<nnod;i++) {
131 for(el=0; el<nelem; el++) {
134 grel->
SetId(firstel);
151 for(int64_t i=0;i<nnod;i++) {
161 cout <<
"TPZGraphMesh::DrawSolution called\n";
171 for(int64_t i=0;i<nel;i++) {
181 for(i=0;i<nnod;i++) {
192 for(int64_t j=0;j<nel;j++) {
203 for(i=0;i<nnod;i++) {
205 if(nod) nod->
Print(out);
210 if(el) el->
Print(out);
266 for(iel=0; iel<nel; iel++) {
269 int type = cel->
Type();
271 #ifndef STATE_COMPLEX 274 if(agg && agg->
Dimension() == dim)
return agg;
288 if(intel)
return intel;
295 return Hash(
"TPZGraphMesh");
303 for (
auto matid: mat_ids) {
312 buf.
Read(&fStyleInt);
335 buf.
Write(&fStyleInt);
TPZGraphMesh(TPZCompMesh *cm, int dimension, const std::set< int > &matids, const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
Constructor for graphical mesh.
int64_t NElements() const
Number of computational elements allocated.
bool Material_Is_PostProcessed(int matid)
Return a directive if the material id is being postprocessed.
void Print(std::ostream &out)
const int64_t numel
Number of elements to test.
virtual MElementType Type()
Return the type of the element.
int ClassId() const override
Define the class id associated with the class.
TPZVec< std::string > fScalarNames
Vectors of the variables names (scalar, vectorial, and tensorial)
virtual void resize(const int64_t newsize)
clarg::argInt dimension("-d", "Matrices dimension M x M", 1000)
virtual void DrawConnectivity(MElementType type)
Draw the connectivity information.
Contains declaration of TPZCompEl class which defines the interface of a computational element...
void WritePointers(const TPZVec< TPZAutoPointer< T >> &vec)
std::underlying_type< Enumeration >::type as_integer(const Enumeration value)
int64_t Id()
Get the Id of the graphical element.
Contains the TPZGraphEl class which implements the graphical one-, two- and three-dimensional element...
Contains the TPZGraphNode class which implements the graphical node.
virtual void CreateGraphicalElement(TPZGraphMesh &graphmesh, int dimension)
Creates corresponding graphical element(s) if the dimension matches graphical elements are used to ge...
clarg::argInt cm("-cm", "clean memory before execution", 512)
int64_t NElements() const
Access method to query the number of elements of the vector.
Implements a chunk vector with free store administration. Utility.
TPZGeoMesh * fGeoMesh
Geometric mesh related.
TPZGraphEl * FindElement(int64_t sid)
void Print(std::ostream &out)
Print object attributes.
TPZCompEl * FindFirstInterpolatedElement(TPZCompMesh *mesh, int dimension)
static TPZSavable * GetInstance(const int64_t &objId)
void ReadPointers(TPZVec< TPZAutoPointer< T >> &vec)
int Dimension() const override
It returns dimension from the elements.
virtual int NElements()=0
std::set< int > MaterialIds()
Get material ids.
virtual void DrawNodes()
Draw the graphical nodes information.
void SetMaterialIds(const std::set< int > &matids)
Set material ids.
TPZAdmChunkVector< TPZGraphEl * > & ElementList()
Vector of the graphical elements.
virtual void SequenceNodes()
void Read(TPZStream &buf, void *context) override
read objects from the stream
void Resize(const int newsize)
Increase the size of the chunk vector.
Contains declaration of TPZMesh class which defines a geometrical mesh and contains a corresponding l...
int fDimension
Dimension of the graphical mesh.
void SetPointNumber(int64_t num)
TPZDrawStyle fStyle
Style of the graphical file.
virtual void Write(const bool val)
Implements a group of computational elements as a mesh and an element. Computational Mesh...
#define DebugStop()
Returns a message to user put a breakpoint in.
virtual void SetCompMesh(TPZCompMesh *mesh, const std::set< int > &matids)
Sets the computational mesh to associate.
virtual void DrawMesh(int numcases)
Draw the graphical mesh.
Contains the TPZGraphElT class which implements the graphical triangular element. ...
TPZAdmChunkVector< TPZGraphNode > & NodeMap()
Vector of the graphical nodes.
Contains the TPZGraphMesh class which represents a graphical mesh used for post processing purposes...
TPZVec< std::string > fVecNames
Contains declaration of TPZCompelDisc class which implements a computational element for discontinuou...
Contains declaration of TPZCompMesh class which is a repository for computational elements...
void CompactDataStructure(CompactScheme type=CompactScheme::ALWAYS)
Sets the method to compact the data structure based on the.
void SetId(int64_t id)
Set graphical element id.
int fResolution
Resolution of the graphical object.
int32_t Hash(std::string str)
virtual void Connectivity(TPZDrawStyle st=EDXStyle)=0
Set dx style for connectivity information.
virtual void SetFileName(const std::string &filename)
Sets the filename to output of graph.
void SetNames(const TPZVec< std::string > &scalarnames, const TPZVec< std::string > &vecnames)
Set names with scalar and vector variable names.
Contains declaration of TPZSubCompMesh class which implements a group of computational elements as a ...
TPZAdmChunkVector< TPZGraphNode > fNodeMap
Vector of graphical nodes (connects)
virtual int Dimension() const =0
Returns the dimension of the element.
void Print(std::ostream &out)
Print the information of the graphical element.
virtual void DrawSolution(int step, REAL time)
Draw solution depending on the resolution.
TPZGeoEl * Reference() const
Return a pointer to the corresponding geometric element if such exists, return 0 otherwise.
void DrawCo(TPZDrawStyle st=EDXStyle)
Draw coordinates of the graphical node.
This class implements a geometric mesh for the pz environment. Geometry.
MElementType
Define the element types.
Implements computational mesh. Computational Mesh.
TPZAdmChunkVector< TPZCompEl * > & ElementVec()
Returns a reference to the element pointers vector.
TPZVec< std::string > fTensorNames
Contains declaration of TPZInterpolatedElement class which implements computational element of the in...
Abstract class to graphical one-, two- and three-dimensional element. Post processing.
int64_t NElements(MElementType type)
Defines the interface for saving and reading data. Persistency.
TPZCompMesh * fCompMesh
Computational mesh associated.
std::set< int > fMaterialIds
Set of material ids being post-processed.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.
This class implements a discontinuous element (for use with discontinuous Galerkin). Computational Element.
virtual MElementType Type()=0
Get the type of the graphical element.
void Read(TPZStream &buf, void *context) override
read objects from the stream
virtual ~TPZGraphMesh(void)
Default destructor.
int64_t NPoints()
Number of points to drawing, depending on the resolution.
Defines the interface of a computational element. Computational Element.
To export a graphical node. Post processing.
static void WritePointer(const TPZSavable *obj, TPZStream *stream)
Implements computational element based on an interpolation space. Computational Element.
TPZGraphNode & FindNode(int64_t side)
Find graphical node (connect)
Implements an agglomerated discontinuous element. Computational Element.
virtual void Read(bool &val)
TPZAdmChunkVector< TPZGraphEl * > fElementList
Vector of graphical elements.
void Write(TPZStream &buf, int withclassid) const override
Writes this object to the TPZStream buffer. Include the classid if withclassid = true.