Git Product home page Git Product logo

riccipy's Issues

Add covariant derivative/connection support.

For a given vector equation, we need a method for calculating the covariant derivative given by:

equation

The covariant derivative should be implemented as an operator, however, the contraction of the input vector with the Christoffel symbols implies that the covariant derivative is not compatible with the current API for tensors.

I propose to simply model the covariant derivative as a tensor operator similar to the DiffOperator in partial.py where it is a subclass of ~sympy.tensor.tensor.TensExpr and defines the __mul__ and __rmul__ magic methods to return an expression of the form provided by the equation above.

Issue with calculating contraction

For some reason the API has it that
equation

Currently, the left hand side yields the correct value while the right hand side sums the diagonal components of the array representing the tensor literally.

However this is only an issue with contractions on a single tensor (not a product of tensors), and when the contraction yields a scalar. Meaning that the calculation of the Ricci tensor is fine, but the Ricci scalar is not.

Add support for lambdify.

It's very important to provide a minimum bridge between the usefulness and compact symbolic manipulations provided by RicciPy and the numerical functions required by EinsteinPy. As such RicciPy should provide a convenient way to produce numpy-like functions with ~sympy.lambdify to return either numpy arrays or functions for individual components.

Replace ReplacementManager

Having a global data structure for managing array replacement is not efficient and causes conflicts in multithreading/multiprocessing. It would be best to find a way to construct the necessary replacement dictionary from within expand_tensor from the arguments of the passed expression.

Add tons of metrics!

Create a directory for storing a collection of different exact solutions to the EFE and provide a means by which these files can be used to initialize a Metric object.

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.