All SPR error estimator functions.
More...
Functions |
apf::Field * | getGradIPField (apf::Field *f, const char *name, int order) |
| compute the gradient of a vector or scalar field at integration points
|
apf::Field * | recoverField (apf::Field *ip_field) |
| recover a nodal field using patch recovery
|
apf::Field * | getSPRSizeField (apf::Field *f, double adapt_ratio) |
| run the SPR ZZ error estimator
|
apf::Field * | getTargetSPRSizeField (apf::Field *f, size_t t, double alpha=0.25, double beta=2.0) |
| run the SPR ZZ error estimator with a target # of output elems
|
Detailed Description
All SPR error estimator functions.
Function Documentation
apf::Field* spr::getGradIPField |
( |
apf::Field * |
f, |
|
|
const char * |
name, |
|
|
int |
order | |
|
) |
| | |
compute the gradient of a vector or scalar field at integration points
- Parameters:
-
| f | (In) scalar or vector nodal field |
| name | (In) name of integration point field |
| order | (In) integration order of accuracy |
apf::Field* spr::getSPRSizeField |
( |
apf::Field * |
f, |
|
|
double |
adapt_ratio | |
|
) |
| | |
run the SPR ZZ error estimator
- Parameters:
-
| f | the integration-point input field |
| adapt_ratio | the fraction of allowable error, scales the output size field. |
- Returns:
- a scalar mesh size field defined at vertices
apf::Field* spr::getTargetSPRSizeField |
( |
apf::Field * |
f, |
|
|
size_t |
t, |
|
|
double |
alpha = 0.25 , |
|
|
double |
beta = 2.0 | |
|
) |
| | |
run the SPR ZZ error estimator with a target # of output elems
- Parameters:
-
| f | the integration-point input field |
| t | the target number of output elements after adaptation |
| alpha | floor on the size field; alpha < h_new/h_old < beta |
| beta | ceiling on the size field; alpha < h_new/h_old < beta |
- Returns:
- a scalar mesh size field at mesh vertices
apf::Field* spr::recoverField |
( |
apf::Field * |
ip_field |
) |
|
recover a nodal field using patch recovery
- Parameters:
-
| ip_field | (In) integration point field |