Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78529599
bem_polonski.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 21, 10:53
Size
3 KB
Mime Type
text/x-c++
Expires
Fri, Aug 23, 10:53 (2 d)
Engine
blob
Format
Raw Data
Handle
20060239
Attached To
rTAMAAS tamaas
bem_polonski.hh
View Options
/**
*
* @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"
/* -------------------------------------------------------------------------- */
namespace 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;
};
} // namespace tamaas
#endif /* BEM_POLONSKI_H */
Event Timeline
Log In to Comment