/*! * \file TFEL/Material/LogarithmicStrainPlasticityIntegrationData.hxx * \brief this file implements the LogarithmicStrainPlasticityIntegrationData class. * File generated by tfel version 3.3.0 * \author Helfer Thomas * \date 5 / 12 / 13 */ #ifndef LIB_TFELMATERIAL_LOGARITHMICSTRAINPLASTICITY_INTEGRATION_DATA_HXX #define LIB_TFELMATERIAL_LOGARITHMICSTRAINPLASTICITY_INTEGRATION_DATA_HXX #include #include #include #include #include #include"TFEL/Raise.hxx" #include"TFEL/PhysicalConstants.hxx" #include"TFEL/Config/TFELConfig.hxx" #include"TFEL/Config/TFELTypes.hxx" #include"TFEL/Metaprogramming/StaticAssert.hxx" #include"TFEL/TypeTraits/IsFundamentalNumericType.hxx" #include"TFEL/TypeTraits/IsScalar.hxx" #include"TFEL/TypeTraits/IsReal.hxx" #include"TFEL/TypeTraits/Promote.hxx" #include"TFEL/Math/General/IEEE754.hxx" #include"TFEL/Math/stensor.hxx" #include"TFEL/Math/st2tost2.hxx" #include "MFront/GenericBehaviour/State.hxx" #include "MFront/GenericBehaviour/BehaviourData.hxx" namespace tfel{ namespace material{ //! \brief forward declaration template class LogarithmicStrainPlasticityIntegrationData; //! \brief forward declaration template std::ostream& operator <<(std::ostream&,const LogarithmicStrainPlasticityIntegrationData&); template class LogarithmicStrainPlasticityIntegrationData { static constexpr unsigned short N = ModellingHypothesisToSpaceDimension::value; TFEL_STATIC_ASSERT(N==1||N==2||N==3); TFEL_STATIC_ASSERT(tfel::typetraits::IsFundamentalNumericType::cond); TFEL_STATIC_ASSERT(tfel::typetraits::IsReal::cond); friend std::ostream& operator<< <>(std::ostream&,const LogarithmicStrainPlasticityIntegrationData&); static constexpr unsigned short TVectorSize = N; typedef tfel::math::StensorDimeToSize StensorDimeToSize; static constexpr unsigned short StensorSize = StensorDimeToSize::value; typedef tfel::math::TensorDimeToSize TensorDimeToSize; static constexpr unsigned short TensorSize = TensorDimeToSize::value; using ushort = unsigned short; using Types = tfel::config::Types; using real = typename Types::real; using time = typename Types::time; using length = typename Types::length; using frequency = typename Types::frequency; using stress = typename Types::stress; using strain = typename Types::strain; using strainrate = typename Types::strainrate; using stressrate = typename Types::stressrate; using temperature = typename Types::temperature; using thermalexpansion = typename Types::thermalexpansion; using thermalconductivity = typename Types::thermalconductivity; using massdensity = typename Types::massdensity; using energydensity = typename Types::energydensity; using TVector = typename Types::TVector; using Stensor = typename Types::Stensor; using Stensor4 = typename Types::Stensor4; using FrequencyStensor = typename Types::FrequencyStensor; using ForceTVector = typename Types::ForceTVector; using StressStensor = typename Types::StressStensor; using StressRateStensor = typename Types::StressRateStensor; using DisplacementTVector = typename Types::DisplacementTVector; using StrainStensor = typename Types::StrainStensor; using StrainRateStensor = typename Types::StrainRateStensor; using StiffnessTensor = typename Types::StiffnessTensor; using Tensor = typename Types::Tensor; using FrequencyTensor = typename Types::FrequencyTensor; using StressTensor = typename Types::StressTensor; using ThermalExpansionCoefficientTensor = typename Types::ThermalExpansionCoefficientTensor; using DeformationGradientTensor = typename Types::DeformationGradientTensor; using DeformationGradientRateTensor = typename Types::DeformationGradientRateTensor; using TemperatureGradient = typename Types::TemperatureGradient; using HeatFlux = typename Types::HeatFlux; using TangentOperator = StiffnessTensor; using PhysicalConstants = tfel::PhysicalConstants; protected: /*! * \brief eto increment */ StrainStensor deto; /*! * \brief time increment */ time dt; temperature dT; public: /*! * \brief Default constructor */ LogarithmicStrainPlasticityIntegrationData() {} /*! * \brief Copy constructor */ LogarithmicStrainPlasticityIntegrationData(const LogarithmicStrainPlasticityIntegrationData& src) : deto(src.deto), dt(src.dt), dT(src.dT) {} /* * \brief constructor for the Generic interface * \param[in] mgb_d: behaviour data */ LogarithmicStrainPlasticityIntegrationData(const mfront::gb::BehaviourData& mgb_d) : dt(mgb_d.dt), dT(mgb_d.s1.external_state_variables[0]-mgb_d.s0.external_state_variables[0]) { } /* * \brief scale the integration data by a scalar. */ template typename std::enable_if< tfel::typetraits::IsFundamentalNumericType::cond&& tfel::typetraits::IsScalar::cond&& tfel::typetraits::IsReal::cond&& std::is_same::type>::value, LogarithmicStrainPlasticityIntegrationData& >::type scale(const LogarithmicStrainPlasticityBehaviourData&, const Scal time_scaling_factor){ this->dt *= time_scaling_factor; this->deto *= time_scaling_factor; this->dT *= time_scaling_factor; return *this; } /*! * \brief update the driving variable in case of substepping. */ LogarithmicStrainPlasticityIntegrationData& updateDrivingVariables(const LogarithmicStrainPlasticityBehaviourData&){ return *this; } }; // end of LogarithmicStrainPlasticityIntegrationDataclass template std::ostream& operator <<(std::ostream& os,const LogarithmicStrainPlasticityIntegrationData& b) { os << "Δεᵗᵒ : " << b.deto << '\n'; os << "σ : " << b.sig << '\n'; os << "Δt : " << b.dt << '\n'; os << "ΔT : " << b.dT << '\n'; return os; } } // end of namespace material } // end of namespace tfel #endif /* LIB_TFELMATERIAL_LOGARITHMICSTRAINPLASTICITY_INTEGRATION_DATA_HXX */