Hi! We have not yet implemented the adjoint method in OPM. We do indeed use Automatic Differentiation (AD) which should make it relatively easy (compared to without AD) to implement adjoints. If you'd implement this I would certainly be interested!
It should also be noted that if you have access to Matlab, there are adjoint implementations in MRST's solvers. Atgeirr 18. apr. 2015 kl. 15:11 skrev Tobias Ritschel <[email protected]>: > Hi > > I would like to use OPM for optimal control of injection and production. As > such I need the derivatives/sensitivities of the a given objective function > with respect to controls. This can be calculated using the discrete adjoint > method which in turn requires derivatives of the residuals with respect to > the dynamic variables and controls. > > I can see that there are some solvers such as SimulatorIncompTwophaseAd and > ImpesTPFAAD, which I guess uses Automatic Differentiation. Is it possible to > extract relevant derivatives from these functions, e.g. by using the function > LinearizedBlackoilResidual and FullyImplicitBlackoilSolver? > > I am currently modifying the sim_simple.cpp example but if the functionality > is implemented in one of the solvers in any way, I would prefer to use them. > > Kind Regards > Tobias > _______________________________________________ > Opm mailing list > [email protected] > http://www.opm-project.org/mailman/listinfo/opm _______________________________________________ Opm mailing list [email protected] http://www.opm-project.org/mailman/listinfo/opm
