Numerical precision in ParsedFunctions #31822
-
Check these boxes if you have followed the posting rules.
Issue or question about MOOSEI am suspecting that there could be some issues with the Parsed function and round-off. I have another simulation where the output is fit to a Fourier expansion. I then use this fit as a function in a MOOSE calculation. The ParsedAux expression is something like The Fourier fit only has one frequency - up to 7th order so it is easy to figure out the minimum x,y coordinates for a strictly periodic computational domain. However, when I visualize this field with ParaView and replicate the periodic domain many times, I see that it does not really match up. See below.
Could it be a visualization error from round-off? I.e. the box spans x,y = 1.0 to x,y = 4.442882938158366. So maybe ParaView is rounding off where to translate the periodic image... Does anyone know? Or should I suspect that ParsedAux also does some rounding? Thanks! (Optional) code in question / simulation log / errorsNo response Encountering Errors? Please include diagnostic outputNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hello
You could check with a simple profile? Like cos
Parsed expresssions are optimized by fparser which can perform round offs. You can turn it off to check with the |
Beta Was this translation helpful? Give feedback.

Hello
You could check with a simple profile? Like cos
Parsed expresssions are optimized by fparser which can perform round offs. You can turn it off to check with the
disable_fpoptimizerparameterhttps://mooseframework.inl.gov/source/auxkernels/ParsedAux.html