def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def foam_arch(self):
        if not self._foam_arch:
            self._foam_arch = OpenfoamOrgArch(self.spec, **self.config)
        return self._foam_arch