Adding barycenters to existing stars...
Posted: 23.12.2004, 02:20
I'm having problems with adding a barycenter and a companion star to Deneb. The problem is that I'm trying to get Deneb on top of the barycenter, so I can have the companion orbit Deneb. But Deneb won't move, and Deneb III won't appear. Can anyone help? Here's the code.
EDIT: Interestingly, it worked perfectly when I turned jupiter into a star...
Code: Select all
Barycenter "Deneb Barycenter" {
RA 310.35797279
Dec 45.28033423
Distance 3227.7227722772277227722772277228
}
102098 # Deneb {
SpectralType "A2I-a"
AbsMag -8.73
OrbitBarycenter "Deneb Barycenter"
EllipticalOrbit {
Period 1.000
SemiMajorAxis 0.0000000000000000000000000000000000000000001
Eccentricity 0.000
Inclination 0.000
AscendingNode 0.000
ArgOfPericenter 0.000
MeanAnomaly 0.000
}
}
200020 "Deneb III" {
SpectralType "M8V"
AbsMag 10.000
OrbitBarycenter "Deneb Barycenter"
EllipticalOrbit {
Period 654.0
SemiMajorAxis 286.635
Eccentricity 0.050
Inclination 180.000
AscendingNode 84.000
LongOfPericenter 52.000
MeanLongitude 35.000
}
}
EDIT: Interestingly, it worked perfectly when I turned jupiter into a star...
Code: Select all
Barycenter "The Sun" {
RA 0
Dec 0
Distance 0.000
#Distance 0.00326167
}
0 "Sol:Sun" {
SpectralType "G2V"
AbsMag 4.83
OrbitBarycenter "The Sun"
EllipticalOrbit {
Period 1.000
SemiMajorAxis 0.0000000000000000000000000000000000000000001
Eccentricity 0.000
Inclination 0.000
AscendingNode 0.000
ArgOfPericenter 0.000
MeanAnomaly 0.000
}
RotationPeriod 609.12 # 25.38 days
Obliquity 7.25 # correct orientation relative to ecliptic
EquatorAscendingNode 75.77 #
RotationOffset 23.00 # standard meridian
}
200019 "Jupiter" {
SpectralType "DAC9"
#SpectralType "M0VII"
AbsMag 15.812
OrbitBarycenter "The Sun"
CustomOrbit "vsop87-jupiter"
EllipticalOrbit {
Period 11.8622
SemiMajorAxis 5.2034
Eccentricity 0.0484
Inclination 1.3053
AscendingNode 100.556
LongOfPericenter 14.7539
MeanLongitude 34.404
}
}