Home
last modified time | relevance | path

Searched refs:hf (Results 1 – 8 of 8) sorted by relevance

/petsc/src/ts/tutorials/multirate/
H A Dex7.c173 PetscReal hf, hs, cfl_idt = 0; in FVRHSFunction() local
183 hf = (ctx->xmax - ctx->xmin) / 2.0 * (1.0 + 1.0 / ctx->hratio) / Mx; in FVRHSFunction()
223 alpha[0] = hs * hf / (hs + hs) / (hs + hs + hf); in FVRHSFunction()
224 gamma[0] = hs * (hs + hs) / (hs + hf) / (hs + hs + hf); in FVRHSFunction()
235 for (j = 0; j < dof; j++) f[i * dof + j] += ctx->flux[j] / hf; in FVRHSFunction()
239 alpha[0] = hf * hf / (hs + hf) / (hs + hf + hf); in FVRHSFunction()
240 gamma[0] = hf * (hs + hf) / (hf + hf) / (hs + hf + hf); in FVRHSFunction()
248 for (j = 0; j < dof; j++) f[(i - 1) * dof + j] -= ctx->flux[j] / hf; in FVRHSFunction()
251 for (j = 0; j < dof; j++) f[i * dof + j] += ctx->flux[j] / hf; in FVRHSFunction()
264 for (j = 0; j < dof; j++) f[(i - 1) * dof + j] -= ctx->flux[j] / hf; in FVRHSFunction()
[all …]
H A Dex6.c135 PetscReal hs, hf; in FVSample_2WaySplit() local
144 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fs - ctx->sf); in FVSample_2WaySplit()
156 xi = ctx->xmin + ctx->sf * hs + 0.5 * hf + (i - ctx->sf) * hf; in FVSample_2WaySplit()
160 xj = xi + hf * (j - N / 2) / (PetscReal)N; in FVSample_2WaySplit()
165 xi = ctx->xmin + ctx->sf * hs + (ctx->fs - ctx->sf) * hf + 0.5 * hs + (i - ctx->fs) * hs; in FVSample_2WaySplit()
185 PetscReal hs, hf; in SolutionErrorNorms_2WaySplit() local
192 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fs - ctx->sf); in SolutionErrorNorms_2WaySplit()
197 else *nrm1 += hf * PetscAbs(ptr_X[i] - ptr_Y[i]); in SolutionErrorNorms_2WaySplit()
881 const PetscReal hf = (ctx.xmax - ctx.xmin) / 4.0 / count_fast; in main() local
899 mass_initial = mass_initial + hf * ptr_X0[i * dof + k]; in main()
[all …]
H A Dex4.c479 PetscReal hs, hf; in FVSample_2WaySplit() local
488 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fs - ctx->sf); in FVSample_2WaySplit()
500 xi = ctx->xmin + ctx->sf * hs + 0.5 * hf + (i - ctx->sf) * hf; in FVSample_2WaySplit()
504 xj = xi + hf * (j - N / 2) / (PetscReal)N; in FVSample_2WaySplit()
509 xi = ctx->xmin + ctx->sf * hs + (ctx->fs - ctx->sf) * hf + 0.5 * hs + (i - ctx->fs) * hs; in FVSample_2WaySplit()
529 PetscReal hs, hf; in SolutionErrorNorms_2WaySplit() local
536 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fs - ctx->sf); in SolutionErrorNorms_2WaySplit()
541 else *nrm1 += hf * PetscAbs(ptr_X[i] - ptr_Y[i]); in SolutionErrorNorms_2WaySplit()
1324 const PetscReal hf = (ctx.xmax - ctx.xmin) / 4.0 / count_fast; in main() local
1342 mass_initial = mass_initial + hf * ptr_X0[i * dof + k]; in main()
[all …]
H A Dex8.c128 PetscReal hs, hm, hf; in FVSample_3WaySplit() local
139 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fm - ctx->mf); in FVSample_3WaySplit()
160 xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + 0.5 * hf + (i - ctx->mf) * hf; in FVSample_3WaySplit()
164 xj = xi + hf * (j - N / 2) / (PetscReal)N; in FVSample_3WaySplit()
169 …xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + (ctx->fm - ctx->mf) * hf + 0.5 * hm + (… in FVSample_3WaySplit()
178 …xi = ctx->xmin + ctx->sm * hs + (ctx->mf - ctx->sm) * hm + (ctx->fm - ctx->mf) * hf + (ctx->ms - c… in FVSample_3WaySplit()
198 PetscReal hs, hm, hf; in SolutionErrorNorms_3WaySplit() local
204 hf = (ctx->xmax - ctx->xmin) / 4.0 / (ctx->fm - ctx->mf); in SolutionErrorNorms_3WaySplit()
212 else *nrm1 += hf * PetscAbs(ptr_X[i] - ptr_Y[i]); in SolutionErrorNorms_3WaySplit()
1244 const PetscReal hf = (ctx.xmax - ctx.xmin) / 4.0 / count_fast; in main() local
[all …]
/petsc/src/snes/tutorials/network/water/
H A Dwaterfunctions.c6 PetscScalar Flow_Pipe(Pipe *pipe, PetscScalar hf, PetscScalar ht) in Flow_Pipe() argument
10 flow_pipe = PetscSign(hf - ht) * PetscPowScalar(PetscAbsScalar(hf - ht) / pipe->k, 1 / pipe->n); in Flow_Pipe()
14 PetscScalar Flow_Pump(Pump *pump, PetscScalar hf, PetscScalar ht) in Flow_Pump() argument
17 …flow_pump = PetscSign(hf - ht + pump->h0) * PetscPowScalar(PetscAbsScalar(hf - ht + pump->h0) / pu… in Flow_Pump()
25 PetscScalar *farr, hf, ht, flow; in FormFunction_Water() local
59 hf = xarr[offsetnode1]; in FormFunction_Water()
65 flow = Flow_Pipe(pipe, hf, ht); in FormFunction_Water()
68 flow = Flow_Pump(pump, hf, ht); in FormFunction_Water()
/petsc/lib/petsc/bin/maint/
H A Dexampleslog.py200 for hf in "sortByPkg sortByPerson sortByErrors".split():
201 htmlfiles.append(outprefix+branch+'-'+hf+".html")
/petsc/config/BuildSystem/config/
H A Dframework.py271 for hf in ['hashfile','hashfilepackages']:
272 if hasattr(self,'hash') and hasattr(self,hf):
273 self.logPrint('Attempting to save configure hash file: '+getattr(self,hf))
275 with open(getattr(self,hf), 'w') as f:
277 self.logPrint('Saved configure hash file: '+getattr(self,hf))
279 self.logPrint('Unable to save configure hash file: '+getattr(self,hf))
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas4682 (reacting-channel/urf-hf 0.1)