Skip to content

compute local gradient #112

@zhen0z

Description

@zhen0z

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions