Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

sdynpy.ExodusInMemory

Signature

class sdynpy.ExodusInMemory(exo=None, variables=None, timesteps=None, blocks=None)

Read or write exodus files loaded into memory

This is a convenience class wrapped around the exodus class to enable easier manipulation of exodus files that fit entirely into memory

Parameters

Methods

NameSummary
__init__Initialize self. See help(type(self)) for accurate signature.
extract_sharp_edges
from_sdynpy
get_block_surfaceGets the node indices and element connectivity of surface elements
load_from_exodus
reduce_to_surfaces
repackRepackages an exodus file as a linear combination of itself
triangulate_surface_meshTriangulate a surface mesh for plotting patches
write_to_file

__init__

def sdynpy.ExodusInMemory.__init__(self, exo=None, variables=None, timesteps=None, blocks=None)

Initialize self. See help(type(self)) for accurate signature.

extract_sharp_edges

def sdynpy.ExodusInMemory.extract_sharp_edges(self, *args, **kwargs)

from_sdynpy

def sdynpy.ExodusInMemory.from_sdynpy(geometry, displacement_data=None)

get_block_surface

def sdynpy.ExodusInMemory.get_block_surface(self, block_id, keep_midside_nodes=False, warn=True)

Gets the node indices and element connectivity of surface elements

This function “skins” the element block, returning a list of node indices and a surface connectivity matrix.

Parameters

Returns

load_from_exodus

def sdynpy.ExodusInMemory.load_from_exodus(self, exo, variables=None, timesteps=None, blocks=None)

reduce_to_surfaces

def sdynpy.ExodusInMemory.reduce_to_surfaces(self, *args, **kwargs)

repack

def sdynpy.ExodusInMemory.repack(self, q, modes=None)

Repackages an exodus file as a linear combination of itself

triangulate_surface_mesh

def sdynpy.ExodusInMemory.triangulate_surface_mesh(self)

Triangulate a surface mesh for plotting patches

This function generates a triangle mesh for each block in the model if it can. If there are more than 3 nodes per element in a block, and the triangulation scheme hasn’t been defined in pyexodus.mesh_triangulation_array, it will be skipped.

Parameters

Returns

write_to_file

def sdynpy.ExodusInMemory.write_to_file(self, filename, clobber=False)