locuslab / cfd-gcn

114 stars 34 forks source link

Differentiation w.r.t. inlet and outlet pressure #5

Open thomashlvt opened 3 years ago

thomashlvt commented 3 years ago

Hi! Thank you for your great work, really like the project!

I have a question regarding the differentiable SU2Module. I noticed it is possible to differentiate w.r.t. the inlet velocity and temperature, however, is it also possible to differentiate w.r.t to the inlet pressure and/or outlet backpressure?

Thanks!

filipeabperes commented 3 years ago

Unfortunately, exposing new variables for differentiation to python/pytorch requires modifying the underlying C++ code for SU2, so that these variables are places on the automatic differentiation tape properly. So in order to make these quantities differentiable, such changes would have to be made.