note a few suspect areas of code

This commit is contained in:
2022-07-30 17:02:10 -07:00
parent a14625b493
commit 6a511943f7
2 changed files with 8 additions and 1 deletions

View File

@@ -143,7 +143,13 @@ impl<'a, R: Real, M: Material<R>> Sample<'a, R, M> {
}
pub fn current_density(&self) -> Vec3<R> {
// TODO: does this make sense for Pml?
// TODO: justify/derive this.
// i guess the actual current density is the gradient of E multiplied by conductivity,
// and that when summed over a loop the negative terms from the neighbors are canceled
// when we grab their current density?
//
// or maybe it's $V = \int{E . dl} = IR$, so $I = \int{\sigma E . dl}$
// in which case this might not be "current density", but something related.
let conductivity = self.conductivity();
self.e().elem_mul(conductivity)
}