SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
spr Namespace Reference

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 More...
 
apf::Field * recoverField (apf::Field *ip_field)
 recover a nodal field using patch recovery More...
 
apf::Field * getSPRSizeField (apf::Field *f, double adapt_ratio)
 run the SPR ZZ error estimator More...
 
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 More...
 

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
fthe integration-point input field
adapt_ratiothe 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
fthe integration-point input field
tthe target number of output elements after adaptation
alphafloor on the size field; alpha < h_new/h_old < beta
betaceiling 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