Opm::DGBasisInterface Class Referenceabstract Base class for Discontinuous Galerkin bases, intended for time-of-flight computations. More...
Inheritance diagram for Opm::DGBasisInterface:
Detailed DescriptionBase class for Discontinuous Galerkin bases, intended for time-of-flight computations. Constructor & Destructor Documentation◆ ~DGBasisInterface()
Virtual destructor. Member Function Documentation◆ addConstant()
Modify basis coefficients to add to the function value. A function f = sum_i c_i b_i is assumed, and we change it to (f + increment) by modifying the c_i. This is done without modifying its gradient.
Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ degree()
The polynomial degree of the basis functions. Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ dimensions()
The number of space dimensions. Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ eval()
Evaluate all basis functions associated with cell at x, writing to f_x. The array f_x must have size equal to numBasisFunc(). Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ evalFunc()
Evaluate function f = sum_i c_i b_i at the point x. Note that this function is not virtual, but implemented in terms of the virtual functions of the class.
◆ evalGrad()
Evaluate gradients of all basis functions associated with cell at x, writing to grad_f_x. The array grad_f_x must have size numBasisFunc() * dimensions(). The dimensions() components of the first basis function gradient come before the components of the second etc. Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ functionAverage()
Compute the average of the function f = sum_i c_i b_i.
Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ multiplyGradient()
Modify basis coefficients to change the function's slope. A function f = sum_i c_i b_i is assumed, and we change it to a function g with the property that grad g = factor * grad f by modifying the c_i. This is done without modifying the average, i.e. the integrals of g and f over the cell are the same.
Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. ◆ numBasisFunc()
The number of basis functions per cell. Implemented in Opm::DGBasisBoundedTotalDegree, and Opm::DGBasisMultilin. The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||