Lines Matching refs:phys
15 Physics_NH phys; in PhysicsContext_NH() local
20 PetscCall(PetscMalloc1(1, &phys)); in PhysicsContext_NH()
21 PetscCall(ProcessPhysics_NH(comm, phys, *units)); in PhysicsContext_NH()
23 CeedQFunctionContextSetData(*ctx, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(*phys), phys); in PhysicsContext_NH()
24 PetscCall(PetscFree(phys)); in PhysicsContext_NH()
33 Physics_NH phys, phys_smoother; in PhysicsSmootherContext_NH() local
45 CeedQFunctionContextGetData(ctx, CEED_MEM_HOST, &phys); in PhysicsSmootherContext_NH()
47 PetscCall(PetscMemcpy(phys_smoother, phys, sizeof(*phys))); in PhysicsSmootherContext_NH()
48 CeedQFunctionContextRestoreData(ctx, &phys); in PhysicsSmootherContext_NH()
62 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units) { in ProcessPhysics_NH() argument
65 phys->nu = 0; in ProcessPhysics_NH()
66 phys->E = 0; in ProcessPhysics_NH()
75 PetscCall(PetscOptionsScalar("-nu", "Poisson's ratio", NULL, phys->nu, &phys->nu, &nu_flag)); in ProcessPhysics_NH()
77 PetscCall(PetscOptionsScalar("-E", "Young's Modulus", NULL, phys->E, &phys->E, &Young_flag)); in ProcessPhysics_NH()
102 phys->E *= units->Pascal; in ProcessPhysics_NH()