Planet
Planet
A planet (which may have rings)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
P
|
float
|
Orbital period [day] |
required |
a
|
float
|
Semi-major axis [stellar radius] |
required |
Rp
|
float
|
Planet radius [stellar radius] |
required |
Mp
|
float
|
Planet mass [Earth mass] |
None
|
e
|
float
|
Eccentricity of the orbit. Default is 0 |
0.0
|
w
|
float
|
Argument of periastron [degree]. w=0 means periastron is on the yz plane, w=90 means it is in front of the observer. Default is 90 |
90.0
|
ip
|
float
|
Inclination of the orbital plane [degree]. Default is 90 |
90.0
|
lbda
|
float
|
Projected spin-orbit misalignment angle [degree]. Default is 0 |
0.0
|
t0
|
float
|
Time of periastron passage [day]. Default is 0 |
0.0
|
Source code in SOAP/classes.py
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | |
add_ring(fi=1.0, fe=1.0, ir=0.0, theta=0.0)
Add a ring to this planet.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fi (float, optional [default
|
1.0]): Ring inner radius |
required | |
fe (float, optional [default
|
1.0]): Ring outer radius |
required | |
ir (float, optional [default
|
0.0]): Projected inclination of ring wrt to the skyplane [degrees]. 90 for an edge-on ring, 0 for face on |
required | |
theta (float, optional [default
|
0.0]): Projected ring tilt [degrees]. 90 means that the image of the ring in perpendicular to the orbit in the plane of the sky. |
required |