|
chombo-discharge
|
Agglomeration of useful data operations. More...
#include <CD_DataOps.H>
Static Public Member Functions | |
| template<typename T > | |
| static void | setValue (LevelData< MFInterfaceFAB< T > > &a_lhs, const T &a_value) |
| Set value in an MFInterfaceFAB data holder. | |
| template<typename T > | |
| static int | sgn (const T a_value) |
| Sign function. Returns +/- if the value is > 0 or < 0. | |
| static void | averageCellVelocityToFaceVelocity (EBAMRFluxData &a_faceData, const EBAMRCellData &a_cellData, const Vector< ProblemDomain > &a_domains, const int a_tanGhosts, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Routine which computes the average of a cell-centered quantity on faces for the normal component only. | |
| static void | averageCellVelocityToFaceVelocity (LevelData< EBFluxFAB > &a_faceData, const LevelData< EBCellFAB > &a_cellData, const ProblemDomain &a_domain, const int a_tanGhosts, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) |
| Routine which computes the average of a cell-centered quantity on faces for the normal component only. | |
| static void | averageCellToFace (EBAMRFluxData &a_faceData, const EBAMRCellData &a_cellData, const Vector< ProblemDomain > &a_domains, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Average all components of the cell-centered data to faces (arithmetic, no tangential ghost faces). | |
| static void | averageCellToFace (EBAMRFluxData &a_faceData, const EBAMRCellData &a_cellData, const Vector< ProblemDomain > &a_domains, const int a_tanGhosts, const Interval &a_faceInterval, const Interval &a_cellInterval, const Average &a_average, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Routine which averages a cell-centered component to faces. | |
| static void | averageCellToFace (LevelData< EBFluxFAB > &a_faceData, const LevelData< EBCellFAB > &a_cellData, const ProblemDomain &a_domain, const int a_tanGhosts, const Interval &a_faceInterval, const Interval &a_cellInterval, const Average &a_average, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) |
| Routine which averages a cell-centered component to faces. | |
| static void | averageFaceToCell (EBAMRCellData &a_cellData, const EBAMRFluxData &a_faceData, const Vector< ProblemDomain > &a_domains, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Average all components of face centered data to cell centers. | |
| static void | averageFaceToCell (LevelData< EBCellFAB > &a_cellData, const LevelData< EBFluxFAB > &a_fluxData, const ProblemDomain &a_domain, LayoutData< VoFIterator > &a_vofIter) |
| Average all components of face centered data to cell centers. | |
| static void | axby (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_x, const LevelData< EBCellFAB > &a_y, const Real a_a, const Real a_b) noexcept |
| Compute lhs = a * x + b * y. | |
| static void | compute (EBAMRCellData &a_data, const std::function< Real(const Real a_cellValue)> &a_func, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) noexcept |
| Compute a new value given the old cell value. | |
| static void | compute (LevelData< EBCellFAB > &a_data, const std::function< Real(const Real a_cellValue)> &a_func, LayoutData< VoFIterator > &a_vofIter) noexcept |
| Compute a new value given the old cell value. | |
| static void | dotProduct (MFAMRCellData &a_result, const MFAMRCellData &a_data1, const MFAMRCellData &a_data2) |
| Compote the cell-wise dot product between two data holders. | |
| static void | dotProduct (LevelData< MFCellFAB > &a_result, const LevelData< MFCellFAB > &a_data1, const LevelData< MFCellFAB > &a_data2) |
| Compote the cell-wise dot product between two data holders. | |
| static void | dotProduct (EBAMRCellData &a_result, const EBAMRCellData &a_data1, const EBAMRCellData &a_data2, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Compute the cell-wise dot product between two data holders. | |
| static void | dotProduct (LevelData< EBCellFAB > &a_result, const LevelData< EBCellFAB > &a_data1, const LevelData< EBCellFAB > &a_data2, LayoutData< VoFIterator > &a_vofIter) |
| Compute the cell-wise dot product between two data holders. | |
| static void | dotProduct (EBCellFAB &a_result, const EBCellFAB &a_data1, const EBCellFAB &a_data2, const Box &a_box, VoFIterator &a_vofIter) |
| Compute the cell-wise dot product between two data holders. | |
| static void | filterSmooth (EBAMRCellData &a_data, const Real a_alpha, const int a_stride, const bool a_zeroEB) noexcept |
| Apply a convolved filter phi = alpha * phi_i + 0.5*(1-alpha) * [phi_(i+s) + phi_(i-s)] in each direction. | |
| static void | filterSmooth (LevelData< EBCellFAB > &a_data, const Real a_alpha, const int a_stride, const bool a_zeroEB) noexcept |
| Apply a convolved filter phi = alpha * phi_i + 0.5*(1-alpha) * [phi_(i+s) + phi_(i-s)] in each direction. | |
| static void | incr (MFAMRCellData &a_lhs, const MFAMRCellData &a_rhs, const Real a_scale) noexcept |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< MFCellFAB > &a_lhs, const LevelData< MFCellFAB > &a_rhs, const Real a_scale) noexcept |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs, const Real &a_scale) noexcept |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const Real &a_scale) noexcept |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRFluxData &a_lhs, const EBAMRFluxData &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< EBFluxFAB > &a_lhs, const LevelData< EBFluxFAB > &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBFluxFAB &a_lhs, const EBFluxFAB &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRIVData &a_lhs, const EBAMRIVData &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< BaseIVFAB< Real > > &a_lhs, const LevelData< BaseIVFAB< Real > > &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRIVData &a_lhs, const EBAMRIVData &a_rhs, const Real &a_scale, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< BaseIVFAB< Real > > &a_lhs, const LevelData< BaseIVFAB< Real > > &a_rhs, const Real &a_scale, LayoutData< VoFIterator > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRIFData &a_lhs, const EBAMRIFData &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< DomainFluxIFFAB > &a_lhs, const LevelData< DomainFluxIFFAB > &a_rhs, const Real &a_scale) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRCellData &a_lhs, const EBAMRIVData &a_rhs, const Real a_scale, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< EBCellFAB > &a_lhs, const LevelData< BaseIVFAB< Real > > &a_rhs, const Real a_scale, LayoutData< VoFIterator > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (EBAMRIVData &a_lhs, const EBAMRCellData &a_rhs, const Real a_scale, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | incr (LevelData< BaseIVFAB< Real > > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const Real a_scale, LayoutData< VoFIterator > &a_vofIter) |
| Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components. | |
| static void | copy (MFAMRCellData &a_dst, const MFAMRCellData &a_src) |
| Copy data from one data holder to another. | |
| static void | copy (EBAMRCellData &a_dst, const EBAMRCellData &a_src) |
| Copy data from one data holder to another. | |
| static void | copy (EBAMRIVData &a_dst, const EBAMRIVData &a_src) |
| Copy data from one data holder to another. | |
| template<typename T > | |
| static void | copy (EBAMRData< T > &a_dst, const EBAMRData< T > &a_src, const Interval a_dstInterv, const Interval a_srcInterv) |
| Copy data from one data holder to another. Allows specification of components. | |
| static void | divide (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs, const int a_lhsComp, const int a_rhsComp) |
| Divide one data holder by another. Does specified components. | |
| static void | divide (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const int a_lhsComp, const int a_rhsComp) |
| Divide one data holder by another. Does specified components. | |
| static void | divideByScalar (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs) |
| Divide all components in a data holder by a scalar value. | |
| static void | divideByScalar (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs) |
| Divide all components in a data holder by a scalar value. | |
| static void | divideFallback (EBAMRCellData &a_numerator, const EBAMRCellData &a_denominator, const Real a_fallback, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Divide data. If the denominator is zero, set the value to a fallback option. | |
| static void | divideFallback (LevelData< EBCellFAB > &a_numerator, const LevelData< EBCellFAB > &a_denominator, const Real a_fallback, LayoutData< VoFIterator > &a_vofIter) |
| Divide data. If the denominator is zero, set the value to a fallback option. | |
| static void | divideFallback (EBAMRCellData &a_numerator, const EBAMRCellData &a_denominator, const EBAMRCellData &a_fallback, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Divide data. If the denominator is zero, set the value to a fallback option. | |
| static void | divideFallback (LevelData< EBCellFAB > &a_numerator, const LevelData< EBCellFAB > &a_denominator, const LevelData< EBCellFAB > &a_fallback, LayoutData< VoFIterator > &a_vofIter) |
| Divide data. If the denominator is zero, set the value to a fallback option. | |
| static void | floor (EBAMRCellData &a_lhs, const Real a_value, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Floor values in data holder. This sets all values below a_value to a_value. | |
| static void | floor (LevelData< EBCellFAB > &a_lhs, const Real a_value, LayoutData< VoFIterator > &a_vofIter) |
| Floor values in data holder. This sets all values below a_value to a_value. | |
| static void | floor (EBAMRIVData &a_lhs, const Real a_value, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Floor values in data holder. This sets all values below a_value to a_value. | |
| static void | floor (LevelData< BaseIVFAB< Real > > &a_lhs, const Real a_value, LayoutData< VoFIterator > &a_vofIter) |
| Floor values in data holder. This sets all values below a_value to a_value. | |
| static void | roof (EBAMRCellData &a_lhs, const Real a_value, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Roof values in data holder. This sets all values above a_value to a_value. | |
| static void | roof (LevelData< EBCellFAB > &a_lhs, const Real a_value, LayoutData< VoFIterator > &a_vofIter) |
| Roof values in data holder. This sets all values above a_value to a_value. | |
| static void | roof (EBAMRIVData &a_lhs, const Real a_value, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Roof values in data holder. This sets all values above a_value to a_value. | |
| static void | roof (LevelData< BaseIVFAB< Real > > &a_lhs, const Real a_value, LayoutData< VoFIterator > &a_vofIter) |
| Roof values in data holder. This sets all values above a_value to a_value. | |
| static void | max (EBAMRCellData &a_data, const EBAMRCellData &a_data1, const EBAMRCellData &a_data2, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Make a_data = max(a_data1, a_data2). | |
| static void | max (LevelData< EBCellFAB > &a_data, const LevelData< EBCellFAB > &a_data1, const LevelData< EBCellFAB > &a_data2, LayoutData< VoFIterator > &a_vofIter) |
| Make a_data = max(a_data1, a_data2). | |
| static void | getMaxMin (Real &max, Real &min, EBAMRCellData &a_data, const int a_comp, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Get maximum and minimum value of specified component. | |
| static void | getMaxMin (Real &a_max, Real &a_min, LevelData< EBCellFAB > &a_data, const int a_comp, LayoutData< VoFIterator > &a_vofIter) |
| Get maximum and minimum value of specified component. | |
| static void | getMaxMin (Real &a_max, Real &a_min, EBAMRFluxData &a_data, const int a_comp, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) noexcept |
| Get maximum and minimum value of specified component. | |
| static void | getMaxMin (Real &a_max, Real &a_min, LevelData< EBFluxFAB > &a_data, const int a_comp, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) noexcept |
| Get maximum and minimum value of specified component. | |
| static void | getMaxMin (Vector< Real > &a_max, Vector< Real > &a_min, Vector< EBAMRCellData > &a_data) |
| Get maximum and minimum value. Assumes single-component data. | |
| static void | getMaxMinNorm (Real &a_max, Real &a_min, EBAMRCellData &data, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Get maximum and minimum value of normed data. | |
| static void | getMaxMinNorm (Real &a_max, Real &a_min, LevelData< EBCellFAB > &data, LayoutData< VoFIterator > &a_vofIter) |
| Get maximum and minimum value of normed data. | |
| static void | getMaxMinNorm (Real &a_max, Real &a_min, EBAMRIVData &a_data, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Get maximum and minimum value of normed data. | |
| static void | getMaxMinNorm (Real &a_max, Real &a_min, LevelData< BaseIVFAB< Real > > &a_data, LayoutData< VoFIterator > &a_vofIter) |
| Get maximum and minimum value of normed data. | |
| static void | invert (EBAMRFluxData &a_data) |
| Invert data. | |
| static void | invert (EBAMRFluxData &a_data, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Invert data using pre-built face iterators. | |
| static void | invert (LevelData< EBFluxFAB > &a_data, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) |
| Invert data. | |
| static void | invert (EBFluxFAB &a_data) |
| Invert data. | |
| static void | kappaSum (Real &a_mass, const LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_regularMask, const int a_comp, LayoutData< VoFIterator > &a_vofIter) |
| Compute the kappa-weighted sum of the input data. Assumes one component. | |
| static void | kappaScale (EBAMRCellData &a_data, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) noexcept |
| Scale data by volume fraction. | |
| static void | kappaScale (LevelData< EBCellFAB > &a_data, LayoutData< VoFIterator > &a_vofIter) noexcept |
| Scale data by volume fraction. | |
| static void | kappaScale (MFAMRCellData &a_data, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase0, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase1) noexcept |
| Scale data by volume fraction. | |
| static void | kappaScale (LevelData< MFCellFAB > &a_data, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase0, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase1) noexcept |
| Scale data by volume fraction. | |
| static void | volumeScale (EBAMRCellData &a_data, const Vector< Real > &a_dx) |
| Scale data by dx^SpaceDim. | |
| static void | multiply (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiply (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiply (EBAMRFluxData &a_lhs, const EBAMRFluxData &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiply (LevelData< EBFluxFAB > &a_lhs, const LevelData< EBFluxFAB > &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiply (EBAMRIVData &a_lhs, const EBAMRIVData &a_rhs, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Multiply data holder by another data holder element-wise over all cut-cells. | |
| static void | multiply (LevelData< BaseIVFAB< Real > > &a_lhs, const LevelData< BaseIVFAB< Real > > &a_rhs, LayoutData< VoFIterator > &a_vofIter) |
| Multiply data holder by another data holder element-wise over all cut-cells. | |
| static void | multiplyScalar (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiplyScalar (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs) |
| Multiply data holder by another data holder. | |
| static void | multiplyScalar (EBAMRIVData &a_lhs, const EBAMRIVData &a_rhs, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Multiply all components of a_lhs by the single component of a_rhs over all cut-cells. | |
| static void | multiplyScalar (LevelData< BaseIVFAB< Real > > &a_lhs, const LevelData< BaseIVFAB< Real > > &a_rhs, LayoutData< VoFIterator > &a_vofIter) |
| Multiply all components of a_lhs by the single component of a_rhs over all cut-cells. | |
| static Real | norm (const LevelData< EBCellFAB > &a_data, const LevelData< EBCellFAB > &a_regularMask, const int a_p, LayoutData< VoFIterator > &a_vofIter, const int a_comp=0) |
| Compute specified norm of data. | |
| static void | plus (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs, const int a_srcComp, const int a_dstComp, const int a_numComp) |
| General addition operator for adding together data. The user can choose which components to add. | |
| static void | plus (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const int a_srcComp, const int a_dstComp, const int a_numComp) |
| General addition operator for adding together data. The user can choose which components to add. | |
| static void | scale (MFAMRCellData &a_lhs, const Real &a_scale) noexcept |
| Scale data by factor. | |
| static void | scale (LevelData< MFCellFAB > &a_lhs, const Real &a_scale) noexcept |
| Scale data by factor. | |
| static void | scale (MFAMRFluxData &a_lhs, const Real &a_scale) |
| Scale data by factor. | |
| static void | scale (LevelData< MFFluxFAB > &a_lhs, const Real &a_scale) |
| Scale data by factor. | |
| static void | scale (EBAMRIVData &a_lhs, const Real &a_scale, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Scale data by factor over all cut-cells. | |
| static void | scale (EBAMRCellData &a_lhs, const Real a_scale) noexcept |
| Scale data by factor. | |
| static void | scale (LevelData< EBCellFAB > &a_lhs, const Real a_scale) noexcept |
| Scale data by factor. | |
| static void | scale (EBAMRFluxData &a_lhs, const Real a_scale) |
| Scale data by factor. | |
| static void | scale (LevelData< EBFluxFAB > &a_lhs, const Real a_scale) |
| Scale data by factor. | |
| static void | scale (LevelData< BaseIVFAB< Real > > &a_lhs, const Real &a_scale, LayoutData< VoFIterator > &a_vofIter) |
| Scale data by factor over all cut-cells. | |
| static void | setCoveredValue (EBAMRCellData &a_lhs, const EBAMRCellData &a_coveredMask, const int a_comp, const Real a_value) |
| Set value in covered cells. Does specified component. | |
| static void | setCoveredValue (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_coveredMask, const int a_comp, const Real a_value) |
| Set value in covered cells. Does specified component. | |
| static void | setCoveredValue (EBAMRCellData &a_lhs, const EBAMRCellData &a_coveredMask, const Real a_value) |
| Version of setCoveredValue which does all components. | |
| static void | setCoveredValue (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_coveredMask, const Real a_value) |
| Version of setCoveredValue which does all component. | |
| static void | setCoveredValue (EBAMRFluxData &a_lhs, const int a_comp, const Real a_value) noexcept |
| Set value on covered faces. | |
| static void | setCoveredValue (LevelData< EBFluxFAB > &a_lhs, const int a_comp, const Real a_value) noexcept |
| Set value on covered faces. | |
| static void | setCoveredValue (EBAMRFluxData &a_lhs, const Real a_value) noexcept |
| Set all covered face values. | |
| static void | setCoveredValue (LevelData< EBFluxFAB > &a_lhs, const Real a_value) noexcept |
| Set all covered face values. | |
| static void | setInvalidValue (EBAMRCellData &a_lhs, const Vector< int > &a_refRat, const Real a_value) |
| Set value in cells that are covered by a finer grid. | |
| static void | setValue (MFAMRCellData &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect &a_probLo, const Vector< Real > &a_dx, const int a_comp, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase0, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase1) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (LevelData< MFCellFAB > &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect a_probLo, const Real a_dx, const int a_comp, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase0, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase1) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (EBAMRCellData &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect &a_probLo, const Vector< Real > &a_dx, const int a_comp, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (LevelData< EBCellFAB > &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect a_probLo, const Real a_dx, const int a_comp, LayoutData< VoFIterator > &a_vofIter) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (EBAMRFluxData &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect &a_probLo, const Vector< Real > &a_dx, const int a_comp, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Polymorphic set value function using pre-built face iterators. | |
| static void | setValue (LevelData< EBFluxFAB > &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect a_probLo, const Real a_dx, const int a_comp, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) |
| Polymorphic set value function using pre-built face iterators. | |
| static void | setValue (EBAMRIVData &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect &a_probLo, const Vector< Real > &a_dx, const int a_comp, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (LevelData< BaseIVFAB< Real > > &a_lhs, const std::function< Real(const RealVect)> &a_function, const RealVect a_probLo, const Real a_dx, const int a_comp, LayoutData< VoFIterator > &a_vofIter) |
| Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function. | |
| static void | setValue (EBAMRCellData &a_lhs, const std::function< RealVect(const RealVect)> &a_function, const RealVect &a_probLo, const Vector< Real > &a_dx, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Polymorphic set value function. Assumes that a_lhs has SpaceDim components and sets all those components from the input function. | |
| static void | setValue (LevelData< EBCellFAB > &a_lhs, const std::function< RealVect(const RealVect)> &a_function, const RealVect a_probLo, const Real a_dx, LayoutData< VoFIterator > &a_vofIter) |
| Polymorphic set value function. Assumes that a_lhs has SpaceDim components and sets all those components from the input function. | |
| static void | setValue (EBAMRCellData &a_data, const Real &a_value) |
| Set value in data. | |
| static void | setValue (EBAMRCellData &a_lhs, const Real a_value, const int a_comp) |
| Set value in data with specified component. | |
| static void | setValue (LevelData< EBCellFAB > &a_lhs, const Real a_value, const int a_comp) |
| Set value in data with specified component. | |
| static void | setValue (LevelData< EBCellFAB > &a_lhs, const Real a_value) |
| Set value in data. | |
| static void | setValue (LevelData< EBFluxFAB > &a_lhs, const Real a_value) |
| Set value in data. | |
| static void | setValue (LevelData< BaseIVFAB< Real > > &a_lhs, const Real a_value) |
| Set value in data. | |
| static void | setValue (EBAMRFluxData &a_data, const Real &a_value) |
| Set value in data. | |
| static void | setValue (EBAMRIVData &a_data, const Real &a_value) |
| Set value in data. | |
| static void | setValue (MFAMRCellData &a_lhs, const Real &a_value) noexcept |
| Set value in data. | |
| static void | setValue (LevelData< MFCellFAB > &a_lhs, const Real &a_value) noexcept |
| Set value in data. | |
| static void | setValue (MFAMRFluxData &a_lhs, const Real &a_value) |
| Set value in data. | |
| static void | setValue (LevelData< MFFluxFAB > &a_lhs, const Real &a_value) |
| Set value in data. | |
| static void | setValue (MFAMRIVData &a_lhs, const Real &a_value) |
| Set value in data. | |
| static void | setValue (LevelData< MFBaseIVFAB > &a_lhs, const Real &a_value) |
| Set value in data. | |
| static void | setValue (EBAMRIFData &a_lhs, const Real a_value) |
| Set value in data. | |
| static void | setValue (LevelData< DomainFluxIFFAB > &a_lhs, const Real a_value) |
| Set value in data. | |
| static void | sum (Real &a_value) |
| Compute the sum of the input value. | |
| static void | squareRoot (EBAMRFluxData &a_lhs, Vector< RefCountedPtr< LayoutData< std::array< FaceIterator, SpaceDim > > > > &a_faceIter) |
| Compute the square root of the input data. | |
| static void | squareRoot (LevelData< EBFluxFAB > &a_lhs, LayoutData< std::array< FaceIterator, SpaceDim > > &a_faceIter) |
| Compute the square root of the input data. | |
| static void | squareRoot (MFAMRCellData &a_lhs, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase0, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIterPhase1) |
| Take the square root of the input data. | |
| static void | squareRoot (LevelData< MFCellFAB > &a_lhs, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase0, const RefCountedPtr< LayoutData< VoFIterator > > &a_vofIterPhase1) |
| Take the square root of the input data. | |
| static void | vectorLength (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs, const EBAMRCellData &a_notCovered, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components. | |
| static void | vectorLength (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const LevelData< EBCellFAB > &a_notCovered, LayoutData< VoFIterator > &a_vofIter) |
| Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components. | |
| static void | vectorLength (EBCellFAB &a_lhs, const EBCellFAB &a_rhs, const EBCellFAB &a_notCovered, const Box &box, VoFIterator &a_vofIter) |
| Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components. | |
| static void | vectorLength2 (EBAMRCellData &a_lhs, const EBAMRCellData &a_rhs, const EBAMRCellData &a_notCovered, const Vector< RefCountedPtr< LayoutData< VoFIterator > > > &a_vofIter) |
| Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components. | |
| static void | vectorLength2 (LevelData< EBCellFAB > &a_lhs, const LevelData< EBCellFAB > &a_rhs, const LevelData< EBCellFAB > &a_notCovered, LayoutData< VoFIterator > &a_vofIter) |
| Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components. | |
| static void | vectorLength2 (EBCellFAB &a_lhs, const EBCellFAB &a_rhs, const EBCellFAB &a_notCovered, const Box &box, VoFIterator &a_vofIter) |
| Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components. | |
| static void | computeMinValidBox (RealVect &a_lo, RealVect &a_hi, const RealVect &a_normal, const RealVect &a_centroid) |
| Compute the tightest possible valid box around a cut-cell volume. | |
| static bool | allCornersInsideEb (const Vector< RealVect > &a_corners, const RealVect &a_normal, const RealVect &a_centroid) |
| Check if all corners/points are inside an EB. | |
| static void | shiftCorners (Vector< RealVect > &a_corners, const RealVect &a_distance) |
| Shift points by a specified distance. | |
Agglomeration of useful data operations.
|
static |
Check if all corners/points are inside an EB.
| [in] | a_normal | EB face normal |
| [in] | a_centroid | EB centroid |
| [in] | a_corners | Corners |
|
static |
Routine which averages a cell-centered component to faces.
| [out] | a_faceData | Face data. |
| [in] | a_cellData | Cell data. |
| [in] | a_domains | AMR domains. |
| [in] | a_tanGhosts | Tangential ghost faces to fill. |
| [in] | a_faceInterval | Face variables. |
| [in] | a_cellInterval | Cell variables. |
| [in] | a_average | Averaging method. |
| [in] | a_faceIter | Pre-built face iterators (SurroundingNoBoundary with tangential ghosts) for each level. Use AmrMesh::getFaceIteratorWithTangentialGhosts when a_tanGhosts > 0. |
|
static |
Average all components of the cell-centered data to faces (arithmetic, no tangential ghost faces).
Convenience wrapper: calls the full overload with tanGhost=0, Interval(0,0), Average::Arithmetic. The face iterator should use FaceStop::SurroundingNoBoundary; domain boundary faces are fixed up separately by this function. Use AmrMesh::getFaceIteratorNoBoundary to obtain a suitable iterator.
| [out] | a_faceData | Face data. |
| [in] | a_cellData | Cell data. |
| [in] | a_domains | AMR domains. |
| [in] | a_faceIter | Pre-built face iterators (SurroundingNoBoundary) for each level. |
|
static |
Routine which averages a cell-centered component to faces.
| [out] | a_faceData | Face data. |
| [in] | a_cellData | Cell data. |
| [in] | a_domain | Problem domain. |
| [in] | a_tanGhosts | Tangential ghost faces to fill. |
| [in] | a_faceInterval | Face variables. |
| [in] | a_cellInterval | Cell variables. |
| [in] | a_average | Averaging method. |
| [in] | a_faceIter | Pre-built tangential-ghost face iterators. |
|
static |
Routine which computes the average of a cell-centered quantity on faces for the normal component only.
| [out] | a_faceData | Face data. Must have one component. |
| [in] | a_cellData | Cell data. Must have SpaceDim components. |
| [in] | a_domains | AMR domains. |
| [in] | a_tanGhosts | Tangential ghost faces. |
| [in] | a_faceIter | Pre-built tangential-ghost face iterators for each level. |
|
static |
Routine which computes the average of a cell-centered quantity on faces for the normal component only.
| [out] | a_faceData | Face data. Must have one component. |
| [in] | a_cellData | Cell data. Must have SpaceDim components. |
| [in] | a_domain | Problem domain. |
| [in] | a_tanGhosts | Tangential ghost faces. |
| [in] | a_faceIter | Pre-built tangential-ghost face iterators. |
|
static |
Average all components of face centered data to cell centers.
| [out] | a_cellData | Cell data. |
| [in] | a_faceData | Face data. |
| [in] | a_domains | AMR domains. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Average all components of face centered data to cell centers.
| [out] | a_cellData | Cell data. |
| [in] | a_fluxData | Face data. |
| [in] | a_domain | Problem domain. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
staticnoexcept |
Compute lhs = a * x + b * y.
| [out] | a_lhs | Result |
| [in] | a_x | First FAB |
| [in] | a_y | Second FAB |
| [in] | a_a | Scaling factor |
| [in] | a_b | Scaling factor |
|
staticnoexcept |
Compute a new value given the old cell value.
Useful for quickly calculating a cell value as e.g. exp(x) where the original data was only x
| [in,out] | a_data | Input data |
| [in] | a_func | Function for transforming the data |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
staticnoexcept |
Compute a new value given the old cell value.
Useful for quickly calculating a cell value as e.g. exp(x) where the original data was only x
| [in,out] | a_data | Input data |
| [in] | a_func | Function for transforming the data |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Compute the tightest possible valid box around a cut-cell volume.
| [out] | a_lo | Low corner |
| [out] | a_hi | High corner |
| [in] | a_normal | EB face normal |
| [in] | a_centroid | EB centroid |
|
static |
Copy data from one data holder to another.
| [out] | a_dst | Destination data holder |
| [in] | a_src | Source data holder |
|
static |
Copy data from one data holder to another. Allows specification of components.
| [out] | a_dst | Destination data holder |
| [in] | a_src | Source data holder |
| [out] | a_dstInterv | Destination data component |
| [in] | a_srcInterv | Source data components |
|
static |
Copy data from one data holder to another.
| [out] | a_dst | Destination data holder |
| [in] | a_src | Source data holder |
|
static |
Copy data from one data holder to another.
| [out] | a_dst | Destination data holder |
| [in] | a_src | Source data holder |
|
static |
Divide one data holder by another. Does specified components.
| [in,out] | a_lhs | Data to be divided |
| [in] | a_rhs | Divisor. |
| [in] | a_lhsComp | Destination data component |
| [in] | a_rhsComp | Source data component |
|
static |
Divide one data holder by another. Does specified components.
| [in,out] | a_lhs | Data to be divided |
| [in] | a_rhs | Divisor. |
| [in] | a_lhsComp | Destination data component |
| [in] | a_rhsComp | Source data component |
|
static |
Divide all components in a data holder by a scalar value.
| [in,out] | a_lhs | Data to be divided |
| [in] | a_rhs | Divisor. Must have exactly one component. |
|
static |
Divide all components in a data holder by a scalar value.
| [in,out] | a_lhs | Data to be divided |
| [in] | a_rhs | Divisor. Must have exactly one component. |
|
static |
Divide data. If the denominator is zero, set the value to a fallback option.
| [in,out] | a_numerator | Dividend |
| [in] | a_denominator | Divisor |
| [in] | a_fallback | Fallback data |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Divide data. If the denominator is zero, set the value to a fallback option.
| [in,out] | a_numerator | Dividend |
| [in] | a_denominator | Divisor |
| [in] | a_fallback | Fallback value in case denominator is zero. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Divide data. If the denominator is zero, set the value to a fallback option.
| [in,out] | a_numerator | Dividend |
| [in] | a_denominator | Divisor |
| [in] | a_fallback | Fallback data |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Divide data. If the denominator is zero, set the value to a fallback option.
| [in,out] | a_numerator | Dividend |
| [in] | a_denominator | Divisor |
| [in] | a_fallback | Fallback value in case denominator is zero. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Compute the cell-wise dot product between two data holders.
| [out] | a_result | Result. Holds the dot product in each cell. |
| [in] | a_data1 | First data holder. |
| [in] | a_data2 | Other data holder. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Compute the cell-wise dot product between two data holders.
| [out] | a_result | Result. Holds the dot product in each cell. |
| [in] | a_data1 | First data holder. |
| [in] | a_data2 | Other data holder. |
| [in] | a_box | Cell box. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells) for this patch. |
|
static |
Compute the cell-wise dot product between two data holders.
| [out] | a_result | Result. Holds the dot product in each cell. |
| [in] | a_data1 | First data holder. |
| [in] | a_data2 | Other data holder. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Compote the cell-wise dot product between two data holders.
This calls the single-phase dotProduct patch versions with EBCellFABs on each phase.
| [out] | a_result | Result. Holds the dot product in each cell. |
| [in] | a_data1 | First data holder. |
| [in] | a_data2 | Other data holder. |
|
static |
Compote the cell-wise dot product between two data holders.
| [out] | a_result | Result. Holds the dot product in each cell. |
| [in] | a_data1 | First data holder. |
| [in] | a_data2 | Other data holder. |
|
staticnoexcept |
Apply a convolved filter phi = alpha * phi_i + 0.5*(1-alpha) * [phi_(i+s) + phi_(i-s)] in each direction.
Ghost cells and coarsening must be done before entering this routine
| [in,out] | a_data | Data to be filtered. |
| [in] | a_alpha | Filter factor |
| [in] | a_stride | Cell stride s |
| [in] | a_zeroEB | Set value in covered cells to zero or not |
|
staticnoexcept |
Apply a convolved filter phi = alpha * phi_i + 0.5*(1-alpha) * [phi_(i+s) + phi_(i-s)] in each direction.
Ghost cells must be updated before entering this routine.
| [in,out] | a_data | Data to be filtered. |
| [in] | a_alpha | Filter factor |
| [in] | a_stride | Cell stride s |
| [in] | a_zeroEB | Set value in covered cells to zero or not |
|
static |
Floor values in data holder. This sets all values below a_value to a_value.
| [in,out] | a_lhs | Data to be floored. |
| [in] | a_value | Floor value. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells, including ghost region) for each level. |
|
static |
Floor values in data holder. This sets all values below a_value to a_value.
| [in,out] | a_lhs | Data to be floored. |
| [in] | a_value | Floor value. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Floor values in data holder. This sets all values below a_value to a_value.
| [in,out] | a_lhs | Data to be floored. |
| [in] | a_value | Floor value. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
static |
Floor values in data holder. This sets all values below a_value to a_value.
| [in,out] | a_lhs | Data to be floored. |
| [in] | a_value | Floor value. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells, including ghost region). |
|
staticnoexcept |
Get maximum and minimum value of specified component.
| [out] | a_max | Maximum value |
| [out] | a_min | Minimum value |
| [in] | a_data | Face-centered data |
| [in] | a_comp | Component |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces) for each level. Obtain via AmrMesh::getFaceIterator. |
|
static |
Get maximum and minimum value of specified component.
| [out] | a_max | Maximum value. |
| [out] | a_min | Minimum value. |
| [in] | a_data | Cell-centered data. |
| [in] | a_comp | Component. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
staticnoexcept |
Get maximum and minimum value of specified component.
| [out] | a_max | Maximum value |
| [out] | a_min | Minimum value |
| [in] | a_data | Face-centered data |
| [in] | a_comp | Component |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces). Obtain via AmrMesh::getFaceIterator. |
|
static |
Get maximum and minimum value of specified component.
| [out] | max | Maximum value. |
| [out] | min | Minimum value. |
| [in] | a_data | Cell-centered data. |
| [in] | a_comp | Component. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Get maximum and minimum value. Assumes single-component data.
| [out] | a_max | Maximum value |
| [out] | a_min | Minimum value |
| [in] | a_data | Cell-centered data |
|
static |
Get maximum and minimum value of normed data.
| [out] | a_max | Maximum value. |
| [out] | a_min | Minimum value. |
| [in] | data | Data. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Get maximum and minimum value of normed data.
| [out] | a_max | Maximum value. |
| [out] | a_min | Minimum value. |
| [in] | a_data | Data. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Get maximum and minimum value of normed data.
| [out] | a_max | Maximum value. |
| [out] | a_min | Minimum value. |
| [in] | a_data | Data. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
static |
Get maximum and minimum value of normed data.
| [out] | a_max | Maximum value. |
| [out] | a_min | Minimum value. |
| [in] | data | Data. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
staticnoexcept |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Only adds irregular data from an EBAMRIVData. Ignores regular cells.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Only adds irregular data from an EBCellFAB to a BaseIVFAB. Ignores regular cells.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Builds VoF iterators internally from the lhs data's own IVS and EBGraph.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Builds VoF iterators internally from the lhs data's own IVS and EBGraph.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Only adds irregular data from an EBCellFAB to a BaseIVFAB. Ignores regular cells.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
Only adds irregular data from a BaseIVFAB. Ignores regular cells.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
staticnoexcept |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
staticnoexcept |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
staticnoexcept |
Function which increments data in the form a_lhs = a_lhs + a_rhs*a_scale for all components.
| [in,out] | a_lhs | Data to be incremented. |
| [in] | a_rhs | Incrementation. |
| [in] | a_scale | Scale factor. |
|
static |
Invert data.
| [in] | a_data | Data |
|
static |
Invert data using pre-built face iterators.
| [in,out] | a_data | Data |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces) for each level. Obtain via AmrMesh::getFaceIterator. |
|
static |
Invert data.
| [in] | a_data | Data |
|
static |
Invert data.
| [in,out] | a_data | Data |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces). Obtain via AmrMesh::getFaceIterator. |
|
staticnoexcept |
Scale data by volume fraction.
| [in,out] | a_data | Data to be scaled. On output we have a_data = kappa * a_data. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
staticnoexcept |
Scale data by volume fraction.
| [in,out] | a_data | Data to be scaled. On output we have a_data = kappa * a_data. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
staticnoexcept |
Scale data by volume fraction.
| [in,out] | a_data | Data to be scaled. On output we have a_data = kappa * a_data. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterator (all cut-cells) for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterator (all cut-cells) for phase 1 (solid). May be null if phase 1 is absent. |
|
staticnoexcept |
Scale data by volume fraction.
| [in,out] | a_data | Data to be scaled. On output we have a_data = kappa * a_data. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterators (all cut-cells) for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterators (all cut-cells) for phase 1 (solid). May be null if phase 1 is absent. |
|
static |
Compute the kappa-weighted sum of the input data. Assumes one component.
| [out] | a_mass | Total mass, computed as kappa * lhs. |
| [in] | a_lhs | Cell data. |
| [in] | a_regularMask | Regular-cell mask (1 in regular cells, 0 in covered/irregular cells). |
| [in] | a_comp | Component. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
static |
Make a_data = max(a_data1, a_data2).
| [out] | a_data | Output data. Will be max(a_data1, a_data2) in every cell. |
| [in] | a_data1 | Input data holder. |
| [in] | a_data2 | Input data holder. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Make a_data = max(a_data1, a_data2).
| [out] | a_data | Output data. Will be max(a_data1, a_data2) in every cell. |
| [in] | a_data1 | Input data holder. |
| [in] | a_data2 | Input data holder. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Multiply data holder by another data holder element-wise over all cut-cells.
| [in,out] | a_lhs | Data to be multiplied. |
| [in] | a_rhs | Multiplication factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Multiply data holder by another data holder element-wise over all cut-cells.
| [in,out] | a_lhs | Data to be multiplied. |
| [in] | a_rhs | Multiplication factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Multiply all components of a_lhs by the single component of a_rhs over all cut-cells.
| [in,out] | a_lhs | Data to be multiplied. |
| [in] | a_rhs | Scalar multiplication factor (must have one component). |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Multiply all components of a_lhs by the single component of a_rhs over all cut-cells.
| [in,out] | a_lhs | Data to be multiplied. |
| [in] | a_rhs | Scalar multiplication factor (must have one component). |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
static |
Multiply data holder by another data holder.
| [in,out] | a_lhs | Data to be multiplied |
| [in] | a_rhs | Multiplication factor |
|
static |
Compute specified norm of data.
| [in] | a_data | Data to compute the norm of. |
| [in] | a_regularMask | Regular-cell mask (1 in regular cells, 0 in covered/irregular cells). |
| [in] | a_p | Norm factor, e.g. a_p = 2 => squared norm. 0 => inf norm. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
| [in] | a_comp | Component. |
|
static |
General addition operator for adding together data. The user can choose which components to add.
| [in,out] | a_lhs | Output data component |
| [in,out] | a_rhs | Data to be added to a_lhs |
| [in] | a_srcComp | Component in a_rhs to add from. |
| [in] | a_dstComp | Component in a_lhs to add into. |
| [in] | a_numComp | Number of components to add. |
|
static |
General addition operator for adding together data. The user can choose which components to add.
| [in,out] | a_lhs | Output data component |
| [in,out] | a_rhs | Data to be added to a_lhs |
| [in] | a_srcComp | Component in a_rhs to add from. |
| [in] | a_dstComp | Component in a_lhs to add into. |
| [in] | a_numComp | Number of components to add. |
|
static |
Roof values in data holder. This sets all values above a_value to a_value.
| [in,out] | a_lhs | Data to be roofed. |
| [in] | a_value | Roof value. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells, including ghost region) for each level. |
|
static |
Roof values in data holder. This sets all values above a_value to a_value.
| [in,out] | a_lhs | Data to be roofed. |
| [in] | a_value | Roof value. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Roof values in data holder. This sets all values above a_value to a_value.
| [in,out] | a_lhs | Data to be roofed. |
| [in] | a_value | Roof value. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
static |
Roof values in data holder. This sets all values above a_value to a_value.
| [in,out] | a_lhs | Data to be roofed. |
| [in] | a_value | Roof value. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells, including ghost region). |
|
staticnoexcept |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Scale data by factor over all cut-cells.
| [in,out] | a_lhs | Data to be scaled. |
| [in] | a_scale | Scaling factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Scale data by factor over all cut-cells.
| [in,out] | a_lhs | Data to be scaled. |
| [in] | a_scale | Scaling factor. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each grid box. |
|
staticnoexcept |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
staticnoexcept |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
staticnoexcept |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Scale data by factor.
| [in,out] | a_lhs | Data to be scaled |
| [in] | a_scale | Scaling factor |
|
static |
Set value in covered cells. Does specified component.
| [in,out] | a_lhs | Input/output data. |
| [in] | a_coveredMask | Covered-cell mask (1 in covered cells, 0 elsewhere). |
| [in] | a_comp | Component to set |
| [in] | a_value | Value to set |
|
static |
Version of setCoveredValue which does all components.
| [in,out] | a_lhs | Data |
| [in] | a_coveredMask | Covered-cell mask (1 in covered cells, 0 elsewhere). |
| [in] | a_value | Value in covered grid cells. |
|
staticnoexcept |
Set value on covered faces.
| [in,out] | a_lhs | Input/output data. |
| [in] | a_comp | Component to set |
| [in] | a_value | Value to set |
|
staticnoexcept |
Set all covered face values.
| [in,out] | a_lhs | Data |
| [in] | a_value | Value in covered grid cells. |
|
static |
Set value in covered cells. Does specified component.
| [in,out] | a_lhs | Input/output data. |
| [in] | a_coveredMask | Covered-cell mask (1 in covered cells, 0 elsewhere). |
| [in] | a_comp | Component to set |
| [in] | a_value | Value to set |
|
static |
Version of setCoveredValue which does all component.
| [in,out] | a_lhs | Data |
| [in] | a_coveredMask | Covered-cell mask (1 in covered cells, 0 elsewhere). |
| [in] | a_value | Value in covered grid cells. |
|
staticnoexcept |
Set value on covered faces.
| [in,out] | a_lhs | Input/output data. |
| [in] | a_comp | Component to set |
| [in] | a_value | Value to set |
|
staticnoexcept |
Set all covered face values.
| [in,out] | a_lhs | Data |
| [in] | a_value | Value in covered grid cells. |
|
static |
Set value in cells that are covered by a finer grid.
| [in,out] | a_lhs | AMR data |
| [in] | a_refRat | Refinement ratios between levels. |
| [in] | a_value | Value to set in cells covered by a finer grid. |
|
static |
Set value in data.
| [out] | a_data | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in data with specified component.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
| [in] | a_comp | Description |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Polymorphic set value function. Assumes that a_lhs has SpaceDim components and sets all those components from the input function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Set value in data.
| [out] | a_data | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function using pre-built face iterators.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_comp | Component to set. |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces) for each level. Obtain via AmrMesh::getFaceIterator. |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in data.
| [out] | a_data | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIter | Pre-built VoF iterators (all cut-cells) for each level. |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolution. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIter | Pre-built VoF iterator (all cut-cells). |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in data with specified component.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
| [in] | a_comp | Description |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Polymorphic set value function. Assumes that a_lhs has SpaceDim components and sets all those components from the input function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function using pre-built face iterators.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolution. |
| [in] | a_comp | Component to set. |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces). Obtain via AmrMesh::getFaceIterator. |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
staticnoexcept |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolution. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterator (all cut-cells) for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterator (all cut-cells) for phase 1 (solid). May be null if phase 1 is absent. |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in an MFInterfaceFAB data holder.
| [in] | a_lhs | Data holder |
| [in] | a_value | Value to set |
|
staticnoexcept |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Polymorphic set value function. Takes a spatially varying function and sets the value in the specified component from that function.
| [out] | a_lhs | Data to set. |
| [in] | a_function | Function to use for setting the value. |
| [in] | a_probLo | Lower-left corner of physical domain. |
| [in] | a_dx | Grid resolutions. |
| [in] | a_comp | Component to set. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterators (all cut-cells) for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterators (all cut-cells) for phase 1 (solid). May be null if phase 1 is absent. |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Set value in data.
| [out] | a_lhs | Input/output data |
| [in] | a_value | Value to set |
|
static |
Sign function. Returns +/- if the value is > 0 or < 0.
| [in] | a_value | Value to evaluate. |
|
static |
Shift points by a specified distance.
On output, every point in a_corners is shifted by a_distance.
| [in,out] | a_corners | Points to be shifted |
| [in] | a_distance | Shift vector |
|
static |
Compute the square root of the input data.
| [in,out] | a_lhs | On output, contains sqrt(a_lhs). |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces) for each level. Obtain via AmrMesh::getFaceIterator. |
|
static |
Compute the square root of the input data.
| [in,out] | a_lhs | On output, contains sqrt(a_lhs). |
| [in] | a_faceIter | Pre-built face iterators with FaceStop::SurroundingWithBoundary over all cut-cell faces (including domain-boundary faces). Obtain via AmrMesh::getFaceIterator. |
|
static |
Take the square root of the input data.
| [in,out] | a_lhs | Input data. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterator restricted to multiply-cut cells for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterator restricted to multiply-cut cells for phase 1 (solid). May be null if phase 1 is absent. |
|
static |
Take the square root of the input data.
| [in,out] | a_lhs | Input data. |
| [in] | a_vofIterPhase0 | Pre-built VoF iterators restricted to multiply-cut cells for phase 0 (gas). May be null if phase 0 is absent. |
| [in] | a_vofIterPhase1 | Pre-built VoF iterators restricted to multiply-cut cells for phase 1 (solid). May be null if phase 1 is absent. |
|
static |
Compute the sum of the input value.
| [in,out] | a_value | On output, contains the sum of a_value over all MPI processes. |
|
static |
Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | box | Cell box. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells) for this patch. |
|
static |
Compute the vector length of a data holder. Sets a_lhs = |a_rhs| where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | a_vofIter | Pre-built VoF iterators (multiply-cut cells) for each level. |
|
static |
Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | box | Cell box. |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells) for this patch. |
|
static |
Compute the squared vector length of a data holder. Sets a_lhs = |a_rhs|^2 where a_rhs contains SpaceDim components.
| [out] | a_lhs | Vector length. |
| [in] | a_rhs | Input vector. |
| [in] | a_notCovered | Non-covered mask (1 in regular/irregular cells, 0 in covered cells). |
| [in] | a_vofIter | Pre-built VoF iterator (multiply-cut cells). |
|
static |
Scale data by dx^SpaceDim.
| [in,out] | a_data | Data to be scaled. On output we have a_data = dx^SpaceDim * a_data |
| [in] | a_dx | Description |