Replies: 1 comment 6 replies
-
I think you need config->GetTimeIter() to get the iteration number, and multiply that by the timestep dt |
Beta Was this translation helpful? Give feedback.
6 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'm new to CFD and SU2. I'm trying to modify the c++ code to add a time-dependent mach in the compressible Euler equations (SU2 Solver: EULER) for a rocket head cone design. At about line 786 of the CEulerSolver.cpp, I want to have a slight numerical change in its mach, for example, a sine function.
After I saw the example of the Adding Custom Source Terms to Euler Equations I modified the code like this:
But during postprocessing I noticed that Mach becomes 2 * MachValue + 0 as the "time" could not be updated to the series of 0, 1, 2, 3, 4... So I'm wondering how I can build a mach that could change over time. I'm not sure what kind of syntax I should be using or how exactly to implement this mach term.
I am using SU2 7.3.1. Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions