Page MenuHomec4science

material_damage_non_local.hh
No OneTemporary

File Metadata

Created
Wed, Jul 24, 07:37

material_damage_non_local.hh

/**
* @file material_damage_non_local.hh
* @author <chambart@lsmscluster1.epfl.ch>
* @date Wed Aug 31 17:08:23 2011
*
* @brief
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* 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"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_MATERIAL_DAMAGE_NON_LOCAL_HH__
#define __AKANTU_MATERIAL_DAMAGE_NON_LOCAL_HH__
__BEGIN_AKANTU__
/**
* Material Damage
*
* parameters in the material files :
*/
class MaterialDamageNonLocal : public MaterialDamage, public MaterialNonLocal {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
MaterialDamageNonLocal(Model & model, const ID & id = "");
virtual ~MaterialDamageNonLocal() {};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
void initMaterial();
virtual bool setParam(const std::string & key, const std::string & value,
const ID & id);
/// constitutive law for all element of a type
void computeStress(ElementType el_type, GhostType ghost_type = _not_ghost);
/// constitutive law
virtual void computeNonLocalStress(ElementType el_type,
GhostType ghost_type = _not_ghost);
/// Compute the tangent stiffness matrix for implicit for a given type
void computeTangentStiffness(__attribute__ ((unused)) const ElementType & type,
__attribute__ ((unused)) Vector<double> & tangent_matrix,
__attribute__ ((unused)) GhostType ghost_type = _not_ghost) {
AKANTU_DEBUG_TO_IMPLEMENT();
};
/// compute the celerity of wave in the material
inline Real celerity();
inline Real getStableTimeStep(Real h, const Element & element) {
return MaterialDamage::getStableTimeStep(h, element);
};
/// function to print the containt of the class
virtual void printself(std::ostream & stream, int indent = 0) const;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
ByElementTypeReal Y;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
//#include "material_damage_non_local_inline_impl.cc"
/* -------------------------------------------------------------------------- */
/// standard output stream operator
inline std::ostream & operator <<(std::ostream & stream, const MaterialDamageNonLocal & _this)
{
_this.printself(stream);
return stream;
}
__END_AKANTU__
#endif /* __AKANTU_MATERIAL_DAMAGE_NON_LOCAL_HH__ */

Event Timeline