Esempio n. 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
Esempio n. 2
0
 def __init__(self, options):
     SolverBase.__init__(self, options)
Esempio n. 3
0
 def __init__(self, options):
     SolverBase.__init__(self, options)
     try:
         self.stabilize = options['stabilize']
     except:
         self.stabilize = True
Esempio n. 4
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.steady_state = True
        self.eta = Constant(1.)
Esempio n. 5
0
    def __init__(self, options):

        SolverBase.__init__(self, options)

        self.vizRho = None
        self.rhofile = None
Esempio n. 6
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.steady_state = True
Esempio n. 7
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        self.eta = Constant(1.)
Esempio n. 8
0
    def __init__(self, options):
        SolverBase.__init__(self, options)

        # Parameters
        self.vizH = None