Пример #1
0
    def __init__(self, options):
        SolverBase.__init__(self, options)
        try:
            linear = options['linear']
        except:
            linear = False
        try:
            inviscid = options['inviscid']
        except:
            inviscid = False

        # if we want a linear version then make a coefficient zero for the
        # terms which only occur in the non-linear from of SWE
        if (linear):
            self.NonLinear = 0
        else:
            self.NonLinear = 1

        if (inviscid):
            self.inviscid = 0
        else:
            self.inviscid = 1
Пример #2
0
 def __init__(self, options):
     SolverBase.__init__(self, options)
Пример #3
0
 def __init__(self, options):
     SolverBase.__init__(self, options)
     try:
         self.stabilize = options['stabilize']
     except:
         self.stabilize = True
Пример #4
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.steady_state = True
        self.eta = Constant(1.)
Пример #5
0
    def __init__(self, options):

        SolverBase.__init__(self, options)

        self.vizRho = None
        self.rhofile = None
Пример #6
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.steady_state = True
Пример #7
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.eta = Constant(1.)
Пример #8
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        # Parameters
        self.vizH = None