Home
last modified time | relevance | path

Searched refs:phys_smoother (Results 1 – 2 of 2) sorted by relevance

/libCEED/examples/solids/problems/
H A Dmooney-rivlin.c33 Physics_MR phys, phys_smoother; in PhysicsSmootherContext_MR() local
49 PetscCall(PetscMalloc1(1, &phys_smoother)); in PhysicsSmootherContext_MR()
50 PetscCall(PetscMemcpy(phys_smoother, phys, sizeof(*phys))); in PhysicsSmootherContext_MR()
54phys_smoother->lambda = 2 * (phys_smoother->mu_1 + phys_smoother->mu_2) * nu_smoother / (1 - 2 * n… in PhysicsSmootherContext_MR()
55 …textSetData(*ctx_smoother, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(*phys_smoother), phys_smoother); in PhysicsSmootherContext_MR()
56 PetscCall(PetscFree(phys_smoother)); in PhysicsSmootherContext_MR()
H A Dneo-hookean.c33 Physics_NH phys, phys_smoother; in PhysicsSmootherContext_NH() local
46 PetscCall(PetscMalloc1(1, &phys_smoother)); in PhysicsSmootherContext_NH()
47 PetscCall(PetscMemcpy(phys_smoother, phys, sizeof(*phys))); in PhysicsSmootherContext_NH()
51 phys_smoother->nu = nu_smoother; in PhysicsSmootherContext_NH()
52 …textSetData(*ctx_smoother, CEED_MEM_HOST, CEED_COPY_VALUES, sizeof(*phys_smoother), phys_smoother); in PhysicsSmootherContext_NH()
53 PetscCall(PetscFree(phys_smoother)); in PhysicsSmootherContext_NH()