Skip to content
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

Accessing a coupled array's du_dot_du #25833

Closed
NateAM opened this issue Oct 24, 2023 Discussed in #25832 · 0 comments · Fixed by #25837
Closed

Accessing a coupled array's du_dot_du #25833

NateAM opened this issue Oct 24, 2023 Discussed in #25832 · 0 comments · Fixed by #25837
Assignees

Comments

@NateAM
Copy link
Contributor

NateAM commented Oct 24, 2023

Discussed in #25832

Originally posted by NateAM October 24, 2023
I'm having some trouble accessing a coupled array's _du_dot_du variable. In my header I define

myClass.h

...
const VariableValue & _dv_dot_dv;
...

and in the source file I define

myClass.C

InputParameters myClass::validParams( ){
    ...
    params.addRequiredCoupledVariable( "v", "my docstring" );
    ...
}

myClass::myClass( const InputParameters & parameters )
    : myBaseClass( parameters ),
    ...
    _v( coupledArrayValue( "v" ) ),
    _v_dot( coupledArrayDot( "v" ) ),
    _dv_dot_dv( coupledDotDu( "v" ) ),
    ...{
}

When I run this, I get the moose error:

*** ERROR ***
Variable 'v' is of a different C++ type than you tried to fetch it as.

I will work to implement coupledArrayDotDu into Coupleable.

NateAM added a commit to NateAM/moose that referenced this issue Oct 24, 2023
The current implementation of array variable's duDotDu returns a  rather than an  which seems to imply that the derivatives are the same for all of the variables. This may or may not be desired behavior.

closes idaholab#25833
NateAM added a commit to NateAM/moose that referenced this issue Nov 17, 2023
The current implementation of array variable's duDotDu returns a  rather than an  which seems to imply that the derivatives are the same for all of the variables. This may or may not be desired behavior.

closes idaholab#25833
NateAM added a commit to NateAM/moose that referenced this issue Nov 20, 2023
The current implementation of array variable's duDotDu returns a  rather than an  which seems to imply that the derivatives are the same for all of the variables. This may or may not be desired behavior.

closes idaholab#25833
pbehne pushed a commit to pbehne/moose that referenced this issue Dec 1, 2023
The current implementation of array variable's duDotDu returns a  rather than an  which seems to imply that the derivatives are the same for all of the variables. This may or may not be desired behavior.

closes idaholab#25833
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants