Lines Matching refs:N
21 PetscInt N = blasius->n_cheb; in CompressibleBlasiusResidual() local
30 Th = Tf + N; in CompressibleBlasiusResidual()
34 ChebyshevEval(N, Tf, -1., blasius->eta_max, f); in CompressibleBlasiusResidual()
39 ChebyshevEval(N, Tf, 1., blasius->eta_max, f); in CompressibleBlasiusResidual()
42 for (int i = 0; i < N - 3; i++) { in CompressibleBlasiusResidual()
43 ChebyshevEval(N, Tf, blasius->X[i], blasius->eta_max, f); in CompressibleBlasiusResidual()
44 ChebyshevEval(N - 1, Th, blasius->X[i], blasius->eta_max, h); in CompressibleBlasiusResidual()
56 …r[N + 2 + i] = (mu_rho_tilde[0] * h[2] + mu_rho_tilde[1] * h[1]) + Pr * f[0] * h[1] + Pr * (gamma … in CompressibleBlasiusResidual()
60 ChebyshevEval(N - 1, Th, -1., blasius->eta_max, h); in CompressibleBlasiusResidual()
61 r[N] = h[0] - blasius->T_wall / S_infty.Y.temperature; in CompressibleBlasiusResidual()
64 ChebyshevEval(N - 1, Th, 1., blasius->eta_max, h); in CompressibleBlasiusResidual()
65 r[N + 1] = h[0] - 1.; in CompressibleBlasiusResidual()
77 PetscInt N = blasius->n_cheb; in ComputeChebyshevCoefficients() local
83 PetscCall(PetscMalloc2(N - 3, &blasius->X, N - 3, &w)); in ComputeChebyshevCoefficients()
84 PetscCall(PetscDTGaussQuadrature(N - 3, -1., 1., blasius->X, w)); in ComputeChebyshevCoefficients()
89 PetscCall(VecSetSizes(sol, PETSC_DECIDE, 2 * N - 1)); in ComputeChebyshevCoefficients()
92 PetscCall(VecSetValue(sol, N, 1., INSERT_VALUES)); in ComputeChebyshevCoefficients()
103 for (int i = 0; i < N; i++) blasius->Tf_cheb[i] = cheb_coefs[i]; in ComputeChebyshevCoefficients()
104 for (int i = 0; i < N - 1; i++) blasius->Th_cheb[i] = cheb_coefs[i + N]; in ComputeChebyshevCoefficients()
154 PetscInt N = 20; // Number of Chebyshev terms in NS_BLASIUS() local
169 PetscCall(PetscOptionsInt("-n_chebyshev", "Number of Chebyshev terms", NULL, N, &N, NULL)); in NS_BLASIUS()
170 …scCheck(3 <= N && N <= BLASIUS_MAX_N_CHEBYSHEV, comm, PETSC_ERR_ARG_OUTOFRANGE, "-n_chebyshev %" P… in NS_BLASIUS()
197 blasius_ctx->n_cheb = N; in NS_BLASIUS()