Page MenuHomec4science

unique_constant_fric_coef.hh
No OneTemporary

File Metadata

Created
Mon, Jul 1, 04:32

unique_constant_fric_coef.hh

/**
* @file unique_constant_fric_coef.hh
* @author David Kammer <david.kammer@epfl.ch>
* @date Tue Feb 22 11:23:56 2011
*
* @brief implementation of a unique constant friction coefficient
*
* @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/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_UNIQUE_CONSTANT_FRIC_COEF_HH__
#define __AKANTU_UNIQUE_CONSTANT_FRIC_COEF_HH__
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "friction_coefficient.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_AKANTU__
class UniqueConstantFricCoef : public FrictionCoefficient {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
UniqueConstantFricCoef(ContactRigid & contact,
const Surface & master_surface);
UniqueConstantFricCoef(ContactRigid & contact,
const Surface & master_surface,
const Real friction_coefficient);
virtual ~UniqueConstantFricCoef();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
/// set properties
virtual void setParam(const std::string & key, const std::string & value);
/// no initialization of variables for friction coefficient computation
virtual void initializeComputeFricCoef() {};
/// fill table with friction coefficient
inline virtual Real computeFricCoef(UInt impactor_node_index);
/// function to print the contain of the class
//virtual void printself(std::ostream & stream, int indent = 0) const;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
AKANTU_SET_MACRO(FrictionCoefficient, friction_coefficient, Real);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected:
/// unique constant friction coefficient
Real friction_coefficient;
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "unique_constant_fric_coef_inline_impl.cc"
/*
/// standard output stream operator
inline std::ostream & operator <<(std::ostream & stream, const UniqueConstantFricCoef & _this)
{
_this.printself(stream);
return stream;
}
*/
__END_AKANTU__
#endif /* __AKANTU_UNIQUE_CONSTANT_FRIC_COEF_HH__ */

Event Timeline