Improve interface for transport model surrogates that provide fluxes #455
Replies: 2 comments
-
In a meeting with @jcitrin, @hamelphi, @theo-brown, @lorenzozanisi, we proposed the following architecture:
Additionally, there is code in the qualikiz_inputs that can be moved across to physics / a common function, e.g. Ati, Ate, etc can all be put in a function that takes in a particular choice of radial coordinate and normalising factor etc - @jcitrin Separately, we noticed that lam_ei, tau_ei, etc can all be extracted and cleaned up in physics. - @jcitrin
Potentially We also are not sure whether we need to replicate this pattern: torax/torax/transport_model/qlknn_wrapper.py Line 150 in 4525532 |
Beta Was this translation helpful? Give feedback.
-
For starters, QuasilinearTransportModelInputs should store all the variables used in make_core_transport, and computation should be done in the subclasses |
Beta Was this translation helpful? Give feedback.
-
I'm looking to integrate a transport surrogate @lorenzozanisi developed into TORAX.
Similar to QLKNN, it takes in gradients, geometry, etc and produces
qi
,qe
, andpfe
(orpfi
).Given many transport models have the same or similar mapping (gradients to fluxes), would there be scope for generalising the transport model interface to facilitate this? For example, currently I would be writing a new
make_core_transport
function that would largely replicate the existing one for QLKNN, albeit with replacingQualikizInputs
andQualikizDynamicRuntimeParams
withLorenzoInput
andLorenzoDynamicRuntimeParams
.Beta Was this translation helpful? Give feedback.
All reactions