-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Let users use variables as coordinates to a function in an auxkernel #27081
Conversation
83491d5
to
b39bd07
Compare
Job Documentation on 95a9ed7 wanted to post the following: View the site here This comment will be updated on new commits. |
Job Coverage on 95a9ed7 wanted to post the following: Framework coverage
Modules coverageCoverage did not change Full coverage reportsReports
This comment will be updated on new commits. |
That title is confusing. It sounds like you want to let users pass variable names as arguments to parameters of type FunctionName. What you are doing is providing an AuxKernel that evaluates a Function at xyzt coordinates determined through functors. Does not sound like "Abuse", so I vote for fixing that name. |
Fixed the pr title. FunctionWithFunctorCoordinatesAux? |
@dschwen thoughts on picking a new name? |
Now that you are back @dschwen thoughts for the name? |
CoupledVariableCoordinateFunctorAux? |
It s more of a FunctionAux since the Function is used for the evaluations so maybe FunctorCoordinatesFunctionAux ? |
d7785cf
to
63b8fb6
Compare
Failures are unrelated |
63b8fb6
to
61d8675
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually very much like this PR
framework/doc/content/source/auxkernels/FunctorCoordinatesFunctionAux.md
Outdated
Show resolved
Hide resolved
rename to FunctorCoordinatesFunctionAux
- allow for linear finite volume variables - add note about auxkernel execution and variable updates
61d8675
to
95a9ed7
Compare
Test failures unrelated. |
I have a project where we have function data that is hardly convertible to another format (eg we would need to write an object that does what the function reading the csv does)
and an auxiliary variable that is spatial but not x y z (it s a distance to a wall). So it would fit great as a function argument conceptually. Unfortunately, ParsedFunction does not accept auxvariables.
So our two options (aside from this) would be:
The concerns with having functions depend on variables:
refs #26784
@youyeonc