question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to compute the flux through a part of the boundary

See original GitHub issue

A common postprocessing operation is the computation of the flux through a part of the boundary which has had an isopotential boundary condition imposed. I haven’t quite worked out how to evaluate this.

I have in a branch of examples/ex13.py (which is atop #47) computed the gradient of the potential using derivative, but haven’t figured out how to then integrate the normal component of this over just a part of the boundary, say that corresponding to mesh.boundaries['ground'].facets.

Is there a facility for restricting a linear_form to a Submesh?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kinnalacommented, Sep 20, 2018

One can now give Submesh to FacetBasis constructor via the keyword argument submesh.

The resulting FacetBasis is nonzero only on the submesh.

0reactions
gdmcbaincommented, Sep 21, 2018

Awesome! Thank you. I have extended ex13 to demonstrate this. #56

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flux through the boundary of a rectangle - Math Stack Exchange
F=⟨x3+2,ycos(6x)⟩. We get the 2D curl: curl(F)=−6ysin(6x)−0=−6ysin(6x). By green's theorem, the flux through the boundary is thus:.
Read more >
Example 2: Flux Through A Surface with Two Boundaries
First of all, what do we mean by a region with two boundaries? Here's an example. Let S1 be the sphere of radius...
Read more >
Flux in two dimensions (article) - Khan Academy
The flux over the boundary of a region can be used to measure whether whatever is flowing tends to go into or out...
Read more >
6.8 The Divergence Theorem - Calculus Volume 3 | OpenStax
S a . To calculate the flux across S, let E be the solid between surfaces S a S a and S. Then,...
Read more >
Finding the Flux: Surface Ingtegral of a Vector Field ... - YouTube
Find the flux of a vector field through a surface. It turns out that this is actually a surface integral.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found