Lines Matching refs:cell
82 PetscInt cell, cStart, cEnd; in FormInitialSolution() local
92 for (cell = cStart; cell < cEnd; cell++) { in FormInitialSolution()
93 PetscCall(DMPlexComputeCellGeometryFVM(da, cell, &cellvol, centroid, normal)); in FormInitialSolution()
95 if (centroid[1] > 0.9 && centroid[1] < 0.95) u[cell] = 2.0; in FormInitialSolution()
96 } else u[cell] = 0; in FormInitialSolution()
149 PetscInt cell, cStart, cEnd, nC; in FormFunction() local
197 for (cell = cStart; cell < cEnd; cell++) { in FormFunction()
199 PetscCall(DMPlexGetConeSize(da, cell, &nF)); in FormFunction()
200 PetscCall(DMPlexGetCone(da, cell, &cellcone)); in FormFunction()
247 …flux_centre = x[cell] * ((u_plus - u_minus + 2 * user->diffusion * delta_y) / delta_x + (v_plus - … in FormFunction()
251 f[cell] = -(flux_centre + flux_east + flux_west + flux_north + flux_south); in FormFunction()