This commit is contained in:
Rowan Cockett
2013-11-15 10:10:10 -08:00
parent 7663d12707
commit e98e41f34c
+14
View File
@@ -86,6 +86,20 @@ class RichardsProblem(Problem):
self.doNewton = False # This also sets the rootFinder algorithm.
setKwargs(self, **kwargs)
def dpred(self, m, u=None):
"""
Predicted data.
.. math::
d_\\text{pred} = Pu(m)
"""
if u is None:
u = self.field(m)
u = np.concatenate(u[1:])
if self.dataType is 'saturation':
u = self.empirical.moistureContent(u)
return self.P*u
def field(self, m):
self.empirical.setModel(m)
Hs = range(self.numIts+1)