Moderator: selden
ajtribick wrote:Surely the scaling should be applied to the output of the function (which is definitely a position), not to the inputs.
chris wrote:This is intentional, because there's no mechanism for specifying which ScriptedOrbit numeric parameters are distances and need to be scaled. In the example on the in the WikiBook ( http://en.wikibooks.org/wiki/Celestia/Trajectories ), some of the numeric parameters are times, some are angles, and some are distances.
--Chris
ajtribick wrote:The need for extra functions to handle different units exists either way. With the current situation, separate functions are needed for heliocentric orbits if the distances are to be interpreted consistently with their use everywhere else in .ssc files.
For example, if I make a Lissajous orbit function, this is a generic orbit which could be applied to a wide variety of situations. I would think anyone else who decides to use this function would expect the input parameters to work according to .ssc conventions. Your example of a simulation on the other hand is a special case which is going to be tailored to a single system.
t00fri wrote:chris wrote:This is intentional, because there's no mechanism for specifying which ScriptedOrbit numeric parameters are distances and need to be scaled. In the example on the in the WikiBook ( http://en.wikibooks.org/wiki/Celestia/Trajectories ), some of the numeric parameters are times, some are angles, and some are distances.
--Chris
Chris,
sorry, this explanation of yours I don't understand. I find it not at all transparent physicswise...
Fridger
Chris wrote:(If I could rewrite the ssc format, I'd get rid of the implicit unit differences and instead use a syntax that let ssc creators specify units explicitly, e.g. "100*km", "2.1*au", etc.)
t00fri wrote:Chris wrote:(If I could rewrite the ssc format, I'd get rid of the implicit unit differences and instead use a syntax that let ssc creators specify units explicitly, e.g. "100*km", "2.1*au", etc.)
Yeah!!! That would be it....pleasing a physicist's heartWhat's hard about coding something like this, with the old behaviour being the default for compatibility?
Modify "b" "HD 202206"
{
EllipticalOrbit {
Epoch 2451402.8027
Period 0.6995
SemiMajorAxis 0.830
Eccentricity 0.437
ArgOfPericenter 205.4
MeanAnomaly 352.8
}
}
ReferencePoint "ab Barycenter" "HD 202206"
{
EllipticalOrbit {
Epoch 2451402.8027
Period 0.6995
SemiMajorAxis 0.0119
Eccentricity 0.437
ArgOfPericenter 205.4
MeanAnomaly 352.8
}
}
Modify "c" "HD 202206"
{
OrbitFrame {
EclipticJ2000 { Center "HD 202206/ab Barycenter" }
}
EllipticalOrbit {
Epoch 2451402.8027
Period 1376
SemiMajorAxis 379700000
Eccentricity 0.123
ArgOfPericenter 153.9
MeanAnomaly 51.601
}
}
ReferencePoint "ab-c Barycenter" "HD 202206"
{
OrbitFrame {
EclipticJ2000 { Center "HD 202206/ab Barycenter" }
}
EllipticalOrbit {
Epoch 2451402.8027
Period 1376
SemiMajorAxis 738700
Eccentricity 0.123
ArgOfPericenter 153.9
MeanAnomaly 51.601
}
}Users browsing this forum: No registered users and 2 guests