29 #ifndef NEMOSYS_ORDEROFACCURACY_H_ 30 #define NEMOSYS_ORDEROFACCURACY_H_ 32 #include "nemosys_export.h" 57 std::vector<int> _arrayIDs,
58 std::string transferType =
"Consistent Interpolation",
59 double targetGCI = 1.1);
69 std::vector<std::vector<double>> computeOrderOfAccuracy();
77 std::vector<std::vector<double>> computeGCI_21();
85 std::vector<std::vector<double>> computeGCI_32();
96 std::vector<std::vector<double>> computeResolution(
double gciStar);
97 void computeRichardsonExtrapolation();
104 return orderOfAccuracy;
113 std::vector<std::vector<double>> checkAsymptoticRange();
121 void computeMeshWithResolution(
double gciStar,
const std::string &ofname);
123 std::vector<std::vector<double>> computeDiff(
124 meshBase *
mesh,
const std::vector<std::string> &newArrNames);
126 std::vector<std::vector<double>>
getDiffF2F1()
const {
return diffF2F1; }
133 const std::vector<int>
145 std::vector<std::vector<double>>
147 std::vector<std::vector<double>>
149 std::vector<std::vector<double>>
151 std::vector<std::vector<double>>
153 std::vector<std::vector<double>>
159 #endif // NEMOSYS_ORDEROFACCURACY_H_ std::vector< int > diffIDs
array ids for differences^2 in solutions between meshes
A brief description of meshBase.
The OrderOfAccuracy class computes the grid convergence index (GCI) given three successively refined ...
std::vector< std::vector< double > > diffF2F1
L2 norm of the difference in solution between f2 and f1.
const std::vector< int > arrayIDs
array ids for arrays to be considered in analysis
std::vector< std::string > f3ArrNames
std::vector< std::vector< double > > GCI_21
GCIs with respect to the finer mesh (f2)
std::vector< std::vector< double > > orderOfAccuracy
Order of accuracy (p) with respect to refinements f3-f2-f1.
std::shared_ptr< meshBase > mesh
std::vector< int > relEIDs
array ids for integral of solutions on the most refined mesh, used in computing relative discretizati...
std::vector< std::vector< double > > diffF3F2
L2 norm of the difference in solution between f3 and f2.
double r32
effective grid refinement ratios
std::vector< std::vector< double > > GCI_32
GCIs with respect to the coarse mesh (f3)
std::vector< std::vector< double > > getOrderOfAccuracy() const
Returns order of accuracy for each component of each field.
double getTargetGCI() const
std::vector< int > realDiffIDs
array ids for actual difference data
std::vector< std::vector< double > > getDiffF2F1() const