Chombo + EB + MF  3.2
Macros | Functions
newMappedGridIO.H File Reference
#include "NewCoordSys.H"
#include "MultiBlockCoordSys.H"
#include "AMRIO.H"
#include "NodeAMRIO.H"
#include "REAL.H"
#include <string>
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for newMappedGridIO.H:

Go to the source code of this file.

Macros

#define _NEWMAPPEDGRIDIO_H_
 

Functions

void WriteMappedUGHDF5 (const string &a_fileRoot, const DisjointBoxLayout &a_grids, const LevelData< FArrayBox > &a_data, const NewCoordSys &a_CoordSys, const Box &a_domainBox, const Real &a_time, bool a_writeMapping=true)
 Write single-level of mapped-grid data in HDF5 format. More...
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Vector< const NewCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels, bool a_writeMapping=true)
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< const NewCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Vector< int > &a_vectRatio, const int &a_numLevels, const Real &a_time, bool a_writeMapping=true)
 
void WriteMappedUGHDF5 (const string &a_fileRoot, const DisjointBoxLayout &a_grids, const LevelData< FArrayBox > &a_data, const MultiBlockCoordSys &a_CoordSys, const Box &a_domainBox, const Real &a_time, bool a_writeMapping=true)
 Write single-level of multiblock mapped-grid data in HDF5 format. More...
 
void WriteMappedUGHDF5 (const string &a_fileRoot, const DisjointBoxLayout &a_grids, const LevelData< FArrayBox > &a_data, const MultiBlockCoordSys &a_CoordSys, const Box &a_domainBox, const Vector< string > &outputNames, const Real &a_time, bool a_writeMapping=true)
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Vector< const MultiBlockCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Real &a_dt, const Real &a_time, const Vector< int > &a_vectRatio, const int &a_numLevels, bool a_writeMapping=true)
 
void WriteMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< const MultiBlockCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Vector< int > &a_vectRatio, const int &a_numLevels, const Real &a_time, bool a_writeMapping=true)
 
void WriteAnisotropicMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< const MultiBlockCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Vector< IntVect > &a_vectRatios, const int &a_numLevels, const Real &a_time, bool a_writeMapping=true)
 
void WriteAnisotropicMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Vector< const MultiBlockCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Real &a_dt, const Real &a_time, const Vector< IntVect > &a_vectRatio, const int &a_numLevels, bool a_writeMapping=true)
 
void WriteAnisotropicMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< string > &a_vectNames, const Vector< const NewCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Real &a_dt, const Real &a_time, const Vector< IntVect > &a_vectRatios, const int &a_numLevels, bool a_writeMapping=true)
 
void WriteAnisotropicMappedAMRHierarchyHDF5 (const string &fileRoot, const Vector< DisjointBoxLayout > &a_vectGrids, const Vector< LevelData< FArrayBox > * > &a_vectData, const Vector< const NewCoordSys * > &a_vectCoordsys, const Box &a_baseDomainBox, const Vector< IntVect > &a_vectRatios, const int &a_numLevels, const Real &a_time, bool a_writeMapping=true)
 

Macro Definition Documentation

◆ _NEWMAPPEDGRIDIO_H_

#define _NEWMAPPEDGRIDIO_H_

Function Documentation

◆ WriteMappedUGHDF5() [1/3]

void WriteMappedUGHDF5 ( const string &  a_fileRoot,
const DisjointBoxLayout a_grids,
const LevelData< FArrayBox > &  a_data,
const NewCoordSys a_CoordSys,
const Box a_domainBox,
const Real a_time,
bool  a_writeMapping = true 
)

Write single-level of mapped-grid data in HDF5 format.

Writes a single level in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. This is blocking.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

Arguments:

  • a_fileRoot: root of files to output to.
  • a_grids : grids
  • a_data : data
  • a_names : names of variables.
  • a_CoordSys: coordinate system
  • a_writeMapping: if false, don't write the second ("map") file

◆ WriteMappedAMRHierarchyHDF5() [1/4]

void WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< string > &  a_vectNames,
const Vector< const NewCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Real a_dt,
const Real a_time,
const Vector< int > &  a_vectRatio,
const int &  a_numLevels,
bool  a_writeMapping = true 
)

Writes hierarchy of mapped levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \

This is blocking.

◆ WriteMappedAMRHierarchyHDF5() [2/4]

void WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< const NewCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Vector< int > &  a_vectRatio,
const int &  a_numLevels,
const Real a_time,
bool  a_writeMapping = true 
)

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \ This is blocking.

◆ WriteMappedUGHDF5() [2/3]

