-
Notifications
You must be signed in to change notification settings - Fork 849
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
Streamwise Periodic restarts using flow.meta + Multizone PerSurface output #1527
Conversation
…h that setting. Note though that the comment in the pressure update computation of the streamwise periodicity still holds: Currently the pressure update for massflow is omitted in the first iteration, as the function is called in the Preprocessing phase which leads to multiple calls during 1 iteration. Ideally this whole method is called in another place or a setup has to be found which prevents multiple calls.
Not working yet. E.g. FLOW_COEFF_SURF[0] is not longer reported as ignored hist output filed but all values for these in the history file are zero. Not sure why tbh
CConfig checks whether the DV_MARKERs appear in the marker list. But for multizone cases it can happen, that the marker to be deformed are just in the zonal configs. The check would fail although everything is alright. To check it right one would need to check this after all zonal cfgs were read and then check it once with a loop over all cfgs to see whether DV_MARKER appears somewhere there.
…to massflow_flowmeta
In multizone everything is done again + attaching the zone indices. So one had to do the AddHistPerSurf and SetHistPerSurf for multizone again.
When using WALL_TIME as the first SCREEN_OUTPUT field, in Testcase.py, the code would never reach the iter_missing=True block as the line would produce a ValueError for every line. And because the default was iter_missing=False and passed=True ... the test reports passed. Setting the defaults to the non-passed version fixes that issue.
….. which I believe is not clever programming, especially for regression tests.
I am not really sure whether the |
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.
Good addition 👍 minor comments below.
Common/src/CConfig.cpp
Outdated
if(!found && (nZone==1)) { | ||
SU2_MPI::Error("DV_MARKER contains marker names that do not exist in the lists of BCs in the config file.", CURRENT_FUNCTION); |
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.
Warn instead of error then? (when nZone != 1)
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.
good point, done in 75746ac
vector<string> Marker; | ||
if (group == "FLOW_COEFF_SURF") | ||
Marker = Marker_Analyze; |
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.
find a way to avoid copying a vector of strings
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.
... found a working *|&
permutation that does the job in 2cbbe23
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
This is due to the previously merged PR #1530 where an NDIME error in the mesh was fixed (where the reg test values already changed) and as this PR makes the same case a restarted one... the values have to be adapted again
Thanks all the review comments (for the second time today 😉 ) @pcarruscag 💐 Merging this in now 👍 |
Hi,
flow.meta
file. That file was used mainly for fixed CL stuff as far as I am aware of. The story is not done though really with this one change. There is still the restart-should-contain-everything-in-the-first-iteration-for-the-adjoint-taping issue which is currently not the case ... and not super straightforward to solve -> see c113541 description for more info. (EDIT: I will not tackle the massflow adjoint part in this PR, as with the PerSurf output it contains enough stuff which I like to have merged)weight
to heat-solid zone OF'spressure_drop
is used, the first two entries ofMARKER_ANALYZE
are used as out-inlet but more than two markers are allowed. This comes in handy withFLOW_COEFF_SURF
imo_SURF[0]
fields were reported to be ignored. A regression test is updated for that.So I will continue fiddling a little bit with massflow restarts but i already successfully optimized with that setup so it is not completely useless.
Related Work
#773
PR Checklist