Home
last modified time | relevance | path

Searched refs:xy (Results 1 – 10 of 10) sorted by relevance

/petsc/src/dm/tutorials/
H A Dex4.c12 PetscErrorCode myfunction(PetscCtx ctx, PetscInt n, const PetscScalar *xy, PetscScalar *u) in myfunction() argument
18 u[2 * i] = xy[2 * i]; in myfunction()
19 u[2 * i + 1] = xy[2 * i + 1]; in myfunction()
26 Vec u, xy; in main() local
38 PetscCall(DMGetCoordinates(da, &xy)); in main()
44 PetscCall(PFApplyVec(pf, xy, u)); in main()
H A Dex25.c14 Vec xy, sxy; in main() local
31 PetscCall(DMGetCoordinates(da, &xy)); in main()
33 PetscCall(VecView(xy, 0)); in main()
46 PetscCall(VecScatterBegin(sf, xy, sxy, INSERT_VALUES, SCATTER_FORWARD)); in main()
47 PetscCall(VecScatterEnd(sf, xy, sxy, INSERT_VALUES, SCATTER_FORWARD)); in main()
/petsc/src/dm/tests/
H A Dex11.c12 PetscScalar ***xy, ***aglobal; in main() local
48 PetscCall(DMDAVecGetArrayDOFRead(dac, coors, &xy)); in main()
53 …for (i = xs; i < xs + m; i++) aglobal[j][i][k] = PetscSinScalar(2.0 * PETSC_PI * (k + 1) * xy[j][i… in main()
57 PetscCall(DMDAVecRestoreArrayDOFRead(dac, coors, &xy)); in main()
/petsc/src/binding/petsc4py/demo/legacy/dmplex/
H A Danisotropic_adaptation.py17 xy = (2*x - 1)*(2*y - 1)
18 ret = np.sin(50*xy)
19 if np.abs(xy) > 2*np.pi/50:
/petsc/src/dm/impls/da/
H A Dgr2.c17 const PetscScalar *xy, *v; member
33 const PetscScalar *xy, *v; in VecView_MPI_Draw_DA2d_Zoom() local
40 xy = zctx->xy; in VecView_MPI_Draw_DA2d_Zoom()
50 x1 = PetscRealPart(xy[2 * id]); in VecView_MPI_Draw_DA2d_Zoom()
51 y_1 = PetscRealPart(xy[2 * id + 1]); in VecView_MPI_Draw_DA2d_Zoom()
55 x2 = PetscRealPart(xy[2 * id]); in VecView_MPI_Draw_DA2d_Zoom()
56 y2 = PetscRealPart(xy[2 * id + 1]); in VecView_MPI_Draw_DA2d_Zoom()
60 x3 = PetscRealPart(xy[2 * id]); in VecView_MPI_Draw_DA2d_Zoom()
61 y3 = PetscRealPart(xy[2 * id + 1]); in VecView_MPI_Draw_DA2d_Zoom()
65 x4 = PetscRealPart(xy[2 * id]); in VecView_MPI_Draw_DA2d_Zoom()
[all …]
/petsc/src/snes/tutorials/
H A Dex27.c166 const PetscReal xy = xref * yref; in sensor_u() local
168 u[0] = PetscSinReal(50. * xy); in sensor_u()
169 if (PetscAbsReal(xy) > 2. * PETSC_PI / 50.) u[0] *= 0.01; in sensor_u()
179 const PetscReal xy = xref * yref; in sensor_q() local
181 u[0] = 50. * yref * PetscCosReal(50. * xy) * 2.0; in sensor_q()
182 u[1] = 50. * xref * PetscCosReal(50. * xy) * 2.0; in sensor_q()
183 if (PetscAbsReal(xy) > 2. * PETSC_PI / 50.) { in sensor_q()
207 const PetscReal xy = xref * yref; in f0_sensor_primal() local
209 f0[0] = -2500.0 * PetscSinReal(50. * xy) * (xref * xref + yref * yref) * 4.0; in f0_sensor_primal()
210 if (PetscAbsReal(xy) > 2. * PETSC_PI / 50.) f0[0] *= 0.01; in f0_sensor_primal()
[all …]
H A Dex12.c128 const PetscReal xy = (x[0] - 0.5) * (x[1] - 0.5); in cross_u_2d() local
130 *u = PetscSinReal(alpha * xy) * (alpha * PetscAbsReal(xy) < 2 * PETSC_PI ? 1 : 0.01); in cross_u_2d()
153 const PetscReal xy = (x[0] - 0.5) * (x[1] - 0.5); in f0_cross_u_2d() local
155 f0[0] = PetscSinReal(alpha * xy) * (alpha * PetscAbsReal(xy) < 2 * PETSC_PI ? 1 : 0.01); in f0_cross_u_2d()
/petsc/src/dm/impls/plex/tests/
H A Dex19.c26 const PetscReal xy = xref * yref; in sensor() local
29 u[0] = PetscSinReal(50. * xy); in sensor()
30 if (PetscAbsReal(xy) > 2. * PETSC_PI / 50.) u[0] *= 0.01; in sensor()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas751 (graphics/xy-plot ())
3756 (nist-table/dew-fullpathandname "Dew_PT.xy")
3757 (nist-table/dew-point-filename "Dew_PT.xy")
3758 (nist-table/bubble-fullpathandname "Bubble_PT.xy")
3759 (nist-table/bubble-point-filename "Bubble_PT.xy")
3992 (sat-temp/dew-points-filename "Dew_PT.xy")
3993 (sat-temp/bubble-points-filename "Bubble_PT.xy")
8857 (xy/bottom -1)
9692 (spe-diff-xy . 0)
/petsc/doc/tutorials/physics/
H A Dguide_to_stokes.md80 …rix} \quad \mathrm{or} \quad \begin{pmatrix} 2 x^2 + y^2 + z^2 \\ 2 x^2 - 2xy \\ 2 x^2 - 2xz \end{…