SW4  Git Revision 67ab458ccdb97763a04025b4bf840d7814d6d27f
SW4
 All Classes Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Image Class Reference

Public Types

enum  ImageMode {
  NONE, UX, UY, UZ,
  RHO, LAMBDA, MU, P,
  S, UXEXACT, UYEXACT, UZEXACT,
  DIV, CURLMAG, DIVDT, CURLMAGDT,
  LAT, LON, TOPO, GRIDX,
  GRIDY, GRIDZ, UXERR, UYERR,
  UZERR, MAGDUDT, HMAGDUDT, HMAXDUDT,
  VMAXDUDT, MAG, HMAG, HMAX,
  VMAX, GRADRHO, GRADMU, GRADLAMBDA,
  GRADP, GRADS, QP, QS
}
 
enum  ImageOrientation { UNDEFINED, X, Y, Z }
 

Public Member Functions

 Image (EW *a_ew, double time, double timeInterval, int cycle, int cycleInterval, const std::string &filePrefix, ImageMode mode, ImageOrientation locationType, double locationValue, bool doubleMode, bool userCreated=true)
 
void set_double (bool val=true)
 
void computeGridPtIndex ()
 
void allocatePlane ()
 
void computeImageQuantity (std::vector< Sarray > &a_mu, int a_nComp)
 
void computeImagePvel (std::vector< Sarray > &mu, std::vector< Sarray > &lambda, std::vector< Sarray > &rho)
 
void computeImageSvel (std::vector< Sarray > &mu, std::vector< Sarray > &rho)
 
void computeImageGrid (Sarray &a_X, Sarray &a_Y, Sarray &a_Z)
 
void computeImageLatLon (Sarray &a_X, Sarray &a_Y, Sarray &a_Z)
 
void computeImageDivCurl (std::vector< Sarray > &a_Up, std::vector< Sarray > &a_U, std::vector< Sarray > &a_Um, double dt, int dminus)
 
void computeImageMagdt (std::vector< Sarray > &a_Up, std::vector< Sarray > &a_Um, double dt)
 
void computeImageMag (std::vector< Sarray > &a_U)
 
void computeImageHmagdt (std::vector< Sarray > &a_Up, std::vector< Sarray > &a_Um, double dt)
 
void computeImageHmag (std::vector< Sarray > &a_U)
 
void compute_image_gradp (vector< Sarray > &a_gLambda, vector< Sarray > &a_Mu, vector< Sarray > &a_Lambda, vector< Sarray > &a_Rho)
 
void compute_image_grads (vector< Sarray > &a_gMu, vector< Sarray > &a_gLambda, vector< Sarray > &a_Mu, vector< Sarray > &a_Rho)
 
void computeImageQuantityDiff (vector< Sarray > &a_U, vector< Sarray > &a_Uex, int comp)
 
void output_image (int a_cycle, double a_time, double a_dt, vector< Sarray > &a_Up, vector< Sarray > &a_U, vector< Sarray > &a_Um, vector< Sarray > &a_Rho, vector< Sarray > &a_Mu, vector< Sarray > &a_Lambda, vector< Sarray > &a_gRho, vector< Sarray > &a_gMu, vector< Sarray > &a_gLambda, vector< Source * > &a_sources, int a_dminus)
 
void update_image (int a_cycle, double a_time, double a_dt, vector< Sarray > &a_Up, vector< Sarray > &a_U, vector< Sarray > &a_Um, vector< Sarray > &a_Rho, vector< Sarray > &a_Mu, vector< Sarray > &a_Lambda, vector< Sarray > &a_gRho, vector< Sarray > &a_gMu, vector< Sarray > &a_gLambda, vector< Source * > &a_sources, int a_dminus)
 
void copy2DArrayToImage (Sarray &twoDimensionalArray)
 
bool is_time_derivative () const
 
void associate_gridfiles (vector< Image * > &imgs)
 
void writeImagePlane_2 (int cycle, std::string &a_path, double time)
 
void add_grid_filenames_to_file (const char *fname)
 
void add_grid_to_file (const char *fname, bool iwrite, size_t offset)
 
bool plane_in_proc (int a_gridIndexCoarsest)
 
void initializeIO ()
 
void computeNearestGridPoint (std::vector< int > &a_arrayIndex, double x) const
 
void update_maxes_vVelMax (std::vector< Sarray > &a_Up, std::vector< Sarray > &a_Um, double dt)
 
void update_maxes_hVelMax (std::vector< Sarray > &a_Up, std::vector< Sarray > &a_Um, double dt)
 
void update_maxes_vMax (std::vector< Sarray > &a_U)
 
void update_maxes_hMax (std::vector< Sarray > &a_U)
 
const std::string fieldSuffix (ImageMode mode) const
 
bool timeToWrite (double time, int cycle, double dt)
 
bool timeToWrite (int cycle)
 
void compute_file_suffix (std::stringstream &fileSuffix, int cycle)
 
ImageOrientation getOrientation () const
 
void initializeTime ()
 
bool needs_mgrad () const
 

Static Public Member Functions

static void setSteps (int a_steps)
 

Public Attributes

ImageMode mMode
 
std::string mFilePrefix
 

Static Public Attributes

static int MODES =40
 
static Imagenil =static_cast<Image*>(0)
 

Protected Member Functions

void define_pio ()
 

Protected Attributes

double mTime
 
bool m_time_done
 
double mTimeInterval
 
double mNextTime
 
int mWritingCycle
 
int mCycleInterval
 
std::vector< std::string > mMode2Suffix
 
std::vector< std::string > mOrientationString
 

Static Protected Attributes

static int mPreceedZeros =0
 

The documentation for this class was generated from the following files: