setting up initial conditions... loop: 0 ----------------- calculating advection terms... ----------------- solving for viscosity terms... convergence reached after 651 iterations convergence reached after 1 iterations convergence reached after 1 iterations ----------------- solving for pressure... level: 0 n_dof: 4096 fd_matrix_sparse create finite difference matrix create load vector pre-smoothing 10 times convergence reached after 10 iterations restriction level: 1 n_dof: 512 fd_matrix_sparse create finite difference matrix pre-smoothing 10 times convergence reached after 10 iterations restriction level: 2 n_dof: 64 create finite difference matrix convergence reached after 1058 iterations post-smoothing 1000000000 times on level 1 convergence reached after 11477 iterations post-smoothing 1000000000 times on level 0 convergence reached after 131071 iterations advection time: 0.00590048 viscosity time: 0.416704 pressure time: 46.2537 total time: 47.3741 with 4 threads 2) 自由度计算公式 cuint n_dof = nx*ny*nz; |
说点什么...