diff --git a/MaterialLib/SolidModels/MFront/Elasticity.mfront b/MaterialLib/SolidModels/MFront/Elasticity.mfront new file mode 100644 index 0000000000000000000000000000000000000000..b257b785756efae7393e42d147fdd75e0e419ca2 --- /dev/null +++ b/MaterialLib/SolidModels/MFront/Elasticity.mfront @@ -0,0 +1,36 @@ +@Behaviour Elasticity; +@Author Helfer Thomas; +@Date 23/11/06; +@Description{ + A very first test + (the most simple one in fact). +} + +@UseQt true; +@ProvidesSymmetricTangentOperator; + +@MaterialProperty stress young; +young.setGlossaryName("YoungModulus"); +@MaterialProperty real nu; +nu.setGlossaryName("PoissonRatio"); + +@LocalVariable stress lambda; +@LocalVariable stress mu; + +@Includes +{ +#include "TFEL/Material/Lame.hxx" +} + +@Integrator +{ + using namespace tfel::material::lame; + lambda = computeLambda(young, nu); + mu = computeMu(young, nu); + sig = lambda * trace(eto + deto) * StrainStensor::Id() + + 2 * mu * (eto + deto); + if (computeTangentOperator_) + { + Dt = lambda * Stensor4::IxI() + 2 * mu * Stensor4::Id(); + } +} diff --git a/Tests/Data/Mechanics/Linear/MFront/disc_with_hole/elasticity.mfront b/Tests/Data/Mechanics/Linear/MFront/disc_with_hole/elasticity.mfront deleted file mode 100644 index a985c58315e3a4ffeed3048da9945e4b7f76892c..0000000000000000000000000000000000000000 --- a/Tests/Data/Mechanics/Linear/MFront/disc_with_hole/elasticity.mfront +++ /dev/null @@ -1,32 +0,0 @@ -@Behaviour Elasticity; -@Author Helfer Thomas; -@Date 23/11/06; -@Description{ - A very first test - (the most simple one in fact). -} - -@UseQt true; -@ProvidesSymmetricTangentOperator; - -@MaterialProperty stress young; -young.setGlossaryName("YoungModulus"); -@MaterialProperty real nu; -nu.setGlossaryName("PoissonRatio"); - -@LocalVariable stress lambda; -@LocalVariable stress mu; - -@Includes{ -#include"TFEL/Material/Lame.hxx" -} - -@Integrator{ - using namespace tfel::material::lame; - lambda = computeLambda(young,nu); - mu = computeMu(young,nu); - sig = lambda*trace(eto+deto)*StrainStensor::Id()+2*mu*(eto+deto); - if(computeTangentOperator_){ - Dt = lambda*Stensor4::IxI()+2*mu*Stensor4::Id(); - } -}