Replies: 1 comment 8 replies
-
Hello, If you can point me to the branch where you have implemented this, it would be easier to give you some feedback. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been trying to implement a time and spatially varying heat source to the code, but it is not behaving as expected. I've made similar changes to my code as this post: #1904
The main difference in my code is that my power varies with time. I obtain the time from these lines of code in flow_sources.cpp:
const auto dt = config->GetDelta_UnstTimeND();
const su2double t = config->GetTimeIter() * dt
I then calculate the source's volumetric heat flux for the current time and add it to the energy residual:
residual[nDim+1] = -Volume * Source
I have compared the values calculated in my code's source term (in W/m^3) and they match the analytical model I am comparing it against. However, when I run the simulation, the temperature increase does not match the temperature increase from the analytical model (it is off by several orders of magnitude). I think the issue may be arising from calculating and adding to the residual, but I am not so sure.
Any help would be appreciated.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions