warp.fem.DiscreteField#
- class warp.fem.DiscreteField(space, space_partition)[source]#
Explicitly-valued field defined over a partition of a discrete function space.
- Parameters:
space (FunctionSpace)
space_partition (SpacePartition)
- __init__(space, space_partition)[source]#
- Parameters:
space (FunctionSpace)
space_partition (SpacePartition)
Methods
__init__(space, space_partition)divergence_valid()Whether the divergence operator is implemented for this field.
eval_arg_value(device)Value of the field-level arguments to be passed to device functions
eval_degree(args)Polynomial degree of the field is applicable, or hint for determination of interpolation order
eval_div_inner(args, s)Device function evaluating the inner field divergence at a sample point
eval_div_outer(args, s)Device function evaluating the outer field divergence at a sample point
eval_grad_inner(args, s)Device function evaluating the inner field gradient at a sample point
eval_grad_outer(args, s)Device function evaluating the outer field gradient at a sample point
eval_inner(args, s)Device function evaluating the inner field value at a sample point
eval_outer(args, s)Device function evaluating the outer field value at a sample point
eval_reference_grad_inner(args, s)Device function evaluating the inner field gradient with respect to reference element coordinates at a sample point
eval_reference_grad_outer(args, s)Device function evaluating the outer field gradient with respect to reference element coordinates at a sample point
fill_eval_arg(arg, device)Fill the field-level arguments to be passed to device functions
gradient_valid()Whether the gradient operator is implemented for this field.
make_deformed_geometry([relative])Return a deformed version of the underlying geometry, with positions displaced according to this field's values.
notify_operator_usage(ops)Make the Domain aware that the operators
opswill be applied.set_node_value(args, node_index, value)Device function setting the value at given node
trace()Trace of this field over lower-dimensional elements
Attributes
degreePolynomial degree of the field.
divergence_dtypeReturn type of the divergence operator.
dof_dtypeData type of the field degrees of freedom.
Array of degrees of freedom values
dtypeData type of the field values.
element_kindKind of elements over which the field is defined.
geometryGeometry over which the field is defined.
gradient_dtypeReturn type of the (world space) gradient operator.
Unique name for this discrete field.
reference_gradient_dtypeReturn type of the reference space gradient operator.
spaceFunction space defining the field.
space_partitionSpace partition associated with the field.
EvalArgStructure containing field-level arguments passed to device functions for field evaluation.
ElementEvalArgStructure combining geometry-level and field-level arguments passed to device functions for field evaluation.