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