Page MenuHomec4science

material_mfront.hh
No OneTemporary

File Metadata

Created
Mon, Oct 28, 12:22

material_mfront.hh

/**
* @file material_mfront.hh
*
* @author Nicolas Richart
*
* @date creation ven nov 01 2019
*
* @brief A Documented file.
*
* @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 "material.hh"
/* -------------------------------------------------------------------------- */
#include <MGIS/Behaviour/Behaviour.hxx>
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_MATERIAL_MFRONT_HH
#define AKANTU_MATERIAL_MFRONT_HH
/* -------------------------------------------------------------------------- */
namespace akantu {
template <Int dim> class MaterialMFront : public Material {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
MaterialMFront(SolidMechanicsModel & model, const ID & id = "");
~MaterialMFront() override = default;
/* ------------------------------------------------------------------------ */
/* 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 tangent stiffness matrix for an element type
void computeTangentModuli(const ElementType & el_type,
Array<Real> & tangent_matrix,
GhostType ghost_type = _not_ghost) override;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
ID mfront_material;
ID mfront_behavior_library;
/// Plane stress or plane strain
bool plane_stress{false};
/// MGIS behavior
mgis::behaviour::Behaviour behaviour;
};
} // namespace akantu
#endif /* AKANTU_MATERIAL_MFRONT_HH */

Event Timeline