Page MenuHomec4science

bem_polonski.hh
No OneTemporary

File Metadata

Created
Tue, Apr 30, 23:39

bem_polonski.hh

/**
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
*
* @section LICENSE
*
* Copyright (©) 2016 EPFL (Ecole Polytechnique Fédérale de
* Lausanne) Laboratory (LSMS - Laboratoire de Simulation en Mécanique des
* Solides)
*
* Tamaas 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.
*
* Tamaas 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 Tamaas. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#ifndef BEM_POLONSKI_H
#define BEM_POLONSKI_H
/* -------------------------------------------------------------------------- */
#include "bem_fft_base.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_TAMAAS__
class BemPolonski : public BemFFTBase {
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
BemPolonski(Surface<Real>& p);
virtual ~BemPolonski();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
//! compute the equilibrium situation
Real computeEquilibrium(Real epsilon, Real pressure);
Real computeEquilibriuminit(Real epsilon, Real pressure, Surface<Real>& init);
//! compute the mean of the gaps in the contact region
Real computeMeanGapsInContact();
//! compute the non zero gap penalty functional
Real computeG();
//! update the search direction
void updateT(Real G, Real Gold, Real delta);
//! compute the conjugate step size
Real computeTau();
//! update the tractions
Real updateTractions(Real tau);
//! enforce the applied and contact pressures balance
void enforcePressureBalance(Real applied_pressure);
//! compute the gaps
void computeGaps();
//! compute the gaps
void computeTrueDisplacements();
//! compute F
Real computeF();
//! saturation function
Real saturationFunction(Real alpha, Real applied_pressure);
//! set saturation pressure
void setMaxPressure(Real p) { this->p_sat = p; }
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
//! get the number of iterations
UInt getNbIterations() const { return this->nb_iterations; };
//! get the convergence steps of iterations
const std::vector<Real>& getConvergenceIterations() const {
return this->convergence_iterations;
};
Surface<Real>& getSurfaceT() { return surface_t; };
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected:
//! exploration direction for the polonski algo
Surface<Real> surface_t;
//! projected exploration direction for the polonski algo
Surface<Real> surface_r;
//! previous pressure
Surface<Real> pold;
//! saturation pressure
Real p_sat;
//! the rms of heights of the surface
Real surface_rms_heights;
};
__END_TAMAAS__
#endif /* BEM_POLONSKI_H */

Event Timeline