def create_solver(self): kernel = CubicSpline(dim=2) integrator = SWEIntegrator(fluid=SWEStep()) dt = 1e-4 tf = 1e-4 solver = Solver(kernel=kernel, dim=2, integrator=integrator, dt=dt, tf=tf) return solver
def create_solver(self): kernel = CubicSpline(dim=1) integrator = SWEIntegrator(fluid=SWEStep()) tf = 10 solver = Solver(kernel=kernel, dim=1, integrator=integrator, cfl=0.3, adaptive_timestep=True, tf=tf) return solver
def create_solver(self): kernel = CubicSpline(dim=2) integrator = SWEIntegrator(fluid=SWEStep()) tf = 1.0 solver = Solver(kernel=kernel, dim=2, integrator=integrator, cfl=0.3, adaptive_timestep=True, output_at_times=(0.1, 0.2, 0.3), tf=tf) return solver
def create_solver(self): kernel = CubicSpline(dim=1) integrator = SWEIntegrator(fluid=SWEStep()) tf = 60 solver = Solver(kernel=kernel, dim=1, integrator=integrator, cfl=0.3, adaptive_timestep=True, output_at_times=[10, 20, 30, 40, 50, 60], tf=tf) return solver
def create_solver(self): kernel = CubicSpline(dim=2) integrator = SWEIntegrator(inlet=SWEInletOutletStep(), fluid=SWEStep()) tf = 22.51 solver = Solver(kernel=kernel, dim=2, integrator=integrator, cfl=0.4, adaptive_timestep=True, output_at_times=(10, 12, 14, 15, 16, 17, 18, 20), tf=tf) return solver
def create_solver(self): kernel = CubicSpline(dim=2) integrator = SWEIntegrator(fluid=SWEStep()) tf = (2*pi) / self.omega solver = Solver( kernel=kernel, dim=2, integrator=integrator, cfl=0.3, adaptive_timestep=True, output_at_times=[0.015*tf, 0.505*tf, 0.980*tf], tf=tf ) return solver
def create_solver(self): self.iom = self._create_inlet_outlet_manager() kernel = CubicSpline(dim=2) integrator = SWEIntegrator(inlet=InletStep(), fluid=SWEStep(), outlet=OutletStep()) tf = 100 solver = Solver(kernel=kernel, dim=2, integrator=integrator, cfl=0.1, adaptive_timestep=True, tf=tf) return solver