Skip to content
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

Functions to calculate themal radiation flux #145

Open
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

MasanoriKanamaru
Copy link
Member

@MasanoriKanamaru MasanoriKanamaru commented Jul 21, 2024

Abstract

This PR adds src/radiation.jl file to calculate thermal radiation from the simulated temperature distribution. This function does not affect the existing calculations.

Updated test files

  • test/shape/fractal_v2572_f5000.obj: This file is a shape model of a random fractal terrain used in the test at test/blackbody_radiation.jl.
fractal_v2572_f5000
  • test/blackbody_radiation.jl: This file includes tests to check if the new functions don't throw errors and if the output values are valid.

Notes

Currently, some tests are incomplete. For example, we have only one shape for the tests. It would be ideal to add more shapes, but we will skip adding them for now.

Copy link

codecov bot commented Jul 21, 2024

Codecov Report

Attention: Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.96%. Comparing base (390da97) to head (96599f8).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/thermal_radiation.jl 94.73% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #145      +/-   ##
==========================================
+ Coverage   93.94%   93.96%   +0.02%     
==========================================
  Files          10       11       +1     
  Lines         644      663      +19     
==========================================
+ Hits          605      623      +18     
- Misses         39       40       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MasanoriKanamaru MasanoriKanamaru changed the title Functions to calculate black body radiation Functions to calculate themal radiation flux Aug 1, 2024
@MasanoriKanamaru MasanoriKanamaru marked this pull request as ready for review August 1, 2024 06:13
src/radiation.jl Outdated Show resolved Hide resolved
"""
println(msg)

@test AsteroidThermoPhysicalModels.blackbody_radiation(6e-7, 5850) ≈ 2.583616647617974e13
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add comments to describe the meanings of the values?

src/radiation.jl Outdated Show resolved Hide resolved
MasanoriKanamaru and others added 12 commits January 13, 2025 01:33
Add test for local TPM and thermal radiation calculation
Co-authored-by: Yuto Horikawa <hyrodium@gmail.com>
Co-Authored-By: Yuto Horikawa <hyrodium@gmail.com>
Just add a comment.
`L` denotes radiation [W/m²].
Just correct some comments.
- blackbody_radiation -> blackbody_radiance
- thermal_radiation -> thermal_radiance
src/radiation.jl -> src/thermal_radiation.jl
Add a test of blackbody radiation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants