Comments (1)
Hi!
The first entry in the time array is the time of the initial condition (that is, the initial condition isn't assumed to be at t=0
, which I think you may have thought). So because you change the initial time, your clage
will be a different time in the past. If you keep the initial times the same, e.g., in your second run use
ts = np.linspace(-200.0, 100.0, 10001)#*u.Gyr
then you'll see that you get a consistent result.
A few more comments:
- You do have to add
*u.Gyr
if you want your times to be interpreted as being in Gyr. Without this, the times are assumed to be in internal units. Given how you defineclage
, I think this is supposed to be in Gyr. - I think you want to integrate backwards in time, but you are integrating forwards in time. For your purposes, the best thing to do would be to use
So you go from the present (defined to be
ts = np.linspace(0,-clage, 10001)
t=0
here) to the time you want to integrate backwards for.
I hope this helps!
from galpy.
Related Issues (20)
- Make ``quasiisothermaldf`` documentation consistent with the latest version of the code
- dop853_c integrator not working when integration doesn't start from 0 HOT 1
- Unpredictable behaviour in galpy.utils.coords
- Attempting to use other unit systems with galpy breaks silently HOT 2
- Local installation with `pip` does not seem to work
- list of array without astropy unit as vxvv to Orbit have no useful error msg HOT 2
- negative mass returned from galpy.potential.mass HOT 1
- Use System's PaulMcMillan-Astro/Torus where it's posible HOT 2
- keyword parameter t in galpy.orbit.Orbits.Orbit._call_internal will be ignored in some cases HOT 3
- Remove ignoring of `'xdrlib' is deprecated and slated for removal in Python 3.13` in test CI once it's no longer necessary
- `plotPotentials` and `Potential.plot` Lz input should be able to be a Quantity
- `plotPotentials` and `Potential.plot`: cannot use `effective` and `xy` at the same time
- Remove deprecated features in v1.9 HOT 1
- Cannot access galpy.util.coords HOT 1
- Minor inconsistency with the `vcirc` output for a re-scaled, non-MWPotential2014 potential instance HOT 3
- Wrapper potentials silently fail when applied to DissipativeForces
- Implement the IAS15 integrator HOT 3
- `libopenblas` version > 0.3.23 causes OpenMP error on Mac HOT 1
- deepcopy error when trying to load galpy potential HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from galpy.