Skip to content

Use Trajectory in BodyCentredBodyDirectionDynamicFrame #1296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 31, 2017

Conversation

eggrobin
Copy link
Member

No intrinsic accelerations for now.

BodyCentredBodyDirectionDynamicFrame(
not_null<Ephemeris<InertialFrame> const*> const ephemeris,
not_null<MassiveBody const*> const primary,
not_null<MassiveBody const*> const secondary)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I preferred the previous formatting...

DegreesOfFreedom<InertialFrame> const secondary_degrees_of_freedom =
secondary_trajectory_->EvaluateDegreesOfFreedom(t);

Vector<Acceleration, InertialFrame> const primary_acceleration =
ephemeris_->ComputeGravitationalAccelerationOnMassiveBody(primary_, t);
// TODO(egg): eventually we want to add the intrinsic acceleration here.
primary_ == nullptr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (rather ugly) test could be avoided by having another functor compute_gravitational_acceleration_on_primary and setting it in the constructor.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arguments differ, in the second case we pass the position.

@eggrobin eggrobin force-pushed the evaluate-discrete branch from 815f44e to 31078a4 Compare March 30, 2017 07:47
@pleroy pleroy added the LGTM label Mar 30, 2017
@eggrobin eggrobin merged commit 7e816b4 into mockingbirdnest:master Mar 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants