-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
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. |
test/blackbody_radiation.jl
Outdated
""" | ||
println(msg) | ||
|
||
@test AsteroidThermoPhysicalModels.blackbody_radiation(6e-7, 5850) ≈ 2.583616647617974e13 |
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.
Could you add comments to describe the meanings of the values?
631271a
to
501475f
Compare
Add test for local TPM and thermal radiation calculation
Co-authored-by: Yuto Horikawa <hyrodium@gmail.com>
Add a comment
Co-Authored-By: Yuto Horikawa <hyrodium@gmail.com>
Just add a comment.
`L` denotes radiation [W/m²].
ce6e404
to
67f61b9
Compare
Just correct some comments.
0b4cf13
to
89bf365
Compare
Added the value tests of the thermal radiation.
- blackbody_radiation -> blackbody_radiance - thermal_radiation -> thermal_radiance
src/radiation.jl -> src/thermal_radiation.jl
Add a test of blackbody radiation
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 attest/blackbody_radiation.jl
.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.