warp.fem.Quadmesh2D#
- class warp.fem.Quadmesh2D(
- quad_vertex_indices,
- positions,
- build_bvh=False,
- temporary_store=None,
Two-dimensional quadrilateral mesh
- Parameters:
quad_vertex_indices (array)
positions (array)
build_bvh (bool)
temporary_store (TemporaryStore | None)
- __init__(
- quad_vertex_indices,
- positions,
- build_bvh=False,
- temporary_store=None,
Constructs a D-dimensional quadrilateral mesh.
- Parameters:
quad_vertex_indices (array) – warp array of shape (num_tris, 4) containing vertex indices for each quad, in counter-clockwise order
positions (array) – warp array of shape (num_vertices, D) containing the position of each vertex
temporary_store (TemporaryStore | None) – shared pool from which to allocate temporary arrays
build_bvh (bool)
Methods
__init__(quad_vertex_indices, positions[, ...])Constructs a D-dimensional quadrilateral mesh.
boundary_side_count()build_bvh([device])Rebuilds the geometry's Bounding Volume Hierarchy (BVH) for device from scratch.
bvh_id(device)cell_arg_value(device)cell_count()cell_inverse_deformation_gradient(args, s)Device function returning the matrix right-transforming a gradient w.r.t.
cell_measure(args, s)Device function returning the measure determinant (e.g. volume, area) at a given point.
cell_normal(args, s)Device function returning the element normal at a sample point.
fill_cell_arg(args, device)fill_cell_topo_arg(args, device)fill_side_arg(args, device)fill_side_index_arg(args, device)fill_side_topo_arg(args, device)make_filtered_cell_lookup([filter_func])reference_cell()reference_side()side_arg_value(device)side_count()side_index_arg_value(device)side_inner_inverse_deformation_gradient(...)Device function returning the matrix right-transforming a gradient w.r.t.
side_measure(args, s)Device function returning the measure determinant (e.g. volume, area) at a given point.
side_measure_ratio(args, s)Device function returning the ratio of the measure of a side to that of its neighbour cells
side_normal(args, s)Device function returning the element normal at a sample point
side_outer_inverse_deformation_gradient(...)Device function returning the matrix right-transforming a gradient w.r.t.
supports_cell_lookup(device)update_bvh([device])Refits the geometry's BVH if it exists on device, or builds it from scratch otherwise.
vertex_count()Attributes
Structure containing arguments to be passed to device functions evaluating cell-related quantities
Structure containing arguments to be passed to device functions evaluating side-related quantities
SideIndexArgStructure containing arguments to be passed to device functions for indexing sides
baseReturns the base geometry from which this geometry derives its topology.
boundary_side_indexcell_boundscell_bvh_idcell_deformation_gradientcell_dimensionManifold dimension of the geometry cells
cell_lookupcell_measure_ratiocell_positionedge_quad_indicesedge_vertex_indicesnameside_closest_pointside_deformation_gradientside_from_cell_coordsside_inner_cell_coordsside_inner_cell_indexside_outer_cell_coordsside_outer_cell_indexside_position- CellArg: Struct = <warp._src.codegen.Struct object>#
Structure containing arguments to be passed to device functions evaluating cell-related quantities
- SideArg: Struct = <warp._src.codegen.Struct object>#
Structure containing arguments to be passed to device functions evaluating side-related quantities
- side_to_cell_arg = <Function Quadmesh2D__side_to_cell_arg(side_arg: warp._src.fem.geometry.quadmesh.Quadmesh2DSideArg)>#
- Parameters:
side_arg (Quadmesh2DSideArg)