Clarifying the usage of offset & LogStabilizationMoles #126
-
I have a few quick questions regarding the role of LogStabilizationMoles & offset. My current understanding of the LogStabilizationMoles kernel and the offset term is: the log-molar density form in Zapdos is designed to prevent zero and negative density values. Nonetheless, for the sake of stability, an offset b is added to assist values approaching zero. This value b is added to the variable at each element, but it has the biggest impact where the variable is close to zero. Please correct me if any of this is incorrect. Some questions following this:
Please correct me if I have an incorrect conception of this kernel, and thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Your second question is on the right track. |
Beta Was this translation helpful? Give feedback.
Your second question is on the right track.
LogStabilizationMoles
acts as a source term in the form of exp(-(b+u)) (please keep in mind that u here is the log form the the density, such that n = exp(u), where n is the density). Since this source term is depended on exp(-u), it will be more impactful for small densities vs large densities. There is nothing physically to b, and it is used to offset exp(-u) so that this artificial term does not full dominate the other source terms. b depends on the problem set, but we found that a b of 20 is usually sufficient. I should note that not all Zapdos simulation need this stabilization (e.g. @lindsayad and I believe @keniley1 need it for the 1D pla…