Lines Matching refs:phys
582 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()
737 AcousticsCtx *phys = (AcousticsCtx *)vctx; in PhysicsRiemann_Acoustics_Exact() local
738 PetscReal c = phys->c, z = phys->z; in PhysicsRiemann_Acoustics_Exact()
823 IsoGasCtx *phys = (IsoGasCtx *)vctx; in PhysicsRiemann_IsoGas_Roe() local
824 PetscReal c = phys->acoustic_speed; in PhysicsRiemann_IsoGas_Roe()
869 IsoGasCtx *phys = (IsoGasCtx *)vctx; in PhysicsRiemann_IsoGas_Exact() local
870 PetscReal c = phys->acoustic_speed; in PhysicsRiemann_IsoGas_Exact()
932 IsoGasCtx *phys = (IsoGasCtx *)vctx; in PhysicsRiemann_IsoGas_Rusanov() local
933 PetscScalar c = phys->acoustic_speed, fL[2], fR[2], s; in PhysicsRiemann_IsoGas_Rusanov()
951 IsoGasCtx *phys = (IsoGasCtx *)vctx; in PhysicsCharacteristic_IsoGas() local
952 PetscReal c = phys->acoustic_speed; in PhysicsCharacteristic_IsoGas()
1006 static inline void ShallowFlux(ShallowCtx *phys, const PetscScalar *u, PetscScalar *f) in ShallowFlux() argument
1009 f[1] = PetscSqr(u[1]) / u[0] + 0.5 * phys->gravity * PetscSqr(u[0]); in ShallowFlux()
1014 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Exact() local
1015 PetscScalar g = phys->gravity, ustar[2], cL, cR, c, cstar; in PhysicsRiemann_Shallow_Exact()
1065 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
1070 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
1073 ShallowFlux(phys, uL, flux); in PhysicsRiemann_Shallow_Exact()
1076 ShallowFlux(phys, uR, flux); in PhysicsRiemann_Shallow_Exact()
1080 ShallowFlux(phys, ustar, flux); in PhysicsRiemann_Shallow_Exact()
1088 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Rusanov() local
1089 PetscScalar g = phys->gravity, fL[2], fR[2], s; in PhysicsRiemann_Shallow_Rusanov()
1096 ShallowFlux(phys, uL, fL); in PhysicsRiemann_Shallow_Rusanov()
1097 ShallowFlux(phys, uR, fR); in PhysicsRiemann_Shallow_Rusanov()
1107 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsCharacteristic_Shallow() local
1111 c = PetscSqrtScalar(u[0] * phys->gravity); in PhysicsCharacteristic_Shallow()