Home
last modified time | relevance | path

Searched refs:vol (Results 1 – 25 of 26) sorted by relevance

12

/petsc/src/dm/impls/plex/tests/output/
H A Dex36_0.out1 rank 0 c 0 centroid 0.0625,0.5,0.5 vol 0.125
2 rank 0 c 1 centroid 0.1875,0.5,0.5 vol 0.125
3 rank 0 c 2 centroid 0.3125,0.5,0.5 vol 0.125
4 rank 0 c 3 centroid 0.4375,0.5,0.5 vol 0.125
5 rank 1 c 0 centroid 0.4375,0.5,0.5 vol 0.125
6 rank 1 c 1 centroid 0.5625,0.5,0.5 vol 0.125
7 rank 1 c 2 centroid 0.6875,0.5,0.5 vol 0.125
8 rank 1 c 3 centroid 0.3125,0.5,0.5 vol 0.125
9 rank 1 c 4 centroid 0.8125,0.5,0.5 vol 0.125
10 rank 2 c 0 centroid 0.8125,0.5,0.5 vol 0.125
[all …]
/petsc/src/sys/classes/random/tutorials/
H A Dex2.c14 PetscReal *vol; member
37 PetscReal *vol, *St0, x, totalx; in main() local
66 PetscCall(PetscMalloc1(2 * n + 1, &hinfo.vol)); in main()
67 vol = hinfo.vol; in main()
68 St0 = hinfo.St0 = hinfo.vol + n; in main()
80 x += basketPayoff(vol, St0, n, r, dt, eps); in main()
88 PetscCall(PetscFree(vol)); in main()
113 PetscReal basketPayoff(PetscReal vol[], PetscReal St0[], PetscInt n, PetscReal r, PetscReal dt, Pet… in basketPayoff() argument
125 Stk[j] = mcVal(Stk[j], r, vol[j], dt, eps[pointcount++]); in basketPayoff()
130 exchangeVal(vol + j - 1, vol + maxk); in basketPayoff()
[all …]
/petsc/src/dm/impls/plex/
H A Dplexadapt.c11 PetscReal vol; in DMPlexLabelToVolumeConstraint() local
18 PetscCall(DMPlexComputeCellGeometryFVM(dm, c, &vol, NULL, NULL)); in DMPlexLabelToVolumeConstraint()
19 maxVolumes[c - cStart] = vol; in DMPlexLabelToVolumeConstraint()
45 maxVolumes[c - cStart] = vol / refRatio; in DMPlexLabelToVolumeConstraint()
47 maxVolumes[c - cStart] = vol; in DMPlexLabelToVolumeConstraint()
49 maxVolumes[c - cStart] = vol * refRatio; in DMPlexLabelToVolumeConstraint()
82 PetscReal e[3], vol; in DMPlexLabelToMetricConstraint() local
114 PetscCall(DMPlexComputeCellGeometryFVM(dm, c, &vol, NULL, NULL)); in DMPlexLabelToMetricConstraint()
121 metric[v * 4 + 0] += vol * coarseRatio * sol[0]; in DMPlexLabelToMetricConstraint()
122 metric[v * 4 + 1] += vol * coarseRatio * sol[1]; in DMPlexLabelToMetricConstraint()
[all …]
H A Dplexgeometry.c1602 PETSC_UNUSED static inline void Volume_Triangle_Internal(PetscReal *vol, PetscReal coords[]) in Volume_Triangle_Internal() argument
1623 *vol = 0.5 * detM; in Volume_Triangle_Internal()
1627 PETSC_UNUSED static inline void Volume_Tetrahedron_Internal(PetscReal *vol, PetscReal coords[]) in Volume_Tetrahedron_Internal() argument
1657 *vol = -onesixth * detM; in Volume_Tetrahedron_Internal()
1661 static inline void Volume_Tetrahedron_Origin_Internal(PetscReal *vol, PetscReal coords[]) in Volume_Tetrahedron_Origin_Internal() argument
1664 DMPlex_Det3D_Internal(vol, coords); in Volume_Tetrahedron_Origin_Internal()
1665 *vol *= -onesixth; in Volume_Tetrahedron_Origin_Internal()
2642 …puteGeometryFVM_0D_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid… in DMPlexComputeGeometryFVM_0D_Internal() argument
2682 if (vol) *vol = 1.0; in DMPlexComputeGeometryFVM_0D_Internal()
2687 …puteGeometryFVM_1D_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid… in DMPlexComputeGeometryFVM_1D_Internal() argument
[all …]
H A Dplexfem.c2202 PetscReal vol = 0.0; in DMPlexComputeClementInterpolant() local
2235 vol += wt; in DMPlexComputeClementInterpolant()
2241 volsum += vol; in DMPlexComputeClementInterpolant()
2335 PetscReal vol = 0.0; in DMPlexComputeGradientClementInterpolant() local
2370 vol += quadWeights[q * qNc] * fegeom.detJ[q]; in DMPlexComputeGradientClementInterpolant()
2379 volsum += vol; in DMPlexComputeGradientClementInterpolant()
4281 …d, Vec faceGeometry, Vec cellGeometry, PetscInt *Nface, PetscFVFaceGeom *fgeom[], PetscReal *vol[]) in DMPlexGetFaceGeometry() argument
4293 PetscAssertPointer(vol, 8); in DMPlexGetFaceGeometry()
4301 PetscCall(DMGetWorkArray(dm, numFaces * 2, MPIU_SCALAR, vol)); in DMPlexGetFaceGeometry()
4307 PetscReal *voll = *vol; in DMPlexGetFaceGeometry()
[all …]
H A Dplexcreate.c1457 DM boundary, vol; in DMPlexCreateBoxMesh_Simplex_Internal() local
1472 PetscCall(DMPlexGenerate(boundary, NULL, interpolate, &vol)); in DMPlexCreateBoxMesh_Simplex_Internal()
1473 PetscCall(DMGetLabel(vol, "marker", &bdlabel)); in DMPlexCreateBoxMesh_Simplex_Internal()
1474 if (bdlabel) PetscCall(DMPlexLabelComplete(vol, bdlabel)); in DMPlexCreateBoxMesh_Simplex_Internal()
1475 PetscCall(DMPlexCopy_Internal(dm, PETSC_TRUE, PETSC_FALSE, vol)); in DMPlexCreateBoxMesh_Simplex_Internal()
1476 PetscCall(DMPlexReplace_Internal(dm, &vol)); in DMPlexCreateBoxMesh_Simplex_Internal()
2050 DM bdm, vol; in DMPlexCreateWedgeBoxMesh_Internal() local
2061 …bdm, faces[2], upper[2] - lower[2], PETSC_TRUE, PETSC_FALSE, PETSC_FALSE, NULL, NULL, NULL, &vol)); in DMPlexCreateWedgeBoxMesh_Internal()
2064 PetscCall(DMPlexReplace_Internal(dm, &vol)); in DMPlexCreateWedgeBoxMesh_Internal()
2962 PetscReal vol, normal[3]; in DMPlexCreateHexCylinderMesh_Internal() local
[all …]
H A Dplex.c9652 PetscReal vol; in DMPlexCheckGeometry() local
9696 PetscCall(DMPlexComputeCellGeometryFVM(dm, c, &vol, NULL, NULL)); in DMPlexCheckGeometry()
9697vol >= -PETSC_SMALL && (vol > 0.0 || ignoreZeroVol), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Mesh c… in DMPlexCheckGeometry()
9698 PetscCall(PetscInfo(dm, "Cell %" PetscInt_FMT " FVM Volume %g\n", c, (double)vol)); in DMPlexCheckGeometry()
/petsc/src/dm/impls/plex/tests/
H A Dex33.c34 …al t, const PetscReal x[], PetscInt numConstants, const PetscScalar constants[], PetscScalar vol[]) in volume() argument
36 vol[0] = 1.; in volume()
64 PetscReal vol, tol = ctx->tol; in CheckVolume() local
69 vol = PetscRealPart(result); in CheckVolume()
71 PetscCall(PetscPrintf(PetscObjectComm((PetscObject)dm), "Volume: %g\n", (double)vol)); in CheckVolume()
72vol) <= tol, PetscObjectComm((PetscObject)dm), PETSC_ERR_PLIB, "Calculated volume %g != %g actual … in CheckVolume()
H A Dex32.c8 PetscReal vol; in CheckMesh() local
19 PetscCall(DMPlexComputeCellGeometryFVM(dm, c, &vol, NULL, NULL)); in CheckMesh()
20 …PetscCheck(vol > 0.0, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Mesh cell %" PetscInt_FMT " is invert… in CheckMesh()
H A Dex37.c32 double surface = 0., volume = 0., vol; in ComputeVolume() local
47 PetscCall(DMPlexComputeCellGeometryFVM(dm, p, &vol, NULL, NULL)); in ComputeVolume()
48 volume += vol; in ComputeVolume()
55 PetscCall(DMPlexComputeCellGeometryFVM(dm, p, &vol, NULL, NULL)); in ComputeVolume()
56 surface += vol; in ComputeVolume()
H A Dex8.c18 PetscReal *centroid, *normal, *vol; /* FVM data */ member
59 PetscCall(PetscMalloc1(numCells, &options->vol)); in ProcessOptions()
91 …PetscCall(PetscOptionsRealArray("-vol", "Input volume for each cell", "ex8.c", options->vol, &n, &… in ProcessOptions()
94 PetscCall(PetscFree(options->vol)); in ProcessOptions()
95 options->vol = NULL; in ProcessOptions()
178 PetscReal centroid[3], normal[3], vol; in CheckFVMGeometry() local
182 …PetscCall(DMPlexComputeCellGeometryFVM(dm, cell, volEx ? &vol : NULL, centroidEx ? centroid : NULL… in CheckFVMGeometry()
188vol) < tol, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cell %" PetscInt_FMT ", Invalid volume = %g != %g di… in CheckFVMGeometry()
640 PetscReal vol = user.vol ? user.vol[c] : 0.0; in main() local
642 …ell(user.dm, c + cStart, PETSC_FALSE, v0, J, invJ, detJ, centroid, normal, vol, NULL, NULL, NULL)); in main()
[all …]
/petsc/src/dm/impls/plex/tutorials/
H A Dex17.c8 double surface = 0., volume = 0., vol; in ComputeVolume() local
24 PetscCall(DMPlexComputeCellGeometryFVM(dm, p, &vol, NULL, NULL)); in ComputeVolume()
25 volume += vol; in ComputeVolume()
32 PetscCall(DMPlexComputeCellGeometryFVM(dm, p, &vol, NULL, NULL)); in ComputeVolume()
33 surface += vol; in ComputeVolume()
H A Dex18.c11 PetscReal vol, centroid[3], normal[3]; in surfArea() local
31 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
32 surfaceArea += vol; in surfArea()
42 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
43 surfaceArea += vol; in surfArea()
51 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
52 volume += vol; in surfArea()
H A Dex3f90.F9019 PetscReal :: vol = 0.
65 PetscCallA(DMPlexComputeCellGeometryFVM(dm, i, vol, pcentroid, pnormal, ierr))
66 …write (*, '(a, i2, a, f8.4, a, 3(f8.4, 1x))') 'cell: ', i, ' volume: ', vol, ' centroid: ', pcentr…
H A Dex19.c15 PetscReal vol, centroid[3], normal[3]; in surfArea() local
34 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
35 surfaceArea += vol; in surfArea()
45 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
46 surfaceArea += vol; in surfArea()
54 PetscCall(DMPlexComputeCellGeometryFVM(dm, ii, &vol, centroid, normal)); in surfArea()
55 volume += vol; in surfArea()
/petsc/share/petsc/datafiles/meshes/
H A Dgmsh-B3tet.geo63 vol[] = Volume "*";
64 srf[] = CombinedBoundary { Volume{vol[]}; };
65 Physical Volume (1) = {vol[]};
H A Dtestcase3D.cas1836 (dpm-to-vof/smooth-vol-vs-rad-interpol? #f)
1839 (dpm-to-vof/interpol-cycle-vol-extend-factor 1.5)
1840 (dpm-to-vof/interpol-cycle-interval-vol-frac 0.1)
1841 (dpm-to-vof/num-of-vol-vs-rad-interpol-bins 100)
1842 (dpm-to-vof/num-of-vol-vs-rad-interpol-rounds 8)
1979 (dpm/dpm-vof/static-pileup/instant-cell-vol-frac-use-factor 0.)
1980 (dpm/dpm-vof/static-pileup/high-ddpm-phase-vol-frac-limit 0.)
1981 (dpm/dpm-vof/static-pileup/halt-picle-above-vol-frac 0.88)
1982 (dpm/dpm-vof/static-pileup/holefiller/vol-frac-thrsh 0.6)
1983 (dpm/dpm-vof/static-pileup/frict-drag/vol-frac-onset 0.55)
[all …]
/petsc/src/dm/dt/dualspace/impls/simple/
H A Ddspacesimple.c81 PetscReal vol = 0.0; in PetscDualSpaceSimpleSetFunctional_Simple() local
83 for (p = 0; p < Nq; ++p) vol += weights[p * Nc + c]; in PetscDualSpaceSimpleSetFunctional_Simple()
84 for (p = 0; p < Nq; ++p) weights[p * Nc + c] /= (vol == 0.0 ? 1.0 : vol); in PetscDualSpaceSimpleSetFunctional_Simple()
/petsc/src/dm/field/impls/ds/
H A Ddmfieldds.c503 PetscReal vol = 0.; in DMFieldEvaluateFV_DS() local
507 vol += geom->detJ[i * Nq + k] * weights[k]; in DMFieldEvaluateFV_DS()
510 for (k = 0; k < Nc; k++) sB[i * Nc + k] /= vol; in DMFieldEvaluateFV_DS()
517 PetscReal vol = 0.; in DMFieldEvaluateFV_DS() local
521 vol += geom->detJ[i * Nq + k] * weights[k]; in DMFieldEvaluateFV_DS()
524 for (k = 0; k < Nc; k++) rB[i * Nc + k] /= vol; in DMFieldEvaluateFV_DS()
536 PetscReal vol = 0.; in DMFieldEvaluateFV_DS() local
540 vol += geom->detJ[i * Nq + k] * weights[k]; in DMFieldEvaluateFV_DS()
550 for (k = 0; k < Nc * dimC; k++) sD[i * Nc * dimC + k] /= vol; in DMFieldEvaluateFV_DS()
557 PetscReal vol = 0.; in DMFieldEvaluateFV_DS() local
[all …]
/petsc/src/dm/impls/swarm/tests/
H A Dex7.c222 PetscReal moments_0[3], moments_1[3], vol = 1; in go() local
269 for (i = 0, vol = 1; i < dim; i++) { in go()
272 vol *= (hi[i] - lo[i]); in go()
292 PetscCall(maxwellian(2, x, 1.0, vol / (PetscReal)Np_t[tid], &wp_t[tid][pp])); in go()
/petsc/src/snes/tutorials/network/power/
H A Dcase9.m9 % Transactions on, vol. 26, no. 1, pp. 12-19, Feb. 2011
/petsc/doc/tutorials/meshing/
H A Dguide_to_subsurface.md74 …r label value `v` using the command line argument `-volume_constraint_<v> <vol>`. The mesh is then…
/petsc/src/snes/tutorials/
H A Dex16.c463 PetscReal vol; in FormElementJacobian() local
489 InvertTensor(J, invJ, &vol); in FormElementJacobian()
490 scl = vol * wts[qi] * wts[qj] * wts[qk]; in FormElementJacobian()
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrcohesive.c1026 PetscReal normal[3], vol; in DMPlexTransformMapCoordinates_Cohesive() local
1028 PetscCall(DMPlexComputeCellGeometryFVM(dm, star[f], &vol, NULL, normal)); in DMPlexTransformMapCoordinates_Cohesive()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMPlex.pyx2311 cdef PetscReal vol = 0, centroid[3], normal[3]
2312 CHKERR(DMPlexComputeCellGeometryFVM(self.dm, ccell, &vol, centroid, normal))
2313 return (toReal(vol), array_r(cdim, centroid), array_r(cdim, normal))

12