Skip to content
Snippets Groups Projects
Commit 5f2b62e2 authored by Van Dung NGUYEN's avatar Van Dung NGUYEN
Browse files

add new function

parent 577d40ce
No related branches found
No related tags found
1 merge request!411fix problem with microPBC when using primary element for nonlocal variables,...
......@@ -2066,6 +2066,15 @@ void NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw::setYieldParameters
static_cast<mlawNonLocalPorousCoupledHill48LawWithMPSAndMSS*>(_nldPorous)->setYieldParameters(params);
};
void NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw::setYieldParameters(const fullVector<double>& params)
{
std::vector<double> params_vec(params.size());
for (int i=0; i< params.size(); i++)
{
params_vec[i] = params(i);
}
static_cast<mlawNonLocalPorousCoupledHill48LawWithMPSAndMSS*>(_nldPorous)->setYieldParameters(params_vec);
};
NonLocalPorousDuctileDamageWithCleavageDG3DMaterialLaw::NonLocalPorousDuctileDamageWithCleavageDG3DMaterialLaw(const int num, NonLocalPorousDuctileDamageDG3DMaterialLaw& law,
const CLengthLaw &cLLaw,const DamageLaw &damLaw,double sigmac):
......
......@@ -734,6 +734,7 @@ class NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw : public NonLocalP
void setShearCoalescenceLaw(const CoalescenceLaw& added_coalsLaw);
void setShearVoidEvolutionLaw(const voidStateEvolutionLaw& voidtateLaw);
void setYieldParameters(const std::vector<double>& params);
void setYieldParameters(const fullVector<double>& params);
#ifndef SWIG
NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw(const NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw &source);
virtual ~NonLocalPorousCoupledWithMPSAndMSSHill48DG3DMaterialLaw();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment