Replies: 2 comments
-
You can write your own code to do this. Something like,
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks very much for your reply. It seems that we can also take advantage of the post_interp function, which do something after the interpolation. In this way, we can keep using the default interpolation functions avaliable in Amrex. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement the lattice Boltzmann Method with AMRex taking advantage of its adaptive and efficient AMR mesh strategy.
According to my understanding, the AMRex directly interpolates the values from corarse mesh to finer mesh by using various interpolation methods such as bilinear interpolation, but there is a difference for the interpolation when using LBM and other FDM/FVM. Let's use a simple example to explain the difference, in the FDM/FVM, we may have
phi_finer_n = 0.5*(phi_coarse_m-1 + phi_coarse_m+1),
but in LBM, we may need to use
phi_finer_n = \alpha * 0.5*(phi_coarse_m-1 + phi_coarse_m+1),
where \alpha is a factor which needs to be computed based on some variables stored in phi. Therefore, my question is how we can achieve this easily.
Simply to say, we need another factor (\alpha) involved in the interpolation and average down, which seems not inherently supported by AMRex, how to achieve this easily with mimal change to the availabe code.
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions