DoNothingBC's and parameter "diff" is being retrieved before being set #106
-
Are the DoNothingBC's working properly? I notice that there are no tests available for them in the repository, and I'm trying to use them in an input file but I'm getting an error The parameter "diff" is being retrieved before begin set and I haven't seen this one before. If they are working properly, please let me know where I might be going wrong such that this error appears. I've attached my input file as a txt file. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
The
Edit: Please disregard the above statement. There is a bug that currently requires users to define |
Beta Was this translation helpful? Give feedback.
The
DriftDiffusionDoNothingBC
is old code that was made when @lindsayad was first making Zapdos and hasn't been developed upon since. Looking at the body files, it looks like that BC is not fluid dependent with the material block (i.e. instead of calling the diffusion and mobility coefficient for a specific variable, it calls on a singularmu
anddiff
term). The error is because a material property ofmu
anddiff
was not define in the input file. Because multiple variable are using that BC, you need to define the mobility and diffusion coefficient in the each separate BC. It should look something like:[Species_outlet]
type = DriftDiffusionDoNothingBC
variable = species
mu = #
diff = #
…