Home
last modified time | relevance | path

Searched refs:phys (Results 1 – 7 of 7) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex11.c146 Physics phys = (Physics)ctx; in PhysicsBoundary_Advect_Inflow() local
147 Physics_Advect *advect = (Physics_Advect *)phys->data; in PhysicsBoundary_Advect_Inflow()
161 …cScalar *xR, PetscInt numConstants, const PetscScalar constants[], PetscScalar *flux, Physics phys) in PhysicsRiemann_Advect() argument
163 Physics_Advect *advect = (Physics_Advect *)phys->data; in PhysicsRiemann_Advect()
213 Physics phys = (Physics)ctx; in PhysicsSolution_Advect() local
214 Physics_Advect *advect = (Physics_Advect *)phys->data; in PhysicsSolution_Advect()
252 Physics phys = (Physics)ctx; in PhysicsFunctional_Advect() local
253 Physics_Advect *advect = (Physics_Advect *)phys->data; in PhysicsFunctional_Advect()
257 PetscCall(PhysicsSolution_Advect(mod, time, x, yexact, phys)); in PhysicsFunctional_Advect()
263 static PetscErrorCode SetUpBC_Advect(DM dm, PetscDS prob, Physics phys) in SetUpBC_Advect() argument
[all …]
H A Dex11.h156 static PetscErrorCode SWFlux(Physics phys, const PetscReal *n, const SWNode *x, SWNode *f) in SWFlux() argument
158 Physics_SW *sw = (Physics_SW *)phys->data; in SWFlux()
170 …cScalar *xR, PetscInt numConstants, const PetscScalar constants[], PetscScalar *flux, Physics phys) in PhysicsRiemann_SW_Rusanov() argument
172 Physics_SW *sw = (Physics_SW *)phys->data; in PhysicsRiemann_SW_Rusanov()
205 ierr = SWFlux(phys, nn, uL, &fL.swnode); in PhysicsRiemann_SW_Rusanov()
211 ierr = SWFlux(phys, nn, uR, &fR.swnode); in PhysicsRiemann_SW_Rusanov()
233 struct _n_Physics phys; in PhysicsRiemann_SW_Rusanov_CEED() local
238 phys.data = (void *)sw; in PhysicsRiemann_SW_Rusanov_CEED()
254 PhysicsRiemann_SW_Rusanov(DIM, DIM + 1, NULL, n, qL, qR, 0, NULL, flux, &phys); in PhysicsRiemann_SW_Rusanov_CEED()
270 …cScalar *xR, PetscInt numConstants, const PetscScalar constants[], PetscScalar *flux, Physics phys) in PhysicsRiemann_SW_HLL() argument
[all …]
H A Dex9.c582 TrafficCtx *phys = (TrafficCtx *)vctx; in PhysicsRiemann_Traffic_LxF() local
583 PetscReal a = phys->a; in PhysicsRiemann_Traffic_LxF()
588 …flux[0] = 0.5 * (TrafficFlux(a, uL[0]) + TrafficFlux(a, uR[0])) - 0.5 * phys->lxf_speed * (uR[0]… in PhysicsRiemann_Traffic_LxF()
670 AcousticsCtx *phys = (AcousticsCtx *)vctx; in PhysicsCharacteristic_Acoustics() local
671 PetscReal z = phys->z, c = phys->c; in PhysicsCharacteristic_Acoustics()
687 static PetscErrorCode PhysicsSample_Acoustics_Initial(AcousticsCtx *phys, PetscInt initial, PetscRe… in PhysicsSample_Acoustics_Initial() argument
707 AcousticsCtx *phys = (AcousticsCtx *)vctx; in PhysicsSample_Acoustics() local
708 PetscReal c = phys->c; in PhysicsSample_Acoustics()
725 PetscCall(PhysicsSample_Acoustics_Initial(phys, initial, xmin, xmax, x0a, u0a)); in PhysicsSample_Acoustics()
726 PetscCall(PhysicsSample_Acoustics_Initial(phys, initial, xmin, xmax, x0b, u0b)); in PhysicsSample_Acoustics()
[all …]
/petsc/src/sys/classes/draw/impls/win32/
H A Dwin32draw.h16 POINT phys; member
H A Dwin32draw.c126 if (x_phys) *x_phys = current->MouseListHead->phys.x; in PetscDrawGetMouseButton_Win32()
127 if (y_phys) *y_phys = current->MouseListHead->phys.y; in PetscDrawGetMouseButton_Win32()
734 newnode->phys.x = mousepos.x; in MouseRecord_Win32()
735 newnode->phys.y = mousepos.y; in MouseRecord_Win32()
/petsc/src/ts/tutorials/multirate/
H A Dex4.c153 static inline void ShallowFlux(ShallowCtx *phys, const PetscScalar *u, PetscScalar *f) in ShallowFlux() argument
156 f[1] = PetscSqr(u[1]) / u[0] + 0.5 * phys->gravity * PetscSqr(u[0]); in ShallowFlux()
161 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Exact() local
162 PetscScalar g = phys->gravity, ustar[2], cL, cR, c, cstar; in PhysicsRiemann_Shallow_Exact()
212 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
217 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
220 ShallowFlux(phys, uL, flux); in PhysicsRiemann_Shallow_Exact()
223 ShallowFlux(phys, uR, flux); in PhysicsRiemann_Shallow_Exact()
227 ShallowFlux(phys, ustar, flux); in PhysicsRiemann_Shallow_Exact()
235 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Rusanov() local
[all …]
/petsc/doc/
H A Dpetsc.bib23893 primaryclass = {phys.optics},