Hey all,
I'm getting some strange output file behavior that I don't really understand. Sometime yesterday I was adding an ADInterfaceKernel to handle surface charge and everything was working fine, but after rerunning a test I noticed that the exodus file was suddenly different. Auxiliary variables don't seem to be output to the exodus file correctly. For example, in my DBD test case I have three regions: block 0 (left dielectric), block 1 (gas region), and block 2 (right dielectric), and I have an auxiliary variable "x" and "Efield" which each exist in all three regions. "x" just stores the spatial coordinate for plotting cell data, and Efield is self explanatory. Obviously things like electron temperature and current density only exist in the gas region, but when I try to look at the file in Paraview, I do not see "x" as a variable that can be plotted or used in the X Array Name field, and I see variables like e_temp and tot_gas_current in the dielectric regions even though they are explicitly defined in block = 1 in the input file.
The values of these misplaced variables are always zero, as far as I can tell. Depending on the order of the AuxVariables in the input file I sometimes miss some variables in any of the three blocks. In fact, the way I noticed this issue was that I wrote a python script to extract Exodus variables and plot them, and the aux variable Efield was not found. I mention this because I think it means this isn't a paraview issue. I also tried entering print statements in the relevant AuxKernels and they all seem to be accessed normally. The simulation runs normally
I'm getting this issue on both Ubuntu 18.04 and macOS Catalina (10.15.3). Since seeing this issue I've updated conda (conda update --all), pulled the most recent master branch for Moose, ran "make clobberall" to make sure I wasn't using deprecated links, and recompiled everything on both operating systems. It does not seem to have an effect. I honestly do not remember what I did when this change came about; I was playing around with ADInterfaceKernels and ADMaterials and never touched the Moose source code. This behavior can be seen on my dielectric_charge branch in the /tests/surface_charge/argon_dbd.i file and its output.
Was there some recent update to moose that affected how variables were plotted? I've never seen an issue like this before. It doesn't seem to affect nonlinear variables at all so I can extract the data and reconstruct the number densities, efield, etc. if necessary, but this will be an issue for an upcoming PR because the gold exodus files will be unpredictable if this continues (unless I exclude all AuxVariables I suppose). I'd like to fix this but I'm not sure where to even begin looking.
-Shane Keniley