예제 #1
0
    def showSolution(self, fname='-'):
        """Show the current solution. If called with no argument,
        the solution is printed to the screen. If a filename is
        supplied, it is written to the file.

        >>> s.showSolution()
        >>> s.showSolution('soln.txt')
        """
        _cantera.sim1D_showSolution(self._hndl, fname)
예제 #2
0
파일: onedim.py 프로젝트: anujg1991/cantera
    def showSolution(self, fname='-'):
        """Show the current solution. If called with no argument,
        the solution is printed to the screen. If a filename is
        supplied, it is written to the file.

        >>> s.showSolution()
        >>> s.showSolution('soln.txt')
        """
        _cantera.sim1D_showSolution(self._hndl, fname)