Page MenuHomec4science

damaged_weight_function.hh
No OneTemporary

File Metadata

Created
Wed, May 1, 11:35

damaged_weight_function.hh

/**
* @file damaged_weight_function.hh
*
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
* @author Nicolas Richart <nicolas.richart@epfl.ch>
* @author Cyprien Wolff <cyprien.wolff@epfl.ch>
*
* @date creation: Fri Jun 18 2010
* @date last modification: Wed Nov 08 2017
*
* @brief Damaged weight function for non local materials
*
*
* @section LICENSE
*
* Copyright (©) 2010-2021 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 "base_weight_function.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_DAMAGED_WEIGHT_FUNCTION_HH_
#define AKANTU_DAMAGED_WEIGHT_FUNCTION_HH_
namespace akantu {
/* -------------------------------------------------------------------------- */
/* Damage weight function */
/* -------------------------------------------------------------------------- */
class DamagedWeightFunction : public BaseWeightFunction {
public:
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
DamagedWeightFunction(NonLocalManager & manager)
: BaseWeightFunction(manager, "damaged"), damage(nullptr) {
this->init();
}
/* --------------------------------------------------------------------------
*/
/* Base Weight Function inherited methods */
/* --------------------------------------------------------------------------
*/
/// set the pointers of internals to the right flattend version
void init() override;
inline Real operator()(Real r,
const __attribute__((unused)) IntegrationPoint & q1,
const IntegrationPoint & q2);
private:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
/// internal pointer to the current damage vector
ElementTypeMapReal * damage;
};
} // namespace akantu
#include "damaged_weight_function_inline_impl.hh"
#endif /* AKANTU_DAMAGED_WEIGHT_FUNCTION_HH_ */

Event Timeline