Page 1 of 3

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 24 Nov 2016 09:56
by SpaceEngineer
By analogy with the binary asteroids thread, this is a thread for the scripts for the binary/multiple stars, which are still represented as solitary star in default SE catalogs. Use the url=http://new.spaceengine.org/manual/making-addons/creating-a-star/]creating a star[/url] manual for this.

Also, feel free to post a request for a binary/multiple star here, if you are not skilled in SE scripts, but want to see this star in SE. Someone could make the script for you.

Each new version of SpaceEngine will collect all scripts from this thread to make an updated version of default catalogs.

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 25 Jan 2017 09:16
by JackDole
54 Piscium with a brown dwarf as companion.

So far not so in SpaceEngine
// -*- coding: utf-8 -*-
// Name: 54_Psc.sc
// JackDole 2017.01.25 15:42:08

// Put this script in 'addons\catalogs\stars'

//------------------------------------------------------------------------------
//https://en.wikipedia.org/wiki/54_Piscium
//------------------------------------------------------------------------------

StarBarycenter    "54 Psc/HD 3651/HIP 3093"
{
    RA      00 39 21.80589
    Dec     21 15 01.7081
    Dist    11.6
    
    Mass    0.811
    AppMagn 5.88
}

//------------------------------------------------------------------------------

// -*- coding: utf-8 -*-
// Name: 54_PscSys.sc
// JackDole 2017.01.25 15:55:12

// Put this script in 'addons\catalogs\planets'

//------------------------------------------------------------------------------
//https://en.wikipedia.org/wiki/54_Piscium
//------------------------------------------------------------------------------

Star "54 Psc A/HD 3651 A/HIP 3093 A"
{
    ParentBody  "54 Psc"
    Class       "K0V"
    
    MassSol     0.76
    RadSol      0.944
    
    RotationPeriod  964.8
    
    Lum         0.52
    Teff        5062
    FeH         -0.15
    Age         6.4
    
    Orbit
    {
        SemiMajorAxis   29.93341554
        Eccentricity    0.0         // Not known
        Inclination     0.0         // Not known
        AscendingNode   0.0         // Not known
        ArgOfPericenter 0.0         // Not known
        MeanAnomaly     0.0         // Not known
    }
}

Star "54 Psc B/HD 3651 B/HIP 3093 B"
{
    ParentBody  "54 Psc"
    Class       "T7.5 V"
    
    MassSol     0.051
    RadSol      0.082
    
    Teff        810
    
    Orbit
    {
        SemiMajorAxis   446.06658446
        Eccentricity    0.0         // Not known
        Inclination     0.0         // Not known
        AscendingNode   0.0         // Not known
        ArgOfPericenter 180.0       // Not known
        MeanAnomaly     0.0         // Not known
    }
}

//------------------------------------------------------------------------------

Remove  "HD 3651 b" {ParentBody "HD 3651"}
Remove  "HD 3651 c" {ParentBody "HD 3651"}

Planet "HD 3651 b"
{
    ParentBody     "HD 3651 A"
    Msini           72.8678
    DiscMethod     "RadVel"
    DiscDate       "2003"
    
    Orbit
    {
        Epoch           2453932.6
        Period          0.1703472428
        SemiMajorAxis   0.295
        Eccentricity    0.596
        Inclination     83
        ArgOfPericen    242.5
    }
}

Planet "HD 3651 c"
{
    ParentBody     "HD 3651 A"
    Mass            28.638
    DiscMethod     "RadVel"
    DiscDate       "2013"
    
    Orbit
    {
        Period          0.08487518929
        SemiMajorAxis   0.186
        Eccentricity    0.04
        ArgOfPericen    55
    }
}

//------------------------------------------------------------------------------

Put this script in 'addons\catalogs\stars':
54_Psc.sc
(588 Bytes) Downloaded 1083 times

and this in 'addons\catalogs\planets':
54_PscSys.sc
(2.31 KiB) Downloaded 1090 times

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 29 Jan 2017 22:22
by Roswell
wow that nice :O I love those two brown gazeous planets :D

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 04 Feb 2017 18:43
by nadiawendt
I have a binary solar system called Alina AB, and I was hoping to use SE to help me visualize certain things, but I am having trouble building the system on my own. Since, at the top of this thread, it says to feel free to submit requests, I figured there is no harm in asking if anyone would be willing to create it in their spare time.

Information on the solar system can be found here: link

I will continue trying to make it work myself, but I would be very grateful if someone with more knowledge than myself would be willing to create an add-on of this system.

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 04 Feb 2017 19:26
by XBrain130
nadiawendt wrote:
I have a binary solar system called Alina AB, and I was hoping to use SE to help me visualize certain things, but I am having trouble building the system on my own. Since, at the top of this thread, it says to feel free to submit requests, I figured there is no harm in asking if anyone would be willing to create it in their spare time.

Information on the solar system can be found here: link

I will continue trying to make it work myself, but I would be very grateful if someone with more knowledge than myself would be willing to create an add-on of this system.

I think you misunderstood. This thread is for real life binary stars. You should post that in this thread instead: viewtopic.php?f=3&t=175

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 04 Feb 2017 19:53
by nadiawendt
@XBrain130
Thank you for telling me

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 06 May 2017 04:50
by Simon
Sorry for late response, and I know it's a lot to ask, but if someone could do these things it would be greatly appreciated.

The OGLE-2013-BLG-0341 system is only represented as one star. If someone could mod that in, it would be greag.

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 29 Aug 2017 14:16
by Zeryphex
SpaceEngineer wrote:
By analogy with the binary asteroids thread, this is a thread for the scripts for the binary/multiple stars, which are still represented as solitary star in default SE catalogs. Use the url=http://new.spaceengine.org/manual/making-addons/creating-a-star/]creating a star[/url] manual for this.

Also, feel free to post a request for a binary/multiple star here, if you are not skilled in SE scripts, but want to see this star in SE. Someone could make the script for you.

Each new version of SpaceEngine will collect all scripts from this thread to make an updated version of default catalogs.

I made a PAK file for the contact binary star system in the Cygnus constellation, KIC 9832227.
https://en.wikipedia.org/wiki/KIC_9832227
I used it to record a WEBM video and uploaded it to Wikipedia, but I'm not sure what different parameters should be ... like orbit speed, how close the stars should be, what class each star should be, etc.
If you guys can give a proper or accurate fix to the parameters/calculations, then I can re-download it.
KIC-9832227.pak
(1.31 KiB) Downloaded 686 times

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 29 Aug 2017 16:58
by Mosfet
By taking into account relative masses for the binary, the barycenter should be slightly inside the primary.
► Show Spoiler




Edit:
As I thought, JackDole did a package for the binary :)

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 29 Aug 2017 19:30
by Zeryphex
Mosfet wrote:
By taking into account relative masses for the binary, the barycenter should be slightly inside the primary.
► Show Spoiler




Edit:
As I thought, JackDole did a package for the binary :)

Thank you very much.
I'm new to SpaceEngine.
Since I couldn't pull-up KIC 9832227 in-engine, I figured it was obscure and non-existent.
Doing a forum search, I see JackDole uploaded that system, eight months ago.
I downloaded your PAK attachment and his PAK attachment ... not sure why the file sizes are different.

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 29 Aug 2017 23:35
by Zeryphex
JackDole, Mosfet,

I combined both your versions of KIC 9832227.

KIC-9832227.pak
(1.82 KiB) Downloaded 688 times


KIC-9832227.pak
(1.82 KiB) Downloaded 688 times


KIC-9832227.pak
(1.82 KiB) Downloaded 688 times


Which set (of measurements/calculations) is more accurate?

I want to record a transit/flyby video and upload to Wikipedia, so we can educate/enlighten the masses.
haha

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 07 Sep 2017 10:37
by Mosfet
Zeryphex wrote:
Source of the post I downloaded your PAK attachment and his PAK attachment ... not sure why the file sizes are different.

A few lines of code, mostly comments.
For all purposes they're identical, we adjusted semimajor axes according to formulae:
[math][math]
where a1, a2 are resulting semimajor axes of star 1 and 2, as is measured semimajor axis (separation) of the two stars, m1 and m2 are measured star masses.
The difference of few decimals in Right Ascension and Declination or Luminosity i guess it could be caused by different data sources.

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 07 Sep 2017 11:10
by JackDole
Mosfet wrote:
Source of the post The difference of few decimals in Right Ascension and Declination or Luminosity i guess it could be caused by different data sources.

My source is this paper. https://arxiv.org/pdf/1704.05502.pdf

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 07 Sep 2017 17:11
by Zeryphex
JackDole wrote:
Mosfet wrote:
Zeryphex wrote:
Source of the post I downloaded your PAK attachment and his PAK attachment ... not sure why the file sizes are different.

A few lines of code, mostly comments.
For all purposes they're identical, we adjusted semimajor axes according to formulae: 
[math][math] 
where a1a2 are resulting semimajor axes of star 1 and 2, as is measured semimajor axis (separation) of the two stars, m1 and m2 are measured star masses.
The difference of few decimals in Right Ascension and Declination or Luminosity i guess it could be caused by different data sources.



JackDole:
Mosfet wrote:
Source of the post The difference of few decimals in Right Ascension and Declination or Luminosity i guess it could be caused by different data sources.

My source is this paper. https://arxiv.org/pdf/1704.05502.pdf

Perhaps SpaceEngineer will include some version of KIC 9832227, in the next SpaceEngine version/iteration?

COMMUNITY ADDON - binary/multiple stars fixes for SE

Posted: 08 Sep 2017 01:30
by Mosfet
Well, usually such fixes are indeed included in next versions, that's the point of this thread as stated in the original post :)