Passing point number to ComputeResidual Method #1642
Gaurav11ME
started this conversation in
General
Replies: 1 comment 2 replies
-
We have developer meetings Wednesdays at 3pm UK https://meet.jit.si/SU2_DevMeeting |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am solving a problem where I need to add a source term to each point in the X-Momentum Equation. I have completed the following.
Now, I need to add these values point by point to the X-Momentum Equation. I am adding a function where I am setting all other elements of the residual to 0.0, except for residual[1]. Is there a way to pass the Point number to the ComputeResidual Method? I can then pass this Point number to get the particular element of the Momentum_source vector. I checked its implementation in CNumerics.hpp, and the only input it accepts is a Cconfig type object.
Beta Was this translation helpful? Give feedback.
All reactions