warp.fem.UniformField#
- class warp.fem.UniformField(domain, value)[source]#
Field defined as a constant value over a domain.
- Parameters:
domain (GeometryDomain) – Domain over which the field is defined
value (Any) – Uniform value over the domain
- __init__(domain, value)[source]#
- Parameters:
domain (GeometryDomain)
value (Any)
Methods
__init__(domain, value)Whether divergence evaluation is available.
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 evaluation arguments for device functions.
Whether gradient evaluation is available.
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.trace()Return the trace of this field on domain sides.
Attributes
Polynomial degree for the constant field.
divergence_dtypeReturn type of the divergence operator.
Data type of the field values.
Kind of elements over which the field is defined.
Underlying geometry of the domain.
gradient_dtypeReturn type of the (world space) gradient operator.
Unique name encoding the domain and value type.
reference_gradient_dtypeReturn type of the reference space gradient operator.
Uniform value of 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.
- property element_kind: ElementKind[source]#
Kind of elements over which the field is defined.