Fix heat flux postprocessor material_id processing #988
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.
Description of the problem
material_id
of a cell. As a cell'smaterial_id
is defined in the mesh, fluids moving from a cell to another did not have the rightmaterial_id
when outputted. Futhermore, some dealii meshs have an intrinc way of numberingmaterial_ids
(e.g. colorized subdivided_hyper_rectangle) that were leading to inadequate comparison of thematerial_ids
.Description of the solution
material_id
is only used to indentify cell material when solids are present. When simulating with fluids and solids, cells of the mesh in which the fluids lie should have amaterial_id
of0
.DataPostprocessor
can only hold 1dof_handler
. During postprocessing, the user could clip the domain of interest of each fluid using thephase
orfiltered_phase
fields outputted.How Has This Been Tested?
Visual inspection of outputted results for a:
single fluid simulation,
1 fluid + 1 solid simulation, and
2 fluids simulaiton.
Future changes
DataPostprocessor
handling multipledof_handlers
to allow postprocessing of quantities of interest of fluids in their respective subdomains will have to be added to the code.