54 template <SizeType TVoigtSize = 6>
127 const double dilatancy = r_material_properties[DILATANCY_ANGLE] *
Globals::Pi / 180.0;
128 const double sin_dil = std::sin(dilatancy);
129 const double Root3 = std::sqrt(3.0);
131 const double CFL = -Root3 * (3.0 - sin_dil) / (3.0 * sin_dil - 3.0);
132 const double c1 =
CFL * 2.0 * sin_dil / (Root3 * (3.0 - sin_dil));
133 const double c2 =
CFL;
135 noalias(rGFlux) = c1 * first_vector + c2 * second_vector;
144 KRATOS_ERROR_IF_NOT(rMaterialProperties.
Has(DILATANCY_ANGLE)) <<
"DILATANCY_ANGLE is not a defined value" << std::endl;
static void CalculateSecondVector(const BoundedVectorType &rDeviator, const double J2, BoundedVectorType &rSecondVector)
This method computes the first vector to be used in the derivative of the yield surface.
Definition: advanced_constitutive_law_utilities.cpp:100
static void CalculateFirstVector(BoundedVectorType &rFirstVector)
This method computes the first vector to be used in the derivative of the yield surface.
Definition: advanced_constitutive_law_utilities.cpp:80
This class defines a plastic potential following the theory of Drucker-Prager.
Definition: drucker_prager_plastic_potential.h:56
DruckerPragerPlasticPotential()
Initialization constructor.
Definition: drucker_prager_plastic_potential.h:75
KRATOS_CLASS_POINTER_DEFINITION(DruckerPragerPlasticPotential)
Counted pointer of DruckerPragerPlasticPotential.
DruckerPragerPlasticPotential(DruckerPragerPlasticPotential const &rOther)
Copy constructor.
Definition: drucker_prager_plastic_potential.h:80
static constexpr SizeType Dimension
We define the dimension.
Definition: drucker_prager_plastic_potential.h:62
DruckerPragerPlasticPotential & operator=(DruckerPragerPlasticPotential const &rOther)
Assignment operator.
Definition: drucker_prager_plastic_potential.h:85
static int Check(const Properties &rMaterialProperties)
This method defines the check to be performed in the plastic potential.
Definition: drucker_prager_plastic_potential.h:142
virtual ~DruckerPragerPlasticPotential()
Destructor.
Definition: drucker_prager_plastic_potential.h:91
static constexpr SizeType VoigtSize
The define the Voigt size.
Definition: drucker_prager_plastic_potential.h:65
static void CalculatePlasticPotentialDerivative(const array_1d< double, VoigtSize > &rPredictiveStressVector, const array_1d< double, VoigtSize > &rDeviator, const double J2, array_1d< double, VoigtSize > &rGFlux, ConstitutiveLaw::Parameters &rValues)
This script calculates the derivatives of the plastic potential according to NAYAK-ZIENKIEWICZ paper ...
Definition: drucker_prager_plastic_potential.h:112
Properties encapsulates data shared by different Elements or Conditions. It can store any type of dat...
Definition: properties.h:69
bool Has(TVariableType const &rThisVariable) const
Definition: properties.h:578
#define KRATOS_ERROR_IF_NOT(conditional)
Definition: exception.h:163
constexpr double Pi
Definition: global_variables.h:25
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
T & noalias(T &TheMatrix)
Definition: amatrix_interface.h:484
float J2
Definition: isotropic_damage_automatic_differentiation.py:133
CFL
Definition: isotropic_damage_automatic_differentiation.py:156
Definition: constitutive_law.h:189
const Properties & GetMaterialProperties()
Definition: constitutive_law.h:457