WarpX
Namespaces | Functions
utils Namespace Reference

Namespaces

 algorithms
 
 
 parser
 
 physics
 

Functions

std::vector< double > getRelativeCellPosition (amrex::MultiFab const &mf)
 

Function Documentation

◆ getRelativeCellPosition()

std::vector< double > utils::getRelativeCellPosition ( amrex::MultiFab const &  mf)

Get the Relative Cell Position of Values in an MultiFab

Translate the IndexType of a given MultiFab into a position relative to the lower corner of a cell.

Parameters
[in]mfthe amrex::MultiFab to get relative cell positions for
Returns
relative position to the lower corner, scaled to cell size [0.0:1.0)