void WriteMappedUGHDF5 ( const string &  a_fileRoot,
const DisjointBoxLayout a_grids,
const LevelData< FArrayBox > &  a_data,
const MultiBlockCoordSys a_CoordSys,
const Box a_domainBox,
const Real a_time,
bool  a_writeMapping = true 
)

Write single-level of multiblock mapped-grid data in HDF5 format.

Writes a single level in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation. This is blocking.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

Arguments:

  • a_fileRoot: root of files to output to.
  • a_grids : grids
  • a_data : data
  • a_names : names of variables.
  • a_CoordSys: multiblock coordinate system
  • a_writeMapping: if false, don't write the second ("map") file

◆ WriteMappedUGHDF5() [3/3]

void WriteMappedUGHDF5 ( const string &  a_fileRoot,
const DisjointBoxLayout a_grids,
const LevelData< FArrayBox > &  a_data,
const MultiBlockCoordSys a_CoordSys,
const Box a_domainBox,
const Vector< string > &  outputNames,
const Real a_time,
bool  a_writeMapping = true 
)

◆ WriteMappedAMRHierarchyHDF5() [3/4]

void WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< string > &  a_vectNames,
const Vector< const MultiBlockCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Real a_dt,
const Real a_time,
const Vector< int > &  a_vectRatio,
const int &  a_numLevels,
bool  a_writeMapping = true 
)

Writes hierarchy of multiblock mapped levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information b (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ a_vectCoordSys: multiblock coordinate systems for each AMR level. \ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \

This is blocking.

◆ WriteMappedAMRHierarchyHDF5() [4/4]

void WriteMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< const MultiBlockCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Vector< int > &  a_vectRatio,
const int &  a_numLevels,
const Real a_time,
bool  a_writeMapping = true 
)

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_vectRatio : refinement ratio at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \ This is blocking.

◆ WriteAnisotropicMappedAMRHierarchyHDF5() [1/4]

void WriteAnisotropicMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< const MultiBlockCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Vector< IntVect > &  a_vectRatios,
const int &  a_numLevels,
const Real a_time,
bool  a_writeMapping = true 
)

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_vectRatios: refinement ratio in each direction at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \ This is blocking.

◆ WriteAnisotropicMappedAMRHierarchyHDF5() [2/4]

void WriteAnisotropicMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< string > &  a_vectNames,
const Vector< const MultiBlockCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Real a_dt,
const Real a_time,
const Vector< IntVect > &  a_vectRatio,
const int &  a_numLevels,
bool  a_writeMapping = true 
)

Writes hierarchy of multiblock mapped levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ a_vectCoordSys: multiblock coordinate systems for each AMR level. \ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatios: refinement ratio in each direction at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \

This is blocking.

◆ WriteAnisotropicMappedAMRHierarchyHDF5() [3/4]

void WriteAnisotropicMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< string > &  a_vectNames,
const Vector< const NewCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Real a_dt,
const Real a_time,
const Vector< IntVect > &  a_vectRatios,
const int &  a_numLevels,
bool  a_writeMapping = true 
)

Writes hierarchy of mapped levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectNames: names of variables.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_dt : time step at coarsest level.\ a_time : time.\ a_vectRatio : refinement ratio in each direction at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \

This is blocking.

◆ WriteAnisotropicMappedAMRHierarchyHDF5() [4/4]

void WriteAnisotropicMappedAMRHierarchyHDF5 ( const string &  fileRoot,
const Vector< DisjointBoxLayout > &  a_vectGrids,
const Vector< LevelData< FArrayBox > * > &  a_vectData,
const Vector< const NewCoordSys * > &  a_vectCoordsys,
const Box a_baseDomainBox,
const Vector< IntVect > &  a_vectRatios,
const int &  a_numLevels,
const Real a_time,
bool  a_writeMapping = true 
)

Writes hierarchy of levels in HDF5 format. Only available if the preprocessor macro HDF5 is defined at compilation.

Opens and writes to 2 files: fileRoot.<DIM>d.hdf5 contains the cell-centered dataset, while fileRoot.map.<DIM>d.hdf5 contains the node-centered mapped-grid information (which is the real-space locations of the nodes in mapped space.)

{ Arguments:}\ fileRoot : root of files to output to.\ a_vectGrids : grids at each level.\ a_vectData : data at each level.\ a_vectCoordSys: coordinate systems for each AMR level. \ a_vectRatio : refinement ratio in each direction at all levels (ith entry is refinement ratio between levels i and i + 1).\ a_numLevels : number of levels to output.\ a_writeMapping: if false, don't write the second ("map") file \

This is blocking.