feminout.writeFenicsXDMF Namespace Reference

Functions

def numpy_array_to_str (npa)
 
def points_to_numpy (pts, dim=3)
 
def tuples_to_numpy (tpls, numbers_per_line)
 
def write_fenics_mesh_codim_xdmf (fem_mesh_obj, topologynode, nodes_dict, codim=0, encoding=ENCODING_ASCII)
 
def write_fenics_mesh_points_xdmf (fem_mesh_obj, geometrynode, encoding=ENCODING_ASCII)
 
def write_fenics_mesh_scalar_cellfunctions (name, cell_array, attributenode, encoding=ENCODING_ASCII)
 
def write_fenics_mesh_xdmf (fem_mesh_obj, outputfile, group_values_dict={}, encoding=ENCODING_ASCII)
 

Variables

string ENCODING_ASCII = "ASCII"
 
string ENCODING_HDF5 = "HDF5"
 
dictionary FreeCAD_Group_Dimensions
 
dictionary FreeCAD_to_Fenics_XDMF_dict
 

Function Documentation

◆ numpy_array_to_str()

◆ points_to_numpy()

def feminout.writeFenicsXDMF.points_to_numpy (   pts,
  dim = 3 
)

◆ tuples_to_numpy()

def feminout.writeFenicsXDMF.tuples_to_numpy (   tpls,
  numbers_per_line 
)

◆ write_fenics_mesh_codim_xdmf()

def feminout.writeFenicsXDMF.write_fenics_mesh_codim_xdmf (   fem_mesh_obj,
  topologynode,
  nodes_dict,
  codim = 0,
  encoding = ENCODING_ASCII 
)

◆ write_fenics_mesh_points_xdmf()

def feminout.writeFenicsXDMF.write_fenics_mesh_points_xdmf (   fem_mesh_obj,
  geometrynode,
  encoding = ENCODING_ASCII 
)

◆ write_fenics_mesh_scalar_cellfunctions()

def feminout.writeFenicsXDMF.write_fenics_mesh_scalar_cellfunctions (   name,
  cell_array,
  attributenode,
  encoding = ENCODING_ASCII 
)

◆ write_fenics_mesh_xdmf()

def feminout.writeFenicsXDMF.write_fenics_mesh_xdmf (   fem_mesh_obj,
  outputfile,
  group_values_dict = {},
  encoding = ENCODING_ASCII 
)

Variable Documentation

◆ ENCODING_ASCII

string feminout.writeFenicsXDMF.ENCODING_ASCII = "ASCII"

◆ ENCODING_HDF5

string feminout.writeFenicsXDMF.ENCODING_HDF5 = "HDF5"

◆ FreeCAD_Group_Dimensions

dictionary feminout.writeFenicsXDMF.FreeCAD_Group_Dimensions
Initial value:
1= {
2 "Vertex": 0,
3 "Edge": 1,
4 "Face": 2,
5 "Volume": 3
6}

◆ FreeCAD_to_Fenics_XDMF_dict

dictionary feminout.writeFenicsXDMF.FreeCAD_to_Fenics_XDMF_dict
Initial value:
1= {
2 ("Node", 1): ("polyvertex", 1),
3 ("Edge", 1): ("polyline", 2),
4 ("Edge", 2): ("edge_3", 3),
5 ("Triangle", 1): ("triangle", 3),
6 ("Triangle", 2): ("tri_6", 6),
7 ("Tetra", 1): ("tetrahedron", 4),
8 ("Tetra", 2): ("tet_10", 10)
9}