Page MenuHomec4science

material_stiffness_proportional.hh
No OneTemporary

File Metadata

Created
Sat, May 25, 03:14

material_stiffness_proportional.hh

/**
* Copyright (©) 2018-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "material.hh"
#include "material_elastic.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_STIFFNESS_PROPORTIONAL_HH_
#define AKANTU_MATERIAL_STIFFNESS_PROPORTIONAL_HH_
namespace akantu {
/**
* Material visco-elastic @f[\sigma = E\epsilon + \alpha E*
* \frac{d\epsilon}{dt}@f]
* it can be seen as a Kelvin-Voigt solid with @f[\eta = \alpha E @f]
*
* The material satisfies the Caughey condition, the visco-elastic solid has the
* same eigen-modes as the elastic one. (T.K. Caughey 1960 - Journal of Applied
* Mechanics 27, 269-271. Classical normal modes in damped linear systems.)
*
* parameters in the material files :
* - rho : density (default: 0)
* - E : Young's modulus (default: 0)
* - nu : Poisson's ratio (default: 1/2)
* - Plane_Stress : if 0: plane strain, else: plane stress (default: 0)
* - alpha : viscous ratio
*/
template <Int spatial_dimension>
class MaterialStiffnessProportional
: public MaterialElastic<spatial_dimension> {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
MaterialStiffnessProportional(SolidMechanicsModel & model,
const ID & id = "");
virtual ~MaterialStiffnessProportional(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
void initMaterial() override;
/// constitutive law for all element of a type
void computeStress(ElementType el_type,
GhostType ghost_type = _not_ghost) override;
/// compute the potential energy for all elements
void computePotentialEnergy(ElementType el_type) override;
protected:
/// constitutive law for a given quadrature point
// inline void computeStress(Real * F, Real * sigma);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
/// stress due to viscosity
InternalField<Real> stress_viscosity;
/// stress due to elasticity
InternalField<Real> stress_elastic;
/// viscous ratio
Real alpha;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
//#include "material_elastic_caughey_inline_impl.hh"
} // namespace akantu
#endif /* AKANTU_MATERIAL_STIFFNESS_PROPORTIONAL_HH_ */

Event Timeline