-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add time average temperature and time average heat flux to simulation output #1395
Conversation
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.
Very few minor comments. This is very very good work. Good job man!
input >> buffer >> dt_0; | ||
input >> buffer >> average_calculation; | ||
input >> buffer >> real_initial_time; | ||
|
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.
We could use boost serialize for this but since we don't do it for the average velocity, what I would is open an issue, leave this PR as-is, and eventually migrate veerything to boost serialize. Although @lpsaavedra and I we had some issue with boost recently for unknown reasons.
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.
@mivaia Could you add a changelog entry then I will be able to merge. We should add a CHANGELOG entry for every PR now since we have moved to the numbered version ŗelease.
…dding it to the heat transfer physics
…e. Add preliminary code for the read_checkpoint function to consider the averaged scalars in the restarts. Code was not tested yet.
…rage temperature calculations. Modify a variable name and initial_time -> initial_time_for_average_velocity and all the files in which it was present.
… in heat_transfer.cc.
…sfer.cc. Add a test to check if average is computed properly
…e_average_temp_and_hf
…e heat flux is now outputed before initial_time_for_average_temperature_and_heat_flux
c8c9a29
to
6fe6a42
Compare
Description
Time averaged temperature can now be attached to the vtus using a new parameter in the post-processing subsection.
A new object AverageScalarInTime has been created. It can be used to calculate the time average temperature from a certain point in time. This object is greatly inspired by the AverageVelocity object in postprocessing_velocity.h.
The average heat transfer is then computed using the computed average temperature and the HeatFluxPostProcessor object.
Testing
Two new tests have been added.
Documentation
Post processing subsection has been modified ta take into account the new parameter. The two new parameters are
calculate average temperature and average heat flux = true
initial time for average temperature and average heat flux = 0.0
Checklist (will be removed when merged)
See this page for more information about the pull request process.
Code related list:
Pull request related list: