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

add function

parent 4a938eed
No related branches found
No related tags found
No related merge requests found
...@@ -1449,6 +1449,15 @@ void NonLocalDamageGursonHill48DG3DMaterialLaw::setYieldParameters(const std::ve ...@@ -1449,6 +1449,15 @@ void NonLocalDamageGursonHill48DG3DMaterialLaw::setYieldParameters(const std::ve
{ {
static_cast<mlawNonLocalDamageGursonHill48*>(_nldPorous)->setYieldParameters(params); static_cast<mlawNonLocalDamageGursonHill48*>(_nldPorous)->setYieldParameters(params);
} }
void NonLocalDamageGursonHill48DG3DMaterialLaw::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<mlawNonLocalDamageGursonHill48*>(_nldPorous)->setYieldParameters(params_vec);
};
void NonLocalDamageGursonHill48DG3DMaterialLaw::setTemperatureFunction_q1(const scalarFunction& Tfunc) void NonLocalDamageGursonHill48DG3DMaterialLaw::setTemperatureFunction_q1(const scalarFunction& Tfunc)
{ {
......
...@@ -508,6 +508,7 @@ public: ...@@ -508,6 +508,7 @@ public:
void setTemperatureFunction_q3(const scalarFunction& Tfunc); void setTemperatureFunction_q3(const scalarFunction& Tfunc);
void setYieldParameters(const std::vector<double>& params); void setYieldParameters(const std::vector<double>& params);
void setYieldParameters(const fullVector<double>& params);
#ifndef SWIG #ifndef SWIG
NonLocalDamageGursonHill48DG3DMaterialLaw(const NonLocalDamageGursonHill48DG3DMaterialLaw &source); NonLocalDamageGursonHill48DG3DMaterialLaw(const NonLocalDamageGursonHill48DG3DMaterialLaw &source);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment