xref: /libCEED/examples/solids/problems/neo-hookean.h (revision 4fee36f0a30516a0b5ad51bf7eb3b32d83efd623)
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 neo_hookean_h
9 #define neo_hookean_h
10 
11 #include <petsc.h>
12 
13 #include "../include/structs.h"
14 
15 #ifndef PHYSICS_STRUCT_NH
16 #define PHYSICS_STRUCT_NH
17 typedef struct Physics_NH_ *Physics_NH;
18 struct Physics_NH_ {
19   CeedScalar nu;  // Poisson's ratio
20   CeedScalar E;   // Young's Modulus
21 };
22 #endif  // PHYSICS_STRUCT_NH
23 
24 // Create context object
25 PetscErrorCode PhysicsContext_NH(MPI_Comm comm, Ceed ceed, Units *units, CeedQFunctionContext *ctx);
26 PetscErrorCode PhysicsSmootherContext_NH(MPI_Comm comm, Ceed ceed, CeedQFunctionContext ctx, CeedQFunctionContext *ctx_smoother);
27 
28 // Process physics options
29 PetscErrorCode ProcessPhysics_NH(MPI_Comm comm, Physics_NH phys, Units units);
30 
31 #endif  // neo_hookean_h
32