Lines Matching refs:vdm

396 static PetscErrorCode CreateVelocityDM(DM sw, DM *vdm)  in CreateVelocityDM()  argument
414 *vdm = ctx->plex[0]; in CreateVelocityDM()
415 PetscCall(PetscObjectReference((PetscObject)*vdm)); in CreateVelocityDM()
417 PetscCall(PetscObjectSetName((PetscObject)*vdm, "velocity")); in CreateVelocityDM()
419 PetscCall(DMCreate(PETSC_COMM_SELF, vdm)); in CreateVelocityDM()
420 PetscCall(DMSetType(*vdm, DMPLEX)); in CreateVelocityDM()
421 PetscCall(DMPlexSetOptionsPrefix(*vdm, prefix)); in CreateVelocityDM()
422 PetscCall(DMSetFromOptions(*vdm)); in CreateVelocityDM()
423 PetscCall(PetscObjectSetName((PetscObject)*vdm, "velocity")); in CreateVelocityDM()
425 PetscCall(DMViewFromOptions(*vdm, NULL, "-dm_view")); in CreateVelocityDM()
427 PetscCall(DMGetDimension(*vdm, &dim)); in CreateVelocityDM()
428 PetscCall(DMPlexGetHeightStratum(*vdm, 0, &cStart, NULL)); in CreateVelocityDM()
429 PetscCall(DMPlexGetCellType(*vdm, cStart, &ct)); in CreateVelocityDM()
432 PetscCall(DMSetField(*vdm, 0, NULL, (PetscObject)fe)); in CreateVelocityDM()
433 PetscCall(DMCreateDS(*vdm)); in CreateVelocityDM()
455 DM xdm, vdm; in InitializeParticles_Centroid() local
481 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeParticles_Centroid()
482 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeParticles_Centroid()
517 PetscCall(DMGetBoundingBox(vdm, vmin, vmax)); in InitializeParticles_Centroid()
519 PetscCall(DMGetCoordinatesLocalSetUp(vdm)); in InitializeParticles_Centroid()
533 PetscCall(DMPlexComputeCellGeometryFVM(vdm, vc, &vvolume, vcentroid, NULL)); in InitializeParticles_Centroid()
579 DM xdm, vdm; in InitializeWeights() local
600 PetscCall(DMSwarmCellDMGetDM(celldm, &vdm)); in InitializeWeights()
601 PetscCall(DMPlexGetHeightStratum(vdm, 0, &vcStart, &vcEnd)); in InitializeWeights()
609 PetscCall(DMGetCoordinatesLocalSetUp(vdm)); in InitializeWeights()
651 PetscCall(DMPlexGetCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
672 PetscCall(DMPlexRestoreCellCoordinates(vdm, vc, &visDG, &vNc, &varray, &vcoords)); in InitializeWeights()
946 DM vdm; in CreateSwarm() local
948 PetscCall(CreateVelocityDM(*sw, &vdm)); in CreateSwarm()
949 PetscCall(DMSwarmCellDMCreate(vdm, 1, vfieldnames, 1, &fieldnames[1], &celldm)); in CreateSwarm()
952 PetscCall(DMDestroy(&vdm)); in CreateSwarm()