Skip to content

Commit

Permalink
Update radiation.jl
Browse files Browse the repository at this point in the history
Just correct some comments.
  • Loading branch information
MasanoriKanamaru committed Jan 12, 2025
1 parent 67f61b9 commit 0b4cf13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/radiation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ function thermal_radiation(shape::ShapeModel, emissivities::AbstractVector{<:Rea
ε = emissivities[i]
T = temperatures[i]

## Direction and distance from the facet to the observer
## Direction and distance from the facet center to the observer
= normalize(obs - c)
d = norm(obs - c)

cosθ =
cosθ < 0 && continue # Ignore the facet if the observer is on the back side
cosθ < 0 && continue # Ignore the facet if the observer is below the horizon.

## TO DO: Ray-trace for each facet
## TODO: Ray-trace for each facet

L += ε * σ_SB * T^4 * a * cosθ /* d^2) # π, 2π, or 4π?
end
Expand Down

0 comments on commit 0b4cf13

Please sign in to comment.