Home
last modified time | relevance | path

Searched refs:rad (Results 1 – 9 of 9) sorted by relevance

/petsc/src/snes/tutorials/ !
H A Dex56.c36 PetscReal trace, mu = s_mu, lambda = s_lambda, rad; in f1_u_3d_alpha() local
38 for (i = 0, rad = 0.; i < dim; i++) { in f1_u_3d_alpha()
40 rad += t * t; in f1_u_3d_alpha()
42 rad = PetscSqrtReal(rad); in f1_u_3d_alpha()
43 if (rad > 0.25) { in f1_u_3d_alpha()
128 PetscReal mu = s_mu, lambda = s_lambda, rad; in g3_uu_3d_alpha() local
130 for (i = 0, rad = 0.; i < dim; i++) { in g3_uu_3d_alpha()
132 rad += t * t; in g3_uu_3d_alpha()
134 rad = PetscSqrtReal(rad); in g3_uu_3d_alpha()
135 if (rad > 0.25) { in g3_uu_3d_alpha()
[all …]
H A Dex16.c78 PetscReal rad; member
119 user.rad = 100.0; in main()
128 PetscCall(PetscOptionsGetReal(NULL, NULL, "-rad", &user.rad, NULL)); in main()
885 PetscReal rad = user->rad + cy * user->height; in FormCoordinates() local
887 x[k][j][i][0] = rad * PetscSinReal(ang); in FormCoordinates()
888 …x[k][j][i][1] = rad * PetscCosReal(ang) - (user->rad + 0.5 * user->height) * PetscCosReal(-0.5 * u… in FormCoordinates()
/petsc/src/ts/tutorials/network/ !
H A DpipeInterface.c78 pipe->rad = pipe->D / 2; in PipeSetUp()
79 pipe->A = PETSC_PI * pipe->rad * pipe->rad; in PipeSetUp()
H A Dpipe.h40 PetscReal rad; member
/petsc/src/ts/tutorials/ !
H A Dex10.c194 …p_E = -1., tmp_T = 4. * rd->sigma_b * 4 * n->T * (PetscSqr(n->T)) / rd->c, rad = sigma_p * rd->c *… in RDRadiation() local
199 return rad; in RDRadiation()
330 PetscScalar Em_t, rad; in RDIFunction_FD() local
332 rad = (1. - Theta) * RDRadiation(rd, &x0[i], 0) + Theta * RDRadiation(rd, &x[i], 0); in RDIFunction_FD()
345 f[i].T = hx * (rho * Em_t + rad); in RDIFunction_FD()
370 f[i].E = hx * (xdot[i].E - diff - rad); in RDIFunction_FD()
651 PetscScalar Em_t, rad, D_R, D0_R; in RDIFunction_FE() local
657 rad = (1. - Theta) * RDRadiation(rd, &n0, 0) + Theta * RDRadiation(rd, &n, 0); in RDIFunction_FE()
671 …q] * ((1. - Theta) * D0_R * n0x.E + Theta * D_R * nx.E) + interp[q][j] * weight[q] * (nt.E - rad)); in RDIFunction_FE()
672 f[i + j].T += interp[q][j] * weight[q] * (rho * Em_t + rad); in RDIFunction_FE()
[all …]
/petsc/src/ksp/ksp/impls/qcg/ !
H A Dqcg.c22 PetscReal dsq, ptp, pts, rad, sts; in KSPQCGQuadraticRoots() local
29 rad = PetscSqrtReal((pts * pts) - ptp * (sts - dsq)); in KSPQCGQuadraticRoots()
31 *step2 = -(pts + rad) / ptp; in KSPQCGQuadraticRoots()
34 *step1 = -(pts - rad) / ptp; in KSPQCGQuadraticRoots()
/petsc/src/ts/utils/dmplexlandau/ !
H A Dplexland.c658 PetscReal rad = ctx->radius[grid]; in LandauDMCreateVMeshes() local
661 r = rad * PetscCosReal(theta); in LandauDMCreateVMeshes()
663 z = rad * PetscSinReal(theta); in LandauDMCreateVMeshes()
667 coords[j++][1] = -rad * ctx->sphere_inner_radius_90degree[grid]; in LandauDMCreateVMeshes()
668 coords[j][0] = rad * ctx->sphere_inner_radius_45degree[grid] * 0.707106781186548; in LandauDMCreateVMeshes()
669 coords[j++][1] = -rad * ctx->sphere_inner_radius_45degree[grid] * 0.707106781186548; in LandauDMCreateVMeshes()
670 coords[j][0] = rad * ctx->sphere_inner_radius_90degree[grid]; in LandauDMCreateVMeshes()
672 coords[j][0] = rad * ctx->sphere_inner_radius_45degree[grid] * 0.707106781186548; in LandauDMCreateVMeshes()
673 coords[j++][1] = rad * ctx->sphere_inner_radius_45degree[grid] * 0.707106781186548; in LandauDMCreateVMeshes()
675 coords[j++][1] = rad * ctx->sphere_inner_radius_90degree[grid]; in LandauDMCreateVMeshes()
[all …]
/petsc/share/petsc/datafiles/meshes/ !
H A Dtestcase3D.cas1836 (dpm-to-vof/smooth-vol-vs-rad-interpol? #f)
1841 (dpm-to-vof/num-of-vol-vs-rad-interpol-bins 100)
1842 (dpm-to-vof/num-of-vol-vs-rad-interpol-rounds 8)
5430 (rad/trans-n-iter 0)
5431 (rad/time-interval 1.)
5432 (rad/trans-method "time-step")
5433 (rad/porosity-based-scaling-rad-source? #f)
5434 (rad/wsggm-r150? #f)
5435 (rad/porosity-based-scaling? #f)
5436 (rad/enable-wsggm-cell-based? #f)
[all …]
/petsc/src/dm/impls/plex/ !
H A Dplexcreate.c3213 const PetscReal rad = 2. * PETSC_PI * v / numVerts; in DMPlexCreateSphereMesh_Internal() local
3215 coordsIn[v * embedDim + 0] = PetscCosReal(rad); in DMPlexCreateSphereMesh_Internal()
3216 coordsIn[v * embedDim + 1] = PetscSinReal(rad); in DMPlexCreateSphereMesh_Internal()