Can we update multiple auxvariables at once from a single pluggable system ? #24258
-
Dear MOOSE team, In my simulation, based on the thermo-mechanical history of each node, I am calculating a few properties like grain_size and yield strength on each node. I have an external C library which can calculate these properties ( Discussion: #24129 ). The API of the external C library allows to me calculate several properties at once (let's say five properties). I want to store all these properties in individual auxvariables. As the API calls are expensive, I dont want to call the API functions in five times in five different auxkernels for each timestep. Is there any alternative ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hello AuxKernels are meant to set the value of only one variable, so that would be one API call by variable Would you want to use an array variable to store everything as components of variables?
Guillaume |
Beta Was this translation helpful? Give feedback.
Here's an example of a .C file and accompanying input file if you wanted to update nodal variables (e.g. Lagrange). You can add arbitrarily many coupled variables in your input parameters block