Giter Site home page Giter Site logo

hydro's People

Contributors

alekseygenerozov avatar

Stargazers

 avatar

Watchers

 avatar  avatar

hydro's Issues

Galaxy/Nuker Galaxy/Pow Galaxy

Organization of these galaxies is confusing. Each is a specific kind of galaxy and yet NukerGalaxy inherits from the Galaxy class, and PowGalaxy inherits from NukerGalaxy.

This makes the code very difficult to read, and it would probably be difficult for the user to define new custom galaxy types.

Nuker Galaxy (NGC3165) with/ wrong rinf...

gal_params={'NGC3165':{'beta':0.86, 'gamma':1.78, 'Uv':4.1, 'M':3.6E7*galaxy.M_sun, 'alpha':4.29, 'Ib':2093., 'rb':89.2}}
gal=galaxy.NukerGalaxy('NGC3165',gal_params,init={'rmin':5.0E16, 'rmax':1.0E19})
gal.rmin_star=(1.55E17/(galaxy.pc))

gal.rinf returns 1.1E19 (expected 2.6E17) and prints warning

/Users/aleksey/code/python/nuker_catalog/galaxy.py:1957: RuntimeWarning: divide by zero encountered in log10
  return np.log10(self.params['M'])-np.log10(self.M_enc(10.**log_r))

Fixed boundary conditions may not work properly

Value in ghost zones is updated before the _update_ghosts routine is called.

This could be problematic for evaluating boundary conditions, especially ones where the value in the outer ghost cell is to remain fixed! ('s_fixed', 'temp_fixed'). Extrapolative boundary conditions should be ok...(as value in ghost cells would be overwriten by the extrapolation anyways...

Artificially set time derivatives in ghost zone to 0?

Differences in integration methods for conservation checks

Trapezoidal rule is used in the routine cons_check (as there were issues zero order intergration when the integration intervals were very one-sided).

But the plot of flux difference vs. sources is always calculated using a zero-order integral. (Flux difference across each cell is plotted vs. the integrated source across each cell).

_rho_stars_interp sometimes gives nans

At small radii close to the value of rmin_star, the _rho_stars_interp (which is used to calculate the grid of mass enclosed values).

Evidently, the inner-most value in the table used to compute density interpolation function is sometimes 0 (note that the density is defined to be zero inside of radius rmin_star). The interpolation function is computed in log space, so we can get in trouble when we try to take the log of 0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.