xref: /libCEED/examples/solids/problems/mooney-rivlin.h (revision a0154adecfab8547cdc0febbbf40ac009dbe9d1d)
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 #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,
27                                  CeedQFunctionContext *ctx);
28 PetscErrorCode PhysicsSmootherContext_MR(MPI_Comm comm, Ceed ceed,
29     CeedQFunctionContext ctx, CeedQFunctionContext *ctx_smoother);
30 
31 // Process physics options - Mooney-Rivlin
32 PetscErrorCode ProcessPhysics_MR(MPI_Comm comm, Physics_MR phys, Units units);
33 
34 #endif // mooney_rivlin_h
35