# yt.utilities.mesh_code_generation module¶

This file contains code for automatically generating the functions and jacobians used when sampling inside the supported finite element mesh types. The supported mesh types are defined in yt/utilities/mesh_types.yaml.

Usage (from the yt/utilities directory):

python mesh_code_generation.py

This will generate the necessary functions and write them to yt/utilities/lib/autogenerated_element_samplers.pyx.

class yt.utilities.mesh_code_generation.MeshCodeGenerator(mesh_data)[source]

Bases: object

A class for automatically generating the functions and jacobians used for sampling inside finite element calculations.

get_interpolator_declaration()[source]

This returns the function declarations for the given mesh type.

get_interpolator_definition()[source]

This returns the function definitions for the given mesh type.