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

add new constructor

parent 70b0c55c
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,22 @@ mlawNonLocalPorousCoupledLaw::mlawNonLocalPorousCoupledLaw(const int num,const d
_failedTol = 0.99;
};
mlawNonLocalPorousCoupledLaw::mlawNonLocalPorousCoupledLaw(const int num,const double E,const double nu, const double rho,
const double q1, const double q2, const double q3,
const double fVinitial, const double lambda0, const double kappa, const J2IsotropicHardening &j2IH, const CLengthLaw &cLLaw,
const double tol, const bool matrixbyPerturbation, const double pert) :
mlawNonLocalPorosity(num, E, nu, rho, fVinitial, j2IH, cLLaw, tol, matrixbyPerturbation, pert),
_withCrackTransition(false)
{
_mlawGrowth = new mlawNonLocalDamageGurson(num, E, nu, rho, q1, q2, q3, fVinitial, j2IH, cLLaw, tol, matrixbyPerturbation, pert);
_mlawCoales = new mlawNonLocalPorousThomasonLaw(num, E, nu, rho, fVinitial, lambda0, kappa, j2IH, cLLaw, tol, matrixbyPerturbation, pert);
// modify current coalescence law
mlawNonLocalPorosity::setCoalescenceLaw(*_mlawCoales->getCoalescenceLaw());
_failedTol = 0.99;
};
mlawNonLocalPorousCoupledLaw::mlawNonLocalPorousCoupledLaw(const mlawNonLocalPorousCoupledLaw &source) :
......
......@@ -31,6 +31,10 @@ class mlawNonLocalPorousCoupledLaw : public mlawNonLocalPorosity
const double q1, const double q2, const double q3,
const double fVinitial, const double lambda0, const J2IsotropicHardening &j2IH, const CLengthLaw &cLLaw,
const double tol=1.e-8, const bool matrixbyPerturbation = false, const double pert = 1e-8);
mlawNonLocalPorousCoupledLaw(const int num,const double E,const double nu, const double rho,
const double q1, const double q2, const double q3,
const double fVinitial, const double lambda0, const double kappa, const J2IsotropicHardening &j2IH, const CLengthLaw &cLLaw,
const double tol=1.e-8, const bool matrixbyPerturbation = false, const double pert = 1e-8);
// Option settings
virtual void setNonLocalMethod(const int i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment