carputils
Doxygen code documentation for the python framework controlling openCARP
Functions
carputils.carpio.msh_stats Namespace Reference

Functions

def existence (mesh_name)
 check if the files mesh_name.pts, mesh_name.elem, mesh_name.lon exist More...
 
def queryEdges (basemesh)
 QUERYEDGES query min/mean/max sizes of with given mesh (obtained from 'meshtool query edges') More...
 
def write (msh)
 Write the mesh stats (m_el and centroid) to msh+'.stats.out.txt. More...
 
def read (msh)
 Read a mesh stats file (msh+'.stats.txt) for centroid and mean edge length. More...
 

Function Documentation

◆ existence()

def carputils.carpio.msh_stats.existence (   mesh_name)

check if the files mesh_name.pts, mesh_name.elem, mesh_name.lon exist

Parameters

mesh_name str base name of the openCARP mesh

an object with boolean attributes exists, points elements, fibers indicating if the corresponding file exists

◆ queryEdges()

def carputils.carpio.msh_stats.queryEdges (   basemesh)

QUERYEDGES query min/mean/max sizes of with given mesh (obtained from 'meshtool query edges')

parameters: basemesh (input) path to basename of the mesh

Returns
tuple of minimum, mean and maximum existing edge length

◆ read()

def carputils.carpio.msh_stats.read (   msh)

Read a mesh stats file (msh+'.stats.txt) for centroid and mean edge length.

params msh (input) Meshname of a mesh with an already generated stats file.

  return:

m_el centroid

◆ write()

def carputils.carpio.msh_stats.write (   msh)

Write the mesh stats (m_el and centroid) to msh+'.stats.out.txt.

params: msh (input) Meshname outputs:

msh+'.stats.out.txt'