Exemplo n.º 1
0
 def create_scheme(self):
     s = GasDScheme(
         fluids=['fluid'], solids=[], dim=dim, gamma=gamma,
         kernel_factor=kernel_factor, alpha1=alpha1, alpha2=alpha2,
         beta=beta, adaptive_h_scheme="gsph",
         update_alpha1=True, update_alpha2=True
     )
     s.configure_solver(dt=dt, tf=tf, adaptive_timestep=False)
     return s
Exemplo n.º 2
0
 def create_scheme(self):
     s = GasDScheme(fluids=['fluid'],
                    solids=[],
                    dim=dim,
                    gamma=gamma,
                    kernel_factor=kernel_factor,
                    alpha1=alpha1,
                    alpha2=alpha2,
                    beta=beta)
     s.configure_solver(dt=dt, tf=tf, adaptive_timestep=False, pfreq=50)
     return s