v0.16.3
Loading...
Searching...
No Matches
MatAmentumUmat.hpp
Go to the documentation of this file.
1/**
2 * @file MatAmentumUmat.hpp
3 * @brief Amentum-specific UMAT registration surface.
4 */
5
6#ifndef MAT_AMENTUM_UMAT_HPP
7#define MAT_AMENTUM_UMAT_HPP
8
9#include <MatUmat.hpp>
10#include <functional>
11#define TSADAPTAMENTUM "amentum"
12
13namespace MatOps {
14
16 AMENTUM_UMAT() = delete;
17};
18
19template <>
20boost::shared_ptr<PhysicalEquations>
22 boost::shared_ptr<MatOpsData> mat_ops_data_ptr, int tag);
23
24template <>
25boost::shared_ptr<PhysicalEquations>
27 boost::shared_ptr<MatOpsData> mat_ops_data_ptr, int tag);
28
29/** Read endpoint elastic moduli without evaluating UMAT. The borrowed Young's
30 * modulus array has nb_gauss_pts entries, or is null before state exists.
31 * A supplied endpoint array permits residual evaluation on step-entry tags. */
33 boost::shared_ptr<PhysicalEquations> physics_ptr, FEMethod *fe_ptr,
34 int nb_gauss_pts, const double *&young_modulus, double &poisson_ratio,
35 const double *endpoint_modulus = nullptr);
36
37/** Override the material clock without changing the mechanical FE clock.
38 * An empty source retains the FE time used by the standalone solver. */
40 std::function<void(PetscReal &, PetscReal &, PetscInt &)>;
42 boost::shared_ptr<PhysicalEquations> material, AmentumTimeSource source);
43
44} // namespace MatOps
45
46static PetscErrorCode TSAdaptChooseAmentum(TSAdapt adapt, TS ts, PetscReal h,
47 PetscInt *next_sc, PetscReal *next_h,
48 PetscBool *accept, PetscReal *wlte,
49 PetscReal *wltea, PetscReal *wlter);
50static PetscErrorCode TSAdaptResetAmentum(TSAdapt adapt);
51
52static PetscErrorCode TSAdaptDestroyAmentum(TSAdapt adapt);
53
54PetscErrorCode TSAdaptCreateAmentum(TSAdapt adapt);
55
56/** Apply the same step-size rule to a failed physical trial, without advancing
57 * the shutdown state. The supplied TS carries the failed SNES feedback. */
58PetscErrorCode TSAdaptChooseAmentumRejected(TSAdapt adapt, TS ts, PetscReal h,
59 PetscReal *next_h);
60
61#endif // MAT_AMENTUM_UMAT_HPP
std::function< bool(size_t)> accept
Definition CGALTools.cpp:61
int h
Corner vertex and its two front neighbours.
std::vector< int > source
Tag tag
PetscErrorCode TSAdaptChooseAmentumRejected(TSAdapt adapt, TS ts, PetscReal h, PetscReal *next_h)
static PetscErrorCode TSAdaptChooseAmentum(TSAdapt adapt, TS ts, PetscReal h, PetscInt *next_sc, PetscReal *next_h, PetscBool *accept, PetscReal *wlte, PetscReal *wltea, PetscReal *wlter)
static PetscErrorCode TSAdaptResetAmentum(TSAdapt adapt)
PetscErrorCode TSAdaptCreateAmentum(TSAdapt adapt)
static PetscErrorCode TSAdaptDestroyAmentum(TSAdapt adapt)
MoFEMErrorCode setAmentumTimeSource(boost::shared_ptr< PhysicalEquations > material, AmentumTimeSource source)
MoFEMErrorCode getAmentumElasticProperties(boost::shared_ptr< PhysicalEquations > physics_ptr, FEMethod *fe_ptr, int nb_gauss_pts, const double *&young_modulus, double &poisson_ratio, const double *endpoint_modulus)
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< AMENTUM_UMAT, MODEL_2D_PLANE_STRAIN >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
std::function< void(PetscReal &, PetscReal &, PetscInt &)> AmentumTimeSource
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr< AMENTUM_UMAT, MODEL_3D >(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
double young_modulus
Young modulus.
Definition plastic.cpp:126
double poisson_ratio
Poisson ratio.
Definition plastic.cpp:127
Structure for user loop methods on finite elements.