<p>I'm looking at PHOEBE 2.2 Documentation, specifically at a <a href="http://phoebe-project.org/docs/2.2/tutorials/constraints" rel="nofollow noreferrer">tutorial about constraints</a></p>
<blockquote>
<p>What are Constraints?</p>
<p>Constraints live in their own context of the Bundle, and many are created by default - either when you add a component or when you set the system hierarchy.</p>
<p>Let's look at all the existing constraints for our binary system...</p>
</blockquote>
<p>and below that:</p>
<blockquote>
<p>To see what all of these constraints do, see the 'Built-in Constraints' section below.</p>
<p>For now let's look at a single constraint by accessing a ConstraintParameter.</p>
<p><code>b['constraint']['primary']['mass']</code></p>
<p><code>&lt;ConstraintParameter: {mass@primary@component} = (39.478418 * ({sma@binary@component} ** 3.000000)) / ((({period@binary@component} ** 2.000000) * (1.000000 + {q@binary@component})) * 2942.206217504418873431859537959099) (solar units) =&gt; 0.9988131358058302 solMass&gt;</code></p>
<p>Here we see the equation used to derive the mass of the primary star from its orbit, as well as the current value</p>
<p>If we access the Parameter that it is constraining we can see that it is automatically kept up-to-date.</p>
</blockquote>
<p>Could you explain to me the difference between the following please?</p>
<ul>
<li>the semi-major axis of a component about the center of mass of its parent orbit</li>
<li>the semi-major axis of the parent orbit</li>
</ul>
<p>The best would be a figure.</p>

CC BY-SA 4.0
2020-03-13T08:00:44.353Z
It's not clear to me what the difference is that you're looking for.   One thing to keep in mind is that Kepler's laws ignore the center of mass between the two bodies (barycenter), only the center of mass of the individual bodies.   When you say center of mass of orbit, that suggests barycenter to me and that's not Kepler or you might mean the center of the ellipse, which is Kepler.     Hyperphysics has a pretty good diagram of this stuff which might help:    http://hyperphysics.phy-astr.gsu.edu/hbase/kepler.html#:~:text=
userLTK
CC BY-SA 4.0
2020-03-13T09:01:30.417Z
I don't understand the question.
ProfRob
CC BY-SA 4.0
2020-03-13T09:06:33.777Z
I am asking about http://phoebe-project.org/docs/2.2/tutorials/constraints the section component sma
Alex
CC BY-SA 4.0
2020-03-13T10:54:06.933Z
@Alex I've edited your question to add some helpful context, have a look and see if it needs more clarification or correction. Thanks!
uhoh
<binary-star><star-systems><python>
PHOEBE 2.2 Documentation, components and semi-major axis definitions
Alex
# PHOEBE 2.2 Documentation, components and semi-major axis definitions

(Asked by: username_0 on 2020-03-13)

I'm looking at PHOEBE 2.2 Documentation, specifically at a [tutorial about constraints](http://phoebe-project.org/docs/2.2/tutorials/constraints)

> What are Constraints?
>
> Constraints live in their own context of the Bundle, and many are created by default - either when you add a component or when you set the system hierarchy.
>
> Let's look at all the existing constraints for our binary system...

and below that:

> To see what all of these constraints do, see the 'Built-in Constraints' section below.
>
> For now let's look at a single constraint by accessing a ConstraintParameter.
>
> `b['constraint']['primary']['mass']`
>
> `<ConstraintParameter: {mass@primary@component} = (39.478418 * ({sma@binary@component} ** 3.000000)) / ((({period@binary@component} ** 2.000000) * (1.000000 + {q@binary@component})) * 2942.206217504418873431859537959099) (solar units) => 0.9988131358058302 solMass>`
>
> Here we see the equation used to derive the mass of the primary star from its orbit, as well as the current value
>
> If we access the Parameter that it is constraining we can see that it is automatically kept up-to-date.

Could you explain to me the difference between the following please?

* the semi-major axis of a component about the center of mass of its parent orbit
* the semi-major axis of the parent orbit

The best would be a figure.

**Tags:** binary-star, star-systems, python

> **Comments:**
> **username_1**: It's not clear to me what the difference is that you're looking for.   One thing to keep in mind is that Kepler's laws ignore the center of mass between the two bodies (barycenter), only the center of mass of the individual bodies.   When you say center of mass of orbit, that suggests barycenter to me and that's not Kepler or you might mean the center of the ellipse, which is Kepler.     Hyperphysics has a pretty good diagram of this stuff which might help:    http://hyperphysics.phy-astr.gsu.edu/hbase/kepler.html#:~:text=  
> **username_2**: I don't understand the question.  
> **username_0**: I am asking about http://phoebe-project.org/docs/2.2/tutorials/constraints the section component sma  
> **username_3**: @username_0 I've edited your question to add some helpful context, have a look and see if it needs more clarification or correction. Thanks!  

---

## 0 answers

