1 // Copyright (c) 2017-2024, 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 #pragma once 8 9 #include <ceed.h> 10 #include <petsc.h> 11 12 #include "../include/structs.h" 13 14 #ifndef PHYSICS_STRUCT_MR 15 #define PHYSICS_STRUCT_MR 16 typedef struct Physics_MR_ *Physics_MR; 17 struct Physics_MR_ { 18 // Material properties for MR 19 CeedScalar mu_1; 20 CeedScalar mu_2; 21 CeedScalar lambda; 22 }; 23 #endif // PHYSICS_STRUCT_MR 24 25 // Create context object 26 PetscErrorCode PhysicsContext_MR(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx); 27 PetscErrorCode PhysicsSmootherContext_MR(MPI_Comm comm, Ceed ceed, CeedQFunctionContext ctx, CeedQFunctionContext *ctx_smoother); 28 29 // Process physics options - Mooney-Rivlin 30 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units); 31