Local scalar variable for multi-scale simulation #16274
-
Hi All, I have a question regarding multi-scale simulation. In addition to this field variable, I would like to learn some localized physics (say, 'var_local'), whose residual depends on the field variable (its local value, _T[_qp], and gradient, _grad_T[_qp]) and the local variable (some_var), but not its gradient (_grad_some_var[_qp], which does not have physical meaning, neither we should care). Clearly, this 'var_local' lives on each mesh node (and q point). This 'var_local', depending on user request, could be a single value, or an array. This seems to me should be handled by scalar variable type of approach, but current scalar variable does not seem to support this type of specialized request. Any suggestions/discussions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are you creating a Kernel object that contributes to the residual of T that includes contributions that depend on 'var_local'? And 'var_local' can be either a single value or a vector of values, depending on user options? Can you calculate 'var_local' directly given T and grad T? If those are all yes, then 'var_local' probably just needs to be a material property. The Kernel can decided which version of the property to use (scalar vs vector) based on an input parameter. |
Beta Was this translation helpful? Give feedback.
Are you creating a Kernel object that contributes to the residual of T that includes contributions that depend on 'var_local'? And 'var_local' can be either a single value or a vector of values, depending on user options? Can you calculate 'var_local' directly given T and grad T?
If those are all yes, then 'var_local' probably just needs to be a material property. The Kernel can decided which version of the property to use (scalar vs vector) based on an input parameter.