warp.fem.field.TrialField#

class warp.fem.field.TrialField(space, space_partition, domain)[source]#

Field defined over a domain that can be used as a trial function.

Parameters:
__init__(space, space_partition, domain)[source]#
Parameters:

Methods

__init__(space, space_partition, domain)

divergence_valid()

Whether the divergence operator is implemented for this field.

eval_arg_value(device)

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)

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 ops will be applied.

partition_node_count()

Return the number of nodes in the associated space topology partition.

rebind(space, space_partition, domain)

Rebind the field to a new space partition, space and domain.

trace()

Trace of this field over lower-dimensional elements

Attributes

degree

Polynomial degree of the field.

divergence_dtype

Return type of the divergence operator.

dof_dtype

Data type of the field degrees of freedom.

dtype

Data type of the field values.

element_kind

Kind of elements over which the field is defined.

geometry

Geometry over which the field is defined.

gradient_dtype

Return type of the (world space) gradient operator.

name

reference_gradient_dtype

Return type of the reference space gradient operator.

space

Function space defining the field.

space_partition

Space partition associated with the field.

EvalArg

Structure containing field-level arguments passed to device functions for field evaluation.

ElementEvalArg

Structure combining geometry-level and field-level arguments passed to device functions for field evaluation.

partition_node_count()[source]#

Return the number of nodes in the associated space topology partition.

Return type:

int