-
Notifications
You must be signed in to change notification settings - Fork 95
feat: Adaptive multilinear interpolation for OBL solver #3391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
…earInterpolatorStaticKernels
…nel to PythonFunction
…to PythonFunction
…g adaptive kernel
Thanks @av-novikov for this PR! I think that the python scripts shouldn't go in a subfolder of |
inputFiles/compositionalMultiphaseFlow/2ph3c_square/input_file_adaptive.xml
Outdated
Show resolved
Hide resolved
@dkachuma @paveltomin can you help review this PR? Thanks. |
This PR adds interfaces for embedding of Python function into C++ code, adds multilinear adaptive interpolation with given exact evaluator from Python and adds the support of both static and adaptive interpolation in ReactiveCompositionalMultiphaseOBLKernels. Ultimate goal is to run simulation similar to open-darts from a corresponding (part of) model given from Python.
FAQ:
Q: Why do we use __uint128_t ?
A: We need to count nodes and hypercubes in multidimensional state space. Even with 300 points per axis in 8-dim space (e.g. 8-component fluid), the number of points (300^8) surpasses the maximum of 64-bit integer. Moreover, single __uint128_t key type simplifies hashing points and hypercubes in std::unordered_map storage.
Q: Do we duplicate the storage of points?
A: Yes, because we minimize memory accesses by excessive, but consecutive storage.