def setFlatProfile(self, dom, comp, v): """Set a flat profile for one component in one domain. dom -- domain object comp -- component name v -- value >>> s.setFlatProfile(d, 'u', -3.0) """ idom = dom.index() icomp = dom.componentIndex(comp) _cantera.sim1D_setFlatProfile(self._hndl, idom, icomp, v)
def setFlatProfile(self, dom, comp, v): """Set a flat profile for one component in one domain. :param dom: domain object :param comp: component name :param v: value >>> s.setFlatProfile(d, 'u', -3.0) """ idom = dom.index() icomp = dom.componentIndex(comp) _cantera.sim1D_setFlatProfile(self._hndl, idom, icomp, v)