[QUESTION] Evaluating fields at other triangle nodes during nodal assembly in `fem.integrate`
@gdaviet is already working on this.
Since Apr 10, 2025.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.