1 // Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3 // 4 // SPDX-License-Identifier: BSD-2-Clause 5 // 6 // This file is part of CEED: http://github.com/ceed 7 8 #ifndef mooney_rivlin_h 9 #define mooney_rivlin_h 10 11 #include <petsc.h> 12 13 #include "../include/structs.h" 14 15 #ifndef PHYSICS_STRUCT_MR 16 #define PHYSICS_STRUCT_MR 17 typedef struct Physics_MR_ *Physics_MR; 18 struct Physics_MR_ { 19 // Material properties for MR 20 CeedScalar mu_1; 21 CeedScalar mu_2; 22 CeedScalar lambda; 23 }; 24 #endif // PHYSICS_STRUCT_MR 25 26 // Create context object 27 PetscErrorCode PhysicsContext_MR(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx); 28 PetscErrorCode PhysicsSmootherContext_MR(MPI_Comm comm, Ceed ceed, CeedQFunctionContext ctx, CeedQFunctionContext *ctx_smoother); 29 30 // Process physics options - Mooney-Rivlin 31 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units); 32 33 #endif // mooney_rivlin_h 34