astroshaper / asteroidthermophysicalmodels.jl Goto Github PK
View Code? Open in Web Editor NEWJulia-based dynamical simulator for asteroids and planets.
License: MIT License
Julia-based dynamical simulator for asteroids and planets.
License: MIT License
This line
can be replaced with Unitful
features.
julia> using SPICE, Unitful
julia> P = SPICE.convrt(7.63262, "hours", "seconds")
27477.432
julia> uconvert(u"s", 7.63262u"hr")
27477.432 s
julia> convert(Float64, (7.63262u"hr") / (1u"s"))
27477.432
Add [-]
to dimensionless values.
#65ですが、A_B = (A_B isa Real ? A_B : A_B[j]) は型安定でないので避けた方が良さそうですね。後のPRをすべてmergeした後に修正するか悩ましいですが。。
f031538#diff-c540b482ce6af68518b0196d98161b7c55cc1fe6852e390ef64e29836f54f4a3R388
以下のようなものは早めに取り組めるかと思いました。
An example of code is as follows.
struct SingleTPM{P<:AbstractThermoParams, S<:HeatConductionSolver ,T_UPPER<:BoundaryCondition, T_LOWER<:BoundaryCondition} <: ThermoPhysicalModel
shape ::ShapeModel
thermo_params ::P
flux ::Matrix{Float64} # (n_face, 3)
temperature ::Matrix{Float64} # (n_depth, n_face)
face_forces ::Vector{SVector{3, Float64}}
force ::MVector{3, Float64}
torque ::MVector{3, Float64}
SELF_SHADOWING ::Bool
SELF_HEATING ::Bool
SOLVER ::S
BC_UPPER ::T_UPPER
BC_LOWER ::T_LOWER
end
配列の長さにnを使ってインデックスにiを使うことが多いです。なのでit
, iz
, nt
, nz
のように下付き文字を避けるのが良いかも知れないですね。
(下付き文字は制限が大きいので、特別な意味を込めたいときに使うことが多いです。)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.