NVIDIA / NVIDIA/warp

[QUESTION] Evaluating fields at other triangle nodes during nodal assembly in `fem.integrate`

Open
#641 6 comments 0 reactions 1 assignee View on GitHub

@gdaviet is already working on this.

Since Apr 10, 2025.

question
Dominant language
Python
Stars
7.1k
Forks
624
Avg merge
3d 17h
Merged PRs (30d)
5

Description

Hi,

I'm integrating over a triangle mesh using fem.integrate with assembly='nodal'. My integrand evaluates the trial field u at the sample point s, which corresponds to a specific node i of a triangle with nodes (i, j, k).

Is there a way to evaluate the same or any other field at the other two nodes of the triangle — i.e., compute sample points corresponding to nodes j and k, so I can evaluate u(s_j) and u(s_k) from within the integrand?

This would allow me to compute expressions that involve not only u(s) at the current node, but also u at neighbouring nodes of the same element.

Thanks,
Chris

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.