def _get_b2(self): # FIXME: FACE CENTERED try: # get from [b2x, b2y, b2z] (xdmf + h5 files) _bfc = self._assemble_vector("b2", _force_layout=self.force_vector_layout, pretty_name="B") _bfc = viscid.scale(self._bbnorm, _bfc) except KeyError: # get from [bx2, by2, bz2] (jrrle / fortbin files) _bfc = self._assemble_vector("b", _force_layout=self.force_vector_layout, pretty_name="B", suffix="2") return self._ecfc_vector_setmeta('Face', _bfc)
def _process_divB(self, fld): return viscid.scale(self._bbnorm, fld)