BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
mesh.Mesh.Mesh Class Reference

An abstract element class. More...

Public Member Functions

 __init__ (self)
 flag_all_nodes (self)
 unflag_all_nodes (self)
 add_physical (self, int dimension, int phystag, str label)
 remove_unused_nodes (self)
 save (self, str Path)
 Save the file to a gmsh mesh.
 optimize_adjacency_bandwidth (self)
 optimize bandwidth for better sovler performance
 collect_elements (self, int dimension, int geotag)
 __init__ (self)
 flag_all_nodes (self)
 unflag_all_nodes (self)
 add_physical (self, int dimension, int phystag, str label)
 remove_unused_nodes (self)
 save (self, str Path)
 Save the file to a gmsh mesh.
 optimize_adjacency_bandwidth (self)
 optimize bandwidth for better sovler performance
 collect_elements (self, int dimension, int geotag)

Public Attributes

int numNodes = 0
list nodes = []
list elements = []
int numElements = 0
int Scale = 1
int NumGroups = 0
list PhysicalGroups = []
list periodic = []

Static Public Attributes

list DimensionPerElement

Protected Member Functions

 _update_node_ids (self)
 create consecutive numbers for the nodes
 _update_element_ids (self)
 create consecutive numbers for the elements
 _save_header (self, Buffer)
 Print the header.
 _save_physical (self, Buffer)
 Print the physical groups if they exist.
 _save_nodes (self, Buffer)
 Print the nodes.
 _save_elements (self, Buffer)
 Print the elements.
 _save_periodic (self, Buffer)
 Print the periodic links.
 _update_node_ids (self)
 create consecutive numbers for the nodes
 _update_element_ids (self)
 create consecutive numbers for the elements
 _save_header (self, Buffer)
 Print the header.
 _save_physical (self, Buffer)
 Print the physical groups if they exist.
 _save_nodes (self, Buffer)
 Print the nodes.
 _save_elements (self, Buffer)
 Print the elements.
 _save_periodic (self, Buffer)
 Print the periodic links.

Detailed Description

An abstract element class.

Constructor & Destructor Documentation

◆ __init__() [1/2]

mesh.Mesh.Mesh.__init__ ( self)

◆ __init__() [2/2]

mesh.Mesh.Mesh.__init__ ( self)

Member Function Documentation

◆ _save_elements() [1/2]

mesh.Mesh.Mesh._save_elements ( self,
Buffer )
protected

Print the elements.

◆ _save_elements() [2/2]

mesh.Mesh.Mesh._save_elements ( self,
Buffer )
protected

Print the elements.

◆ _save_header() [1/2]

mesh.Mesh.Mesh._save_header ( self,
Buffer )
protected

Print the header.

◆ _save_header() [2/2]

mesh.Mesh.Mesh._save_header ( self,
Buffer )
protected

Print the header.

◆ _save_nodes() [1/2]

mesh.Mesh.Mesh._save_nodes ( self,
Buffer )
protected

Print the nodes.

◆ _save_nodes() [2/2]

mesh.Mesh.Mesh._save_nodes ( self,
Buffer )
protected

Print the nodes.

◆ _save_periodic() [1/2]

mesh.Mesh.Mesh._save_periodic ( self,
Buffer )
protected

Print the periodic links.

◆ _save_periodic() [2/2]

mesh.Mesh.Mesh._save_periodic ( self,
Buffer )
protected

Print the periodic links.

◆ _save_physical() [1/2]

mesh.Mesh.Mesh._save_physical ( self,
Buffer )
protected

Print the physical groups if they exist.

◆ _save_physical() [2/2]

mesh.Mesh.Mesh._save_physical ( self,
Buffer )
protected

Print the physical groups if they exist.

◆ _update_element_ids() [1/2]

mesh.Mesh.Mesh._update_element_ids ( self)
protected

create consecutive numbers for the elements

◆ _update_element_ids() [2/2]

mesh.Mesh.Mesh._update_element_ids ( self)
protected

create consecutive numbers for the elements

◆ _update_node_ids() [1/2]

mesh.Mesh.Mesh._update_node_ids ( self)
protected

create consecutive numbers for the nodes

◆ _update_node_ids() [2/2]

mesh.Mesh.Mesh._update_node_ids ( self)
protected

create consecutive numbers for the nodes

◆ add_physical() [1/2]

mesh.Mesh.Mesh.add_physical ( self,
int dimension,
int phystag,
str label )

◆ add_physical() [2/2]

mesh.Mesh.Mesh.add_physical ( self,
int dimension,
int phystag,
str label )

◆ collect_elements() [1/2]

mesh.Mesh.Mesh.collect_elements ( self,
int dimension,
int geotag )

◆ collect_elements() [2/2]

mesh.Mesh.Mesh.collect_elements ( self,
int dimension,
int geotag )

◆ flag_all_nodes() [1/2]

mesh.Mesh.Mesh.flag_all_nodes ( self)

◆ flag_all_nodes() [2/2]

mesh.Mesh.Mesh.flag_all_nodes ( self)

◆ optimize_adjacency_bandwidth() [1/2]

mesh.Mesh.Mesh.optimize_adjacency_bandwidth ( self)

optimize bandwidth for better sovler performance

◆ optimize_adjacency_bandwidth() [2/2]

mesh.Mesh.Mesh.optimize_adjacency_bandwidth ( self)

optimize bandwidth for better sovler performance

◆ remove_unused_nodes() [1/2]

mesh.Mesh.Mesh.remove_unused_nodes ( self)

◆ remove_unused_nodes() [2/2]

mesh.Mesh.Mesh.remove_unused_nodes ( self)

◆ save() [1/2]

mesh.Mesh.Mesh.save ( self,
str Path )

Save the file to a gmsh mesh.

◆ save() [2/2]

mesh.Mesh.Mesh.save ( self,
str Path )

Save the file to a gmsh mesh.

◆ unflag_all_nodes() [1/2]

mesh.Mesh.Mesh.unflag_all_nodes ( self)

◆ unflag_all_nodes() [2/2]

mesh.Mesh.Mesh.unflag_all_nodes ( self)

Member Data Documentation

◆ DimensionPerElement

list DimensionPerElement
static
Initial value:
= [-1, 1, 2, 2, 3, 3, 3, -1, 1, 2, 2, 3, 3, 3, -1, 0, 2, 3, 3, -1, -1, 2, -1, -1, -1, -1, 1, -1,
-1, 3]

◆ elements

list elements = []

◆ nodes

list nodes = []

◆ numElements

int numElements = 0

◆ NumGroups

int NumGroups = 0

◆ numNodes

int numNodes = 0

◆ periodic

list periodic = []

◆ PhysicalGroups

list PhysicalGroups = []

◆ Scale

int Scale = 1

The documentation for this class was generated from the following files:
  • examples/corc_twolayer/python/mesh/Mesh.py
  • examples/pancake/python/mesh/Mesh.py