Lines Matching refs:vw
336 Vec vx, vv, vw, vE; in MonitorParticles() local
339 PetscCall(VecCreateMPIWithArray(comm, 1, Np, PETSC_DECIDE, w, &vw)); in MonitorParticles()
344 PetscCall(VecView(vw, viewer)); in MonitorParticles()
349 PetscCall(VecDestroy(&vw)); in MonitorParticles()
645 PetscReal vw = 0.; in InitializeWeights() local
664 vw = 1.0; in InitializeWeights()
665 …for (PetscInt d = 0; d < dim; ++d) vw *= 0.5 * (PetscErfReal(vmax[d] / PetscSqrtReal(2.)) - PetscE… in InitializeWeights()
666 …l(vw), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Particle %" PetscInt_FMT " velocity weight is not no… in InitializeWeights()
669 weight[p] = totalWeight * vw * xw; in InitializeWeights()
671 …" weight exceeded 10: weight=%g, xw=%g, vw=%g, totalWeight=%g", p, weight[p], xw, vw, totalWeight); in InitializeWeights()
673 …scCall(PetscPrintf(comm, "particle %" PetscInt_FMT ": %g, vw: %g xw: %g\n", p, weight[p], vw, xw)); in InitializeWeights()