lib/field/vfield.cc
/**
 ********************************************************************************************************************************************
 * \brief   Constructor of the vfield class
 *
 *          Three instances of field class are initialized.
 *          Each instance corresponds to a component of the vector field.
 *          The fields are initialized with appropriate grid to place the components on the cell faces.
 *          The name of the vector field as given by the user is also assigned.
 *
 * \param   gridData is a const reference to the global data in the grid class
 * \param   fieldName is a string value used to name and identify the vector field
 ********************************************************************************************************************************************
 */
\brief   Constructor of the vfield class
Three instances of field class are initialized.
Each instance corresponds to a component of the vector field.
The fields are initialized with appropriate grid to place the components on the cell faces.
The name of the vector field as given by the user is also assigned.

\param   gridData is a const reference to the global data in the grid class
\param   fieldName is a string value used to name and identify the vector field
\ brief Constructor of the vfield class Three instances of field class are initialized . Each instance corresponds to a component of the vector field . The fields are initialized with appropriate grid to place the components on the cell faces . The name of the vector field as given by the user is also assigned . \ param gridData is a const reference to the global data in the grid class \ param fieldName is a string value used to name and identify the vector field
vfield::vfield(const grid &gridData, std::string fieldName):
               gridData(gridData),
               Vx(gridData, "Vx", false, true, true),
               Vy(gridData, "Vy", true, false, true),
               Vz(gridData, "Vz", true, true, false),
               derVx(gridData, Vx), derVy(gridData, Vy), derVz(gridData, Vz)
{
    this->fieldName = fieldName;
    interTempX.resize(Vx.fSize);
    interTempX.reindexSelf(Vx.flBound);
    derivTempX.resize(Vx.fSize);
    derivTempX.reindexSelf(Vx.flBound);
#ifndef PLANAR
    interTempY.resize(Vy.fSize);
    interTempY.reindexSelf(Vy.flBound);
    derivTempY.resize(Vy.fSize);
    derivTempY.reindexSelf(Vy.flBound);
#endif
    interTempZ.resize(Vz.fSize);
    interTempZ.reindexSelf(Vz.flBound);
    derivTempZ.resize(Vz.fSize);
    derivTempZ.reindexSelf(Vz.flBound);
}
vfield :: vfield ( const grid & gridData , std :: string fieldName ) : gridData ( gridData ) , Vx ( gridData , " " , false , true , true ) , Vy ( gridData , " " , true , false , true ) , Vz ( gridData , " " , true , true , false ) , derVx ( gridData , Vx ) , derVy ( gridData , Vy ) , derVz ( gridData , Vz ) { this -> fieldName = fieldName ; interTempX . resize ( Vx . fSize ) ; interTempX . reindexSelf ( Vx . flBound ) ; derivTempX . resize ( Vx . fSize ) ; derivTempX . reindexSelf ( Vx . flBound ) ; #ifndef PLANAR interTempY . resize ( Vy . fSize ) ; interTempY . reindexSelf ( Vy . flBound ) ; derivTempY . resize ( Vy . fSize ) ; derivTempY . reindexSelf ( Vy . flBound ) ; #endif interTempZ . resize ( Vz . fSize ) ; interTempZ . reindexSelf ( Vz . flBound ) ; derivTempZ . resize ( Vz . fSize ) ; derivTempZ . reindexSelf ( Vz . flBound ) ; }
\brief   Constructor of the vfield class
          Three instances of field class are initialized.
\ brief Constructor of the vfield class Three instances of field class are initialized .