Example #1
0
/*!
 * sets codex for geometry and data
 * @param[in]  cod_    codex for VTK output [VTKFormat::APPENDED/VTKFormat::ASCII]
 */
void  VTK::setCodex( VTKFormat cod_) {

    setGeomCodex( cod_) ;
    setDataCodex( cod_) ;

    return ;
};
Example #2
0
/*!  
 *  Constructor for parallel 3D grid.
 *  Calls default constructor and sets provided input information.
 *  @param[in]  dir_        directory of VTK file with final "/"
 *  @param[in]  name_       name of VTK without suffix
 *  @param[in]  codex_      codex of data [VTKFormat::ASCII/VTKFormat::APPENDED]
 *  @param[in]  n1_         min node index in first direction 
 *  @param[in]  n2_         max node index in first direction 
 *  @param[in]  m1_         min node index in second direction 
 *  @param[in]  m2_         max node index in second direction 
 *  @param[in]  l1_         min node index in third direction 
 *  @param[in]  l2_         max node index in third direction 
 */
VTKRectilinearGrid::VTKRectilinearGrid( std::string dir_, std::string name_, VTKFormat codex_, int n1_, int n2_, int m1_, int m2_, int l1_, int l2_ ) :VTKRectilinearGrid( ) {

    setNames( dir_, name_ ) ;

    setDimensions( n1_, n2_, m1_, m2_, l1_, l2_) ;
    setGeomCodex( codex_ ) ;

    return ;
};
Example #3
0
/*!  
 *  Constructor for parallel 3D grid.
 *  Calls default constructor and sets provided input information.
 *  @param[in] dir directory of VTK file with final "/"
 *  @param[in] name name of VTK without suffix
 *  @param[in] codex codex of data [VTKFormat::ASCII/VTKFormat::APPENDED]
 *  @param[in] n1 min node index in first direction 
 *  @param[in] n2 max node index in first direction 
 *  @param[in] m1 min node index in second direction 
 *  @param[in] m2 max node index in second direction 
 *  @param[in] l1 min node index in third direction 
 *  @param[in] l2 max node index in third direction 
 */
VTKRectilinearGrid::VTKRectilinearGrid( std::string dir, std::string name, VTKFormat codex, int n1, int n2, int m1, int m2, int l1, int l2 ) :VTKRectilinearGrid( ) {

    setNames( dir, name ) ;

    setDimensions( n1, n2, m1, m2, l1, l2) ;
    setGeomCodex( codex ) ;

    return ;
};
Example #4
0
/*!  
 *  Constructor for serial 2D grid.
 *  Calls default constructor and sets provided input information.
 *  @param[in]  dir_        directory of VTK file with final "/"
 *  @param[in]  name_       name of VTK without suffix
 *  @param[in]  codex_      codex of data [VTKFormat::ASCII/VTKFormat::APPENDED]
 *  @param[in]  n_          number of nodes in first direction 
 *  @param[in]  m_          number of nodes in second direction 
 */
VTKRectilinearGrid::VTKRectilinearGrid( std::string dir_, std::string name_, VTKFormat codex_, int n_, int m_ ) : VTKRectilinearGrid( ) {

    setNames( dir_, name_ ) ;

    setDimensions( 0, n_-1, 0, m_-1, 0, 0) ;
    setGeomCodex( codex_ ) ;

    return ;
};
Example #5
0
/*!  
 *  Constructor for serial 2D grid.
 *  Calls default constructor and sets provided input information.
 *  @param[in] dir directory of VTK file with final "/"
 *  @param[in] name name of VTK without suffix
 *  @param[in] codex codex of data [VTKFormat::ASCII/VTKFormat::APPENDED]
 *  @param[in] n number of nodes in first direction 
 *  @param[in] m number of nodes in second direction 
 */
VTKRectilinearGrid::VTKRectilinearGrid( std::string dir, std::string name, VTKFormat codex, int n, int m ) : VTKRectilinearGrid( ) {

    setNames( dir, name ) ;

    setDimensions( 0, n-1, 0, m-1, 0, 0) ;
    setGeomCodex( codex ) ;

    return ;
};