viscid.calculator.ecfc module

Edge and face centered tools

viscid.calculator.ecfc.make_ecfc_field_leading(fc, trim_leading=True)[source]

Standardize staggering on edge / face centered fields

viscid.calculator.ecfc.fc2cc(fc, force_numpy=False, bnd=True)[source]

Average a face centered field to cell centers

viscid.calculator.ecfc.ec2cc(ec, force_numpy=False, bnd=True)[source]

Average an edge centered field to cell centers

viscid.calculator.ecfc.div_fc(fc, force_numpy=False, bnd=True)[source]

Calculate cell centered divergence of face centered field