Commit 65db9759 authored by Jeremy BLEYER's avatar Jeremy BLEYER

Adds setup.py and operational wrapper

parent 88bca57f
A Python package for wrapping the usage of MFront in FEniCS
from dolfin import * from dolfin import *
import mfront_wrapper as mf import mfront_wrapper as mf
import numpy as np import numpy as np
import ufl
length, width , height = 1., 40e-3, 100e-3 length, width , height = 1., 40e-3, 100e-3
nb_elt_p, nb_elt_l = 10, 30 nb_elt_p, nb_elt_l = 10, 30
mesh = BoxMesh(Point(0, -width/2, -height/2.), Point(length, width/2, height/2.), nb_elt_l, 2, nb_elt_p) mesh = BoxMesh(Point(0, -width/2, -height/2.), Point(length, width/2, height/2.), nb_elt_l, 2, nb_elt_p)
V = VectorFunctionSpace(mesh, "CG", 2) V = VectorFunctionSpace(mesh, "CG", 2)
u = Function(V) u = Function(V, name="Displacement")
def left(x, on_boundary): def left(x, on_boundary):
return near(x[0], 0) and on_boundary return near(x[0], 0) and on_boundary
...@@ -26,17 +27,23 @@ bcv = DirichletBC(V.sub(0), Constant(1.), left) ...@@ -26,17 +27,23 @@ bcv = DirichletBC(V.sub(0), Constant(1.), left)
bcv.apply(v.vector()) bcv.apply(v.vector())
Vpost = FunctionSpace(mesh, "CG", 1) Vpost = FunctionSpace(mesh, "CG", 1)
file_results = XDMFFile("beam_GL_plasticity.xdmf") file_results = XDMFFile("results/beam_GL_plasticity.xdmf")
file_results.parameters["flush_output"] = True file_results.parameters["flush_output"] = True
file_results.parameters["functions_share_mesh"] = True file_results.parameters["functions_share_mesh"] = True
selfweight = Expression(("0", "0", "-t*qmax"), t=0., qmax = 50e6, degree=0) selfweight = Expression(("0", "0", "-t*qmax"), t=0., qmax = 50e6, degree=0)
material = mf.NonlinearMaterial('src/libBehaviour.so', "LogarithmicStrainPlasticity") material = mf.MFrontNonlinearMaterial('../materials/src/libBehaviour.so',
"LogarithmicStrainPlasticity")
problem = mf.MFrontNonlinearProblem(u, material) problem = mf.MFrontNonlinearProblem(u, material)
problem.set_loading(dot(selfweight, u)*dx) problem.set_loading(dot(selfweight, u)*dx)
problem.bc = bc problem.bc = bc
p = problem.get_state_variable(name="EquivalentPlasticStrain")
assert (ufl.shape(p) == ())
epsel = problem.get_state_variable(name="ElasticStrain")
print(ufl.shape(epsel))
prm = problem.solver.parameters prm = problem.solver.parameters
prm["absolute_tolerance"] = 1e-6 prm["absolute_tolerance"] = 1e-6
prm["relative_tolerance"] = 1e-6 prm["relative_tolerance"] = 1e-6
......
from dolfin import * from dolfin import *
import mfront_wrapper as mf import mfront_wrapper as mf
import numpy as np import numpy as np
import ufl
hypothesis = "axisymmetric" # axisymmetric hypothesis = "axisymmetric" # axisymmetric
...@@ -37,16 +38,18 @@ mat_prop = {"YoungModulus": E, ...@@ -37,16 +38,18 @@ mat_prop = {"YoungModulus": E,
"PoissonRatio": nu, "PoissonRatio": nu,
"HardeningSlope": H, "HardeningSlope": H,
"YieldStrength": sig0} "YieldStrength": sig0}
material = mf.NonlinearMaterial('materials/src/libBehaviour.so', 'IsotropicLinearHardeningPlasticity', material = mf.MFrontNonlinearMaterial('../materials/src/libBehaviour.so',
'IsotropicLinearHardeningPlasticity',
hypothesis=hypothesis, hypothesis=hypothesis,
material_properties=mat_prop) material_properties=mat_prop)
problem = mf.MFrontNonlinearProblem(u, material, quadrature_degree=4) problem = mf.MFrontNonlinearProblem(u, material, quadrature_degree=4)
problem.set_loading(loading*dot(n, u)*measure*ds(4)) problem.set_loading(loading*dot(n, u)*measure*ds(4))
problem.bc = bc problem.bc = bc
p = problem.register_state_variable(name="EquivalentPlasticStrain")
epsel = problem.register_state_variable(name="ElasticStrain", shape=4) p = problem.get_state_variable(name="EquivalentPlasticStrain")
print(problem.state_variables) assert (ufl.shape(p) == ())
epsel = problem.get_state_variable(name="ElasticStrain")
assert (ufl.shape(epsel)==(4, ))
file_results = XDMFFile("results/plasticity_results.xdmf") file_results = XDMFFile("results/plasticity_results.xdmf")
file_results.parameters["flush_output"] = True file_results.parameters["flush_output"] = True
......
/*! /*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticity.hxx * \file TFEL/Material/IsotropicLinearHardeningPlasticity.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour. * \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Thomas Helfer * \author Thomas Helfer
* \date 14 / 10 / 2016 * \date 14 / 10 / 2016
*/ */
...@@ -132,6 +132,7 @@ using temperature = typename Types::temperature; ...@@ -132,6 +132,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -448,23 +449,20 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -448,23 +449,20 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticity<hypothesis,Type,false>& b) operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticity<hypothesis,Type,false>& b)
{ {
using namespace std; os << "εᵗᵒ : " << b.eto << '\n';
os << "eto : " << b.eto << '\n'; os << "Δεᵗᵒ : " << b.deto << '\n';
os << "deto : " << b.deto << '\n'; os << "σ : " << b.sig << '\n';
os << "sig : " << b.sig << '\n'; os << "Δt : " << b.dt << '\n';
os << "dt : " << b.dt << endl;
os << "T : " << b.T << endl;
os << "dT : " << b.dT << endl;
os << "young : " << b.young << '\n'; os << "young : " << b.young << '\n';
os << "nu : " << b.nu << '\n'; os << "nu : " << b.nu << '\n';
os << "H : " << b.H << '\n'; os << "H : " << b.H << '\n';
os << "s0 : " << b.s0 << '\n'; os << "s0 : " << b.s0 << '\n';
os << "eel : " << b.eel << '\n'; os << "eel : " << b.eel << '\n';
os << "deel : " << b.deel << '\n'; os << "Δeel : " << b.deel << '\n';
os << "p : " << b.p << '\n'; os << "p : " << b.p << '\n';
os << "dp : " << b.dp << '\n'; os << "Δp : " << b.dp << '\n';
os << "T : " << b.T << '\n'; os << "T : " << b.T << '\n';
os << "dT : " << b.dT << '\n'; os << "ΔT : " << b.dT << '\n';
os << "minimal_time_step_scaling_factor : " << b.minimal_time_step_scaling_factor << '\n'; os << "minimal_time_step_scaling_factor : " << b.minimal_time_step_scaling_factor << '\n';
os << "maximal_time_step_scaling_factor : " << b.maximal_time_step_scaling_factor << '\n'; os << "maximal_time_step_scaling_factor : " << b.maximal_time_step_scaling_factor << '\n';
return os; return os;
......
/*! /*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx * \file TFEL/Material/IsotropicLinearHardeningPlasticityBehaviourData.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticityBehaviourData class. * \brief this file implements the IsotropicLinearHardeningPlasticityBehaviourData class.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Thomas Helfer * \author Thomas Helfer
* \date 14 / 10 / 2016 * \date 14 / 10 / 2016
*/ */
...@@ -85,6 +85,7 @@ using temperature = typename Types::temperature; ...@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -199,10 +200,8 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -199,10 +200,8 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticityBehaviourData<hypothesis,Type,false>& b) operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticityBehaviourData<hypothesis,Type,false>& b)
{ {
using namespace std; os << "εᵗᵒ : " << b.eto << '\n';
os << "eto : " << b.eto << '\n'; os << "σ : " << b.sig << '\n';
os << "sig : " << b.sig << '\n';
os << "T : " << b.T << endl;
os << "young : " << b.young << '\n'; os << "young : " << b.young << '\n';
os << "nu : " << b.nu << '\n'; os << "nu : " << b.nu << '\n';
os << "H : " << b.H << '\n'; os << "H : " << b.H << '\n';
......
/*! /*!
* \file TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx * \file TFEL/Material/IsotropicLinearHardeningPlasticityIntegrationData.hxx
* \brief this file implements the IsotropicLinearHardeningPlasticityIntegrationData class. * \brief this file implements the IsotropicLinearHardeningPlasticityIntegrationData class.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Thomas Helfer * \author Thomas Helfer
* \date 14 / 10 / 2016 * \date 14 / 10 / 2016
*/ */
...@@ -73,6 +73,7 @@ using temperature = typename Types::temperature; ...@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticityIntegrationData<hypothesis,Type,false>& b) operator <<(std::ostream& os,const IsotropicLinearHardeningPlasticityIntegrationData<hypothesis,Type,false>& b)
{ {
using namespace std; os << "Δεᵗᵒ : " << b.deto << '\n';
os << "deto : " << b.deto << '\n'; os << "σ : " << b.sig << '\n';
os << "dt : " << b.dt << endl; os << "Δt : " << b.dt << '\n';
os << "dT : " << b.dT << endl; os << "ΔT : " << b.dT << '\n';
os << "dT : " << b.dT << '\n';
return os; return os;
} }
......
/*! /*!
* \file TFEL/Material/LogarithmicStrainPlasticity.hxx * \file TFEL/Material/LogarithmicStrainPlasticity.hxx
* \brief this file implements the LogarithmicStrainPlasticity Behaviour. * \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Helfer Thomas * \author Helfer Thomas
* \date 5 / 12 / 13 * \date 5 / 12 / 13
*/ */
...@@ -142,6 +142,7 @@ using temperature = typename Types::temperature; ...@@ -142,6 +142,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -556,19 +557,16 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -556,19 +557,16 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const LogarithmicStrainPlasticity<hypothesis,Type,false>& b) operator <<(std::ostream& os,const LogarithmicStrainPlasticity<hypothesis,Type,false>& b)
{ {
using namespace std; os << "εᵗᵒ : " << b.eto << '\n';
os << "eto : " << b.eto << '\n'; os << "Δεᵗᵒ : " << b.deto << '\n';
os << "deto : " << b.deto << '\n'; os << "σ : " << b.sig << '\n';
os << "sig : " << b.sig << '\n'; os << "Δt : " << b.dt << '\n';
os << "dt : " << b.dt << endl; os << "εᵉˡ : " << b.eel << '\n';
os << "T : " << b.T << endl; os << "Δεᵉˡ : " << b.deel << '\n';
os << "dT : " << b.dT << endl;
os << "eel : " << b.eel << '\n';
os << "deel : " << b.deel << '\n';
os << "p : " << b.p << '\n'; os << "p : " << b.p << '\n';
os << "dp : " << b.dp << '\n'; os << "Δp : " << b.dp << '\n';
os << "T : " << b.T << '\n'; os << "T : " << b.T << '\n';
os << "dT : " << b.dT << '\n'; os << "ΔT : " << b.dT << '\n';
os << "T_ : " << b.T_ << '\n'; os << "T_ : " << b.T_ << '\n';
os << "se : " << b.se << '\n'; os << "se : " << b.se << '\n';
os << "n : " << b.n << '\n'; os << "n : " << b.n << '\n';
...@@ -578,8 +576,8 @@ os << "s0 : " << b.s0 << '\n'; ...@@ -578,8 +576,8 @@ os << "s0 : " << b.s0 << '\n';
os << "Et : " << b.Et << '\n'; os << "Et : " << b.Et << '\n';
os << "minimal_time_step_scaling_factor : " << b.minimal_time_step_scaling_factor << '\n'; os << "minimal_time_step_scaling_factor : " << b.minimal_time_step_scaling_factor << '\n';
os << "maximal_time_step_scaling_factor : " << b.maximal_time_step_scaling_factor << '\n'; os << "maximal_time_step_scaling_factor : " << b.maximal_time_step_scaling_factor << '\n';
os << "theta : " << b.theta << '\n'; os << "θ : " << b.theta << '\n';
os << "epsilon : " << b.epsilon << '\n'; os << "ε : " << b.epsilon << '\n';
os << "iterMax : " << b.iterMax << '\n'; os << "iterMax : " << b.iterMax << '\n';
return os; return os;
} }
......
/*! /*!
* \file TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx * \file TFEL/Material/LogarithmicStrainPlasticityBehaviourData.hxx
* \brief this file implements the LogarithmicStrainPlasticityBehaviourData class. * \brief this file implements the LogarithmicStrainPlasticityBehaviourData class.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Helfer Thomas * \author Helfer Thomas
* \date 5 / 12 / 13 * \date 5 / 12 / 13
*/ */
...@@ -85,6 +85,7 @@ using temperature = typename Types::temperature; ...@@ -85,6 +85,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -177,11 +178,9 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -177,11 +178,9 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const LogarithmicStrainPlasticityBehaviourData<hypothesis,Type,false>& b) operator <<(std::ostream& os,const LogarithmicStrainPlasticityBehaviourData<hypothesis,Type,false>& b)
{ {
using namespace std; os << "εᵗᵒ : " << b.eto << '\n';
os << "eto : " << b.eto << '\n'; os << "σ : " << b.sig << '\n';
os << "sig : " << b.sig << '\n'; os << "εᵉˡ : " << b.eel << '\n';
os << "T : " << b.T << endl;
os << "eel : " << b.eel << '\n';
os << "p : " << b.p << '\n'; os << "p : " << b.p << '\n';
os << "T : " << b.T << '\n'; os << "T : " << b.T << '\n';
return os; return os;
......
/*! /*!
* \file TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx * \file TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx
* \brief this file implements the LogarithmicStrainPlasticityIntegrationData class. * \brief this file implements the LogarithmicStrainPlasticityIntegrationData class.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Helfer Thomas * \author Helfer Thomas
* \date 5 / 12 / 13 * \date 5 / 12 / 13
*/ */
...@@ -73,6 +73,7 @@ using temperature = typename Types::temperature; ...@@ -73,6 +73,7 @@ using temperature = typename Types::temperature;
using thermalexpansion = typename Types::thermalexpansion; using thermalexpansion = typename Types::thermalexpansion;
using thermalconductivity = typename Types::thermalconductivity; using thermalconductivity = typename Types::thermalconductivity;
using massdensity = typename Types::massdensity; using massdensity = typename Types::massdensity;
using energydensity = typename Types::energydensity;
using TVector = typename Types::TVector; using TVector = typename Types::TVector;
using Stensor = typename Types::Stensor; using Stensor = typename Types::Stensor;
using Stensor4 = typename Types::Stensor4; using Stensor4 = typename Types::Stensor4;
...@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type> ...@@ -168,11 +169,10 @@ template<ModellingHypothesis::Hypothesis hypothesis,typename Type>
std::ostream& std::ostream&
operator <<(std::ostream& os,const LogarithmicStrainPlasticityIntegrationData<hypothesis,Type,false>& b) operator <<(std::ostream& os,const LogarithmicStrainPlasticityIntegrationData<hypothesis,Type,false>& b)
{ {
using namespace std; os << "Δεᵗᵒ : " << b.deto << '\n';
os << "deto : " << b.deto << '\n'; os << "σ : " << b.sig << '\n';
os << "dt : " << b.dt << endl; os << "Δt : " << b.dt << '\n';
os << "dT : " << b.dT << endl; os << "ΔT : " << b.dT << '\n';
os << "dT : " << b.dT << '\n';
return os; return os;
} }
......
...@@ -38,11 +38,14 @@ return policy; ...@@ -38,11 +38,14 @@ return policy;
extern "C"{ extern "C"{
#endif /* __cplusplus */ #endif /* __cplusplus */
MFRONT_SHAREDOBJ const char*
IsotropicLinearHardeningPlasticity_build_id = "";
MFRONT_SHAREDOBJ const char* MFRONT_SHAREDOBJ const char*
IsotropicLinearHardeningPlasticity_mfront_ept = "IsotropicLinearHardeningPlasticity"; IsotropicLinearHardeningPlasticity_mfront_ept = "IsotropicLinearHardeningPlasticity";
MFRONT_SHAREDOBJ const char* MFRONT_SHAREDOBJ const char*
IsotropicLinearHardeningPlasticity_tfel_version = "3.3.0-dev"; IsotropicLinearHardeningPlasticity_tfel_version = "3.3.0";
MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_mfront_mkt = 1u; MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_mfront_mkt = 1u;
...@@ -106,7 +109,7 @@ MFRONT_SHAREDOBJ int IsotropicLinearHardeningPlasticity_ParametersTypes [] = {0, ...@@ -106,7 +109,7 @@ MFRONT_SHAREDOBJ int IsotropicLinearHardeningPlasticity_ParametersTypes [] = {0,
MFRONT_SHAREDOBJ double IsotropicLinearHardeningPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue = 0.1; MFRONT_SHAREDOBJ double IsotropicLinearHardeningPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue = 0.1;
MFRONT_SHAREDOBJ double IsotropicLinearHardeningPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue = 1.79769e+308; MFRONT_SHAREDOBJ double IsotropicLinearHardeningPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue = 1.7976931348623e+308;
MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_requiresStiffnessTensor = 0; MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_requiresStiffnessTensor = 0;
MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_requiresThermalExpansionCoefficientTensor = 0; MFRONT_SHAREDOBJ unsigned short IsotropicLinearHardeningPlasticity_requiresThermalExpansionCoefficientTensor = 0;
......
/*! /*!
* \file IsotropicLinearHardeningPlasticity.cxx * \file IsotropicLinearHardeningPlasticity.cxx
* \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour. * \brief this file implements the IsotropicLinearHardeningPlasticity Behaviour.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Thomas Helfer * \author Thomas Helfer
* \date 14 / 10 / 2016 * \date 14 / 10 / 2016
*/ */
......
...@@ -43,11 +43,14 @@ return policy; ...@@ -43,11 +43,14 @@ return policy;
extern "C"{ extern "C"{
#endif /* __cplusplus */ #endif /* __cplusplus */
MFRONT_SHAREDOBJ const char*
LogarithmicStrainPlasticity_build_id = "";
MFRONT_SHAREDOBJ const char* MFRONT_SHAREDOBJ const char*
LogarithmicStrainPlasticity_mfront_ept = "LogarithmicStrainPlasticity"; LogarithmicStrainPlasticity_mfront_ept = "LogarithmicStrainPlasticity";
MFRONT_SHAREDOBJ const char* MFRONT_SHAREDOBJ const char*
LogarithmicStrainPlasticity_tfel_version = "3.3.0-dev"; LogarithmicStrainPlasticity_tfel_version = "3.3.0";
MFRONT_SHAREDOBJ unsigned short LogarithmicStrainPlasticity_mfront_mkt = 1u; MFRONT_SHAREDOBJ unsigned short LogarithmicStrainPlasticity_mfront_mkt = 1u;
...@@ -107,17 +110,17 @@ MFRONT_SHAREDOBJ const char * LogarithmicStrainPlasticity_Parameters[9] = {"Youn ...@@ -107,17 +110,17 @@ MFRONT_SHAREDOBJ const char * LogarithmicStrainPlasticity_Parameters[9] = {"Youn
"theta","epsilon","iterMax"}; "theta","epsilon","iterMax"};
MFRONT_SHAREDOBJ int LogarithmicStrainPlasticity_ParametersTypes [] = {0,0,0,0,0,0,0,0,2}; MFRONT_SHAREDOBJ int LogarithmicStrainPlasticity_ParametersTypes [] = {0,0,0,0,0,0,0,0,2};
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_YoungModulus_ParameterDefaultValue = 2.1e+11; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_YoungModulus_ParameterDefaultValue = 210000000000;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_PoissonRatio_ParameterDefaultValue = 0; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_PoissonRatio_ParameterDefaultValue = 0;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_s0_ParameterDefaultValue = 2.5e+08; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_s0_ParameterDefaultValue = 250000000;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_Et_ParameterDefaultValue = 1e+06; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_Et_ParameterDefaultValue = 1000000;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue = 0.1; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_minimal_time_step_scaling_factor_ParameterDefaultValue = 0.1;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue = 1.79769e+308; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_maximal_time_step_scaling_factor_ParameterDefaultValue = 1.7976931348623e+308;
MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_theta_ParameterDefaultValue = 1; MFRONT_SHAREDOBJ double LogarithmicStrainPlasticity_theta_ParameterDefaultValue = 1;
......
/*! /*!
* \file LogarithmicStrainPlasticity.cxx * \file LogarithmicStrainPlasticity.cxx
* \brief this file implements the LogarithmicStrainPlasticity Behaviour. * \brief this file implements the LogarithmicStrainPlasticity Behaviour.
* File generated by tfel version 3.3.0-dev * File generated by tfel version 3.3.0
* \author Helfer Thomas * \author Helfer Thomas
* \date 5 / 12 / 13 * \date 5 / 12 / 13
*/ */
......
This diff is collapsed.