Giter Site home page Giter Site logo

barrywardell / einsteinexact Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 1.47 MB

A Cactus arrangement containing thorns which provide analytically computed exact solutions of Einstein's Equations.

License: GNU General Public License v3.0

Gnuplot 12.39% C++ 76.06% Mathematica 11.53% Makefile 0.01%

einsteinexact's People

Contributors

barrywardell avatar eschnett avatar ianhinder avatar pdiener avatar rhaas80 avatar samuelcupp avatar stevenrbrandt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kmavridis

einsteinexact's Issues

\[Theta] and \[Phi] in "Coordinates" field.

The scripts for metrics containing coordinates such as [Theta] and [Phi] fail to compile, with no error message. I assume this is the reason for not having them included in EinsteinExact.m by default. What is then the recommended way to express metrics in polar coordinates?

commit 201ad2e0e71fa19109c28955ff0bc6ccc35e2447 inverted meaning of lapsefactor

with 201ad2e a lapse factor of 0.5 and a minkoswki metric otherwise generates a metric with lapse = 2 instead of the expected 0.5. A simple fix is to apply

diff --git a/m/EinsteinExact.m b/m/EinsteinExact.m
index 31948b0..a330d1a 100644
--- a/m/EinsteinExact.m
+++ b/m/EinsteinExact.m
@@ -159,7 +159,7 @@ xformEuler = Module[{Rphi, Rtheta, Rpsi, Rot, xform},
 (* Modify lapse *)
 xformSlowdown = Module[{xform},
   xform = IdentityMatrix[4];
-  xform[[1, 1]] = 1 / lapsefactor;
+  xform[[1, 1]] = lapsefactor;
   xformSimplify[xform]
 ];

Eliminate duplicated calculations

Currently, EinsteinExact creates two calculations for each metric; one for running during initial data only, and another for running during evolution. Which of these is actually run is determined by a run-time parameter. However, these calculations are identical. It would be better to create just one calculation and have it scheduled differently depending on this parameter. Creating the calculations and compiling the resulting code can take a lot of time.

Does Cactus support the following?

Schedule -> {"in ADMBase_InitialData if ADMBase::initial_data = "<>thorn, "at ANALYSIS if ADMBase::evolution_method = " <> thorn

You can include a grid scalar in the "if" clause of a schedule string, but I suspect nothing more complicated than that.

Probably we need to add a feature to Kranc to apply a different conditional to each schedule entry. I wonder if there is a higher-level or more elegant solution to this, which avoids going down the route of making Kranc just a wrapper around all existing Cactus functionality.

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.