Extend mesh transfer utility to low Mach restart files#316
Draft
Extend mesh transfer utility to low Mach restart files#316
Conversation
NB: The style check / enforcement is not automatically applied outside src dir (e.g., to utils). So, applied clang-format by hand here. Should automate this.
This begins to clear the way for us to implement an option to specify a mesh rather than a tps input file to define the "target".
…ite something to paraview This version runs and gives results. Have not rigorously tested for correctness.
…ions In order to make it simpler to figure out what fields to interpolate, provide a mechanism to get pointers to the fields that are read from the restart file through the IODataOrganizer class.
So that it can handle either 'flow' (i.e., compressible solutions expressed in the conserved variables) or 'loMach' (i.e., low Mach, variable density solutions expressed in u, T, ...). This is accomplished by letting the IODataCollection class control what fields are interpolated.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prior to this PR, the
interputility (see source inutils/pfield_interpolate.cpp) supported generation of a new TPS restart file via interpolation of an existing restart to a new mesh, but only for restart files produced by the compressible code path.This PR extends the capability to the low Mach code path. To do so, we leverage the existing information in the
IODataOrganizerclass (to determine the fields to interpolate), which required minor modifications to theM2ulPhySandLoMachclasses (and their parentTPS::PlasmaSolver) to allow access to theIODataOrganizerobject outside of the class.