New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing to define an array varible with component size one #19564
Labels
Comments
@YaqiWang |
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
yjung-anl
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
loganharbour
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
loganharbour
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
loganharbour
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
loganharbour
added a commit
to yjung-anl/moose
that referenced
this issue
Dec 7, 2021
loganharbour
added a commit
to loganharbour/moose
that referenced
this issue
Dec 8, 2021
loganharbour
added a commit
to loganharbour/moose
that referenced
this issue
Jun 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reason
An array variable is automatically defined as an normal variable if its component size is one.
This is a reasonable implementation in for most of cases.
In the
HFEM-PN
solver ofGriffin
, the solution is expnanded using thespherical harmonics
functions. Its expansion coefficients aredof
s of the HFEM-PN solver. The expansion coefficients are defined as array variables and the array kernels for HFEM-PN equations were developed. The number of components in array variables are determined the expansion order ofspherical harmonics
. If the expansion order is set one, the number of component of array variable become one.Then, this variable is automatically defined as normal variables, which are incompatible with the array kernels.In order to make it compatible with the array kernel in any expansion orders, a new option for defining an array varialbe regardless of its component sizes (allow us to define an array variable with size one).
Design
A new input parameter,
is_av
, was added toAddVariableAction::determineType
inAddVariableAction.C
:Some minor changes were made accordingly to
MooseVariableBase::MooseVariableBase
andSystemBase::addVariable
.Impact
A new option become avaiable which allows to define a array variable with component size one.
The text was updated successfully, but these errors were encountered: