-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Hi Olav,
Is it possible to compute the local gradient cell by cell in JutulDarcy? Here's what I mean, I get saturation from the simulation, the code can easily compute the gradient of saturation difference (observed saturation -predicted saturation) with respect to permeability.
However, now I transform the saturation into something else, for example, seismic, then I get the new objective function loss = (seis_pred - seis_pred)^2.
I can compute the gradient of loss = (seis_pred - seis_pred)^2 with respect to saturation, now I think I need to get local gradient of dsw/dperm cell by cell to achieve the chain rule:
dloss / dsat * dsat/dperm.
Therefore, my question is: is it possible to compute the gradient of saturation to permeability cell by cell in JutulDarcy? Thanks.
Zhen