FDEM problems: e,b,h,j up and running with Jvec and Jtvec within the re-factored framework. Whenever a new element is created, we create its derive wrt u (the computed field) and wrt m (the model). Jvec and Jtvec then stitch these pieces together using chain rule

This commit is contained in:
Lindsey Heagy
2015-06-16 11:28:29 -07:00
parent 58e8ce4988
commit 7239d9cbe6
4 changed files with 39 additions and 114 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ class BaseEMProblem(Problem.BaseProblem):
# TODO: This should take a vector
def MfRhoDeriv(self,u):
return self.mesh.getFaceInnerProductDeriv(self.curModel.rho)(u) * self.curModel.rhoDeriv
return self.mesh.getFaceInnerProductDeriv(self.curModel.rho)(u) * -Utils.sdiag(self.curModel.rho**2) * self.curModel.sigmaDeriv
# self.curModel.rhoDeriv
@property
def MfRhoI(self):