|
| v0.14.0
|
#include <users_modules/eshelbian_plasticit/src/EshelbianPlasticity.hpp>
|
| OpSpatialPhysical (const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > &data_ptr, const double alpha_u) |
|
MoFEMErrorCode | integrate (EntData &data) |
|
MoFEMErrorCode | integratePiola (EntData &data) |
|
MoFEMErrorCode | integrateHencky (EntData &data) |
|
MoFEMErrorCode | integratePolyconvexHencky (EntData &data) |
|
| OpAssembleVolume (const std::string &field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type) |
|
| OpAssembleVolume (const std::string &row_field, const std::string &col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type, const bool assemble_symmetry) |
|
| OpAssembleBasic (const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type) |
|
| OpAssembleBasic (const std::string &row_field, const std::string &col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type, const bool assemble_symmetry, ScaleOff scale_off=[]() { return 1;}) |
|
virtual MoFEMErrorCode | integrate (int row_side, EntityType row_type, EntData &data) |
|
virtual MoFEMErrorCode | integrate (EntData &row_data, EntData &col_data) |
|
virtual MoFEMErrorCode | assemble (EntData &data) |
|
virtual MoFEMErrorCode | assemble (int row_side, EntityType row_type, EntData &data) |
|
virtual MoFEMErrorCode | assemble (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data) |
|
MoFEMErrorCode | doWork (int side, EntityType type, EntData &data) |
|
MoFEMErrorCode | doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data) |
|
Definition at line 515 of file EshelbianPlasticity.hpp.
◆ OpSpatialPhysical()
EshelbianPlasticity::OpSpatialPhysical::OpSpatialPhysical |
( |
const std::string & |
field_name, |
|
|
boost::shared_ptr< DataAtIntegrationPts > & |
data_ptr, |
|
|
const double |
alpha_u |
|
) |
| |
|
inline |
◆ integrate()
◆ integrateHencky()
Definition at line 610 of file EshelbianOperators.cpp.
617 int nb_integration_pts = data.
getN().size1();
618 auto v = getVolume();
619 auto t_w = getFTensor0IntegrationWeight();
620 auto t_approx_P_adjont_log_du =
621 getFTensor1FromMat<size_symm>(
dataAtPts->adjointPdUAtPts);
622 auto t_log_streach_h1 =
623 getFTensor2SymmetricFromMat<3>(
dataAtPts->logStretchTotalTensorAtPts);
625 getFTensor2SymmetricFromMat<3>(
dataAtPts->logStretchDotTensorAtPts);
627 auto t_D = getFTensor4DdgFromMat<3, 3, 0>(
dataAtPts->matD);
633 auto get_ftensor2 = [](
auto &
v) {
635 &
v[0], &
v[1], &
v[2], &
v[3], &
v[4], &
v[5]);
638 int nb_base_functions = data.
getN().size2();
640 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
642 auto t_nf = get_ftensor2(
nF);
646 t_D(
i,
j,
k,
l) * (t_log_streach_h1(
k,
l) +
alphaU * t_dot_log_u(
k,
l));
649 a * (t_approx_P_adjont_log_du(
L) - t_L(
i,
j,
L) * t_T(
i,
j));
652 for (; bb != nb_dofs / 6; ++bb) {
653 t_nf(
L) += t_row_base_fun * t_residual(
L);
657 for (; bb != nb_base_functions; ++bb)
661 ++t_approx_P_adjont_log_du;
◆ integratePiola()
Definition at line 753 of file EshelbianOperators.cpp.
760 int nb_integration_pts = data.
getN().size1();
761 auto v = getVolume();
762 auto t_w = getFTensor0IntegrationWeight();
763 auto t_approx_P_adjont_log_du =
764 getFTensor1FromMat<size_symm>(
dataAtPts->adjointPdUAtPts);
765 auto t_P = getFTensor2FromMat<3, 3>(
dataAtPts->PAtPts);
767 getFTensor2SymmetricFromMat<3>(
dataAtPts->logStretchDotTensorAtPts);
769 getFTensor4DdgFromMat<3, 3, 1>(
dataAtPts->diffStretchTensorAtPts);
775 auto get_ftensor2 = [](
auto &
v) {
777 &
v[0], &
v[1], &
v[2], &
v[3], &
v[4], &
v[5]);
780 int nb_base_functions = data.
getN().size2();
782 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
784 auto t_nf = get_ftensor2(
nF);
787 t_Ldiff_u(
i,
j,
L) = t_diff_u(
i,
j,
k,
l) * t_L(
k,
l,
L);
797 a * (t_approx_P_adjont_log_du(
L) - t_Ldiff_u(
i,
j,
L) * t_P(
i,
j) -
798 t_L(
i,
j,
L) * t_viscous_P(
i,
j));
801 for (; bb != nb_dofs / 6; ++bb) {
802 t_nf(
L) += t_row_base_fun * t_residual(
L);
806 for (; bb != nb_base_functions; ++bb)
810 ++t_approx_P_adjont_log_du;
◆ integratePolyconvexHencky()
Definition at line 668 of file EshelbianOperators.cpp.
675 int nb_integration_pts = data.
getN().size1();
676 auto v = getVolume();
677 auto t_w = getFTensor0IntegrationWeight();
678 auto t_approx_P_adjont_log_du =
679 getFTensor1FromMat<size_symm>(
dataAtPts->adjointPdUAtPts);
680 auto t_log_streach_h1 =
681 getFTensor2SymmetricFromMat<3>(
dataAtPts->logStretchTotalTensorAtPts);
683 getFTensor2SymmetricFromMat<3>(
dataAtPts->logStretchDotTensorAtPts);
685 auto t_D = getFTensor4DdgFromMat<3, 3, 0>(
dataAtPts->matD);
691 auto get_ftensor2 = [](
auto &
v) {
693 &
v[0], &
v[1], &
v[2], &
v[3], &
v[4], &
v[5]);
696 constexpr
double nohat_k = 1. / 4;
697 constexpr
double hat_k = 1. / 8;
701 constexpr
double third = boost::math::constants::third<double>();
705 int nb_base_functions = data.
getN().size2();
707 for (
int gg = 0; gg != nb_integration_pts; ++gg) {
709 auto t_nf = get_ftensor2(
nF);
711 double log_det = t_log_streach_h1(
i,
i);
712 double log_det2 = log_det * log_det;
715 double dev_norm2 = t_dev(
i,
j) * t_dev(
i,
j);
718 auto A = 2 *
mu * std::exp(nohat_k * dev_norm2);
719 auto B =
lambda * std::exp(hat_k * log_det2) * log_det;
722 A * (t_dev(
k,
l) * t_diff_deviator(
k,
l,
i,
j))
734 a * (t_approx_P_adjont_log_du(
L) - t_L(
i,
j,
L) * t_T(
i,
j));
737 for (; bb != nb_dofs / 6; ++bb) {
738 t_nf(
L) += t_row_base_fun * t_residual(
L);
742 for (; bb != nb_base_functions; ++bb)
746 ++t_approx_P_adjont_log_du;
◆ alphaU
const double EshelbianPlasticity::OpSpatialPhysical::alphaU |
|
private |
◆ polyConvex
PetscBool EshelbianPlasticity::OpSpatialPhysical::polyConvex = PETSC_FALSE |
|
private |
The documentation for this struct was generated from the following files:
#define CHK_MOAB_THROW(err, msg)
Check error code of MoAB function and throw MoFEM exception.
VectorDouble nF
local right hand side vector
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
#define CHKERR
Inline error check.
MoFEMErrorCode integratePolyconvexHencky(EntData &data)
MoFEMErrorCode integrateHencky(EntData &data)
const VectorInt & getIndices() const
Get global indices of dofs on entity.
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
auto diff_deviator(FTensor::Ddg< double, 3, 3 > &&t_diff_stress)
MoFEMErrorCode integratePiola(EntData &data)
FTensor::Index< 'i', SPACE_DIM > i
constexpr auto field_name
const double v
phase velocity of light in medium (cm/ns)
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
FTensor::Index< 'j', 3 > j
Kronecker Delta class symmetric.
OpAssembleVolume(const std::string &field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type)
FTensor::Index< 'k', 3 > k
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
FTensor::Index< 'l', 3 > l
PetscErrorCode PetscOptionsGetBool(PetscOptions *, const char pre[], const char name[], PetscBool *bval, PetscBool *set)