Hello team!
I am currently running some experiments for Burgers equation and Advection-Diffusion using APEBench, but I have some confusion.
Interpretation of values
For example in Burgers, I want to change it's difficulty. So, working in "difficulty" mode (diff_burgers), given defaults N=160, L=1, dt=1.0, t=50, I need to change linear component diffusion_gamma (default 1.5) and nonlinear component convection_delta (default -1.5). Compared to the motivational example in the paper for advection, it is not straightforward to understand what and how to change these values, because for advection there is only the linear component gamma (0.5 relatively easy <---> 10.5 hard). In Advection-diffusion there are two gammas (default -4 and 4). As a person with not sufficient (hopefully, yet) intuition for physics equation, could you give some recommendation for changing these values? Should I change only one of them? Should I change both of them? Like, by default for diff_burgers it is gamma=(0,0,1.5,0), delta=(0, -1.5, 0). Should these be always as X, -X for Burgers? How this X=1.5 connected to number of points N?
Changing resolution and then difficulty
I want to increase spatial resolution (for example, from 160 to 4000 in 1D). When I change number of points, dx is changed, and then the alphas are changed inside the scenario to have chosen gammas -- the trajectory becomes "slower". Then I change gammas, so that I have the same alphas. I guess, I should first work with normalised scenarios instead? So to find the "base" gammas? And then change these. I can see from the formula that if I increase N by A=25, then I should increase these by A (37.5) and A^2 (-937.5) to have the same speed, but this seems too high. Maybe I miscalculated? And if these have increased, what will be the "interval" to get harder and easier trajectories (XX relatively easy <---> YY hard)?
Overall, what I can't figure out easily, how to scale gammas and deltas (or betas) after scaling resolution. And how these parameters' inter-ratio should be managed. On top of that, when I try-and-error some values, I get instabilities. And I also have to adjust initial conditions interval because I get instabilities too.
Do you see what am I missing? Is there a way to get "recommended" interval based on CFL condition and N?
Thanks in advance,
Sofi
Hello team!
I am currently running some experiments for Burgers equation and Advection-Diffusion using APEBench, but I have some confusion.
Interpretation of values
For example in Burgers, I want to change it's difficulty. So, working in "difficulty" mode (
diff_burgers), given defaults N=160, L=1, dt=1.0, t=50, I need to change linear componentdiffusion_gamma(default 1.5) and nonlinear componentconvection_delta(default -1.5). Compared to the motivational example in the paper for advection, it is not straightforward to understand what and how to change these values, because for advection there is only the linear component gamma (0.5 relatively easy <---> 10.5 hard). In Advection-diffusion there are two gammas (default -4 and 4). As a person with not sufficient (hopefully, yet) intuition for physics equation, could you give some recommendation for changing these values? Should I change only one of them? Should I change both of them? Like, by default fordiff_burgersit is gamma=(0,0,1.5,0), delta=(0, -1.5, 0). Should these be always as X, -X for Burgers? How this X=1.5 connected to number of points N?Changing resolution and then difficulty
I want to increase spatial resolution (for example, from 160 to 4000 in 1D). When I change number of points, dx is changed, and then the alphas are changed inside the scenario to have chosen gammas -- the trajectory becomes "slower". Then I change gammas, so that I have the same alphas. I guess, I should first work with normalised scenarios instead? So to find the "base" gammas? And then change these. I can see from the formula that if I increase N by A=25, then I should increase these by A (37.5) and A^2 (-937.5) to have the same speed, but this seems too high. Maybe I miscalculated? And if these have increased, what will be the "interval" to get harder and easier trajectories (XX relatively easy <---> YY hard)?
Overall, what I can't figure out easily, how to scale gammas and deltas (or betas) after scaling resolution. And how these parameters' inter-ratio should be managed. On top of that, when I try-and-error some values, I get instabilities. And I also have to adjust initial conditions interval because I get instabilities too.
Do you see what am I missing? Is there a way to get "recommended" interval based on CFL condition and N?
Thanks in advance,
Sofi