Skip to content

Commit

Permalink
feat(mesh): adds SPZPeriodicData
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandini committed Sep 18, 2024
1 parent c79aeb7 commit ff5bf5c
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mesh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ set(headers
TPZCompElHDivDuplConnects.h
TPZCompElHDivDuplConnectsBound.h
TPZCompElUnitaryLagrange.h
SPZPeriodicData.h
)

set(sources
Expand Down
24 changes: 24 additions & 0 deletions Mesh/SPZPeriodicData.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#ifndef _SPZPERIODICDATA_H_
#define _SPZPERIODICDATA_H_

#include "pzmanvector.h"
#include "tpzautopointer.h"

#include <map>


/** @brief Structure for storing periodic information
All three structures have the same indexing
@note For gmsh generated meshes, they are sorted by dimension
of periodic entities (points, lines, surfaces)
*/
struct SPZPeriodicData{
//! list of dependent periodic ids
TPZManVector<int,100> dep_mat_ids;
//! list of independent periodic ids
TPZManVector<int,100> indep_mat_ids;
//! list of maps of periodic nodes INDICES for the pairs (dep_id,indep_id)
TPZManVector<TPZAutoPointer<std::map<int64_t,int64_t>>,100> nodes_map;
//note that for periodic meshes node->Index() != node->Id() for dependent nodes
};
#endif /* _SPZPERIODICDATA_H_ */

0 comments on commit ff5bf5c

Please sign in to comment.