Hi all,
The documentation for using the Python API describes how to add a point-mass when building a simulation. Basically: moongrav = gt.gmat.Construct("PointMassForce", "MoonGrav") moongrav.SetField("BodyName", "Luna") fm.AddForce(moongrav) where fm is the force model object. This approach isn't working for me when I load a script and attempt to add the point source to the existing force model. E.g. gmat.LoadScript("testing.script") fm = gmat.GetObject("DefaultProp_ForceModel") When I add the point mass to the fm object, I can see it reflected in the object. E.g., by fm.Help() but it doesn't affect the results of the simulation after gmat.RunScript(). If I save the script, I don't see the additional point mass reflected in the force model either. Any ideas? Thanks in advance, Mike Michael Buksas Stellar Science, LLC <mailto:mwbuk...@stellarscience.com> mwbuk...@stellarscience.com <http://www.stellarscience.com> www.stellarscience.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ GMAT-users mailing list GMAT-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gmat-users