Warp Factory
  • What is Warp Factory?
  • Overview
    • Installing Warp Factory
    • Workflow
    • Codebase Structure
    • Object Types
    • Frames
  • Examples
    • Metrics
      • M1 - First Metric
      • M2 - Default Metrics
      • M3 - Building a Metric
    • Energy Tensor
      • T1 - First Energy Tensor
      • T2 - Cartoon Methods
      • T3 - GPU Computation
      • T4 - Solver Order
      • T5 - Errors
    • Analysis
      • A1 - Energy Conditions
      • A2 - Metric Scalars
      • A3 - Eval Metric
      • A4 - Momentum Flow
    • Warp Shell
      • W1 Warp Shell Comoving
  • Modules
    • Metrics Module
      • Metric Library
        • metricGet_Minkowski
        • metricGet_Alcubierre
        • metricGet_Lentz
        • metricGet_VanDenBroeck
        • metricGet_WarpShellComoving
        • metricGet_ModifiedTime
        • metricGet_Schwarzschild
      • Metric Functions
        • setMinkowski
        • setMinkowskiThreePlusOne
        • threePlusOneBuilder
        • threePlusOneDecomposer
    • Analyzer Module
      • getMomentumFlowLines
      • doFrameTransfer
      • changeTensorIndex
      • getScalars
      • getEnergyConditions
      • evalMetric
    • Solver Module
      • getEnergyTensor
      • verifyTensor
    • Visualizer Module
      • plotThreePlusOne
      • plotTensor
      • Plot Functions
    • Units Module
  • General
    • Contributing
    • FAQ
    • Citing Warp Factory
Powered by GitBook
On this page
  • Description
  • Method
  • Syntax
  • Input Arguments
  • Output Arguments
  1. Modules
  2. Analyzer Module

evalMetric

Description

The function evaluates the common analysis functions of the metric tensor. It returns the stress-energy tensor in coordinate and Eulerian frame, the energy conditions, and the metric scalars.

Method

evalMetric runs several solver and analysis functions and packages the output into a struct for the user.

Syntax

[output] = evalMetric(metric, tryGPU, keepPositive, numAngularVec, numTimeVec)

Input Arguments

blue are required inputs.

orange are optional inputs with native default values.

Inputs
Format
Type
Description

metric

struct

object

Input metric tensor.

tryGPU

1x1 array

integer

Use the GPU for evaluations, input either 1 for true or 0 for false. The default value is 0.

keepPositive

1x1 array

integer

Selects if the energy condition output only returns positive violation values. Input either 1 for true or 0 for false, returning positive and negative values. The default value is 1.

numAngularVec

1x1 array

integer

The number of spatial vectors used for energy conditions. The default value is 100.

numTimeVec

1x1 array

integer

The number of time vectors used for energy conditions. The default value is 10.

Output Arguments

Outputs
Format
Type
Description

output

struct

object

Returns a struct with the following fields: .metric: metric tensor .energyTensor: stress-energy tensor in the coordinate frame .energyTensorEulerian: stress-energy tensor in the Eulerian frame .null: null energy condition .weak: weak energy condition .strong: strong energy condition .dominant: dominant energy condition .expansion: expansion scalar .shear: shear scalar .vorticity: vorticity scalar

PreviousgetEnergyConditionsNextSolver Module

Last updated 1 year ago