kalast
Thermophysical model for binary systems of asteroids
Demo | In Action | Installation | If you clone this repo | License
Demo
In action
Computation of the temperature of a single point at the surface of an asteroid (initialized as sub-solar-point):
// src/main.rs
Installation
Get Rust:
|
Create a new Rust project:
# Move to the directory of your choice and create a project
# Move inside your project
Add the dependency kalast to your Cargo.toml:
...
[]
= "0.2.0"
To get a working code:
- copy to your
src/main.rseither the code above or one from the examples - get the necessary 3D object files
- make sure the paths to your 3D file are correct
- build and run your
src/main.rsfrom the root of your project with:
If you clone this repo
To build and run the program, tests or examples:
Some examples:
# Compile and run src/main.rs in debug mode
# Compile and run src/main.rs in release mode
# Compile and run examples/spheres_mutual.rs in release mode
# Execute all unit and integration tests
This compile script requires few dependencies:
dotmap=*
envtoml=*
pathlib=*
subprocess=*
termcolor=*
typing=*
re=*
But if you want to compile yourself, follow this link.
Do not forget to work on a development branch:
# To create the branch.
The projet uses pre-commit to prevent mistakes before commits. To install the hook scripts:
A hook script uses an external tool called embedme to ensure the demo code displayed in the section In action matches automatically the code in src/main.rs without having to copy paste it.
License
Licensed under the Apache License, Version 2.0.

