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

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

        SolverBase.__init__(self, options)

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

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

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

        # Parameters
        self.vizH = None