Page MenuHomec4science

domain_akantu_static.hh
No OneTemporary

File Metadata

Created
Sat, Nov 16, 02:53

domain_akantu_static.hh

/**
* @file domain_akantu_static.hh
*
* @author Till Junge <till.junge@epfl.ch>
*
* @date Sun Jun 29 20:29:15 2014
*
* @brief This is the Akantu implementation for static solves
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale 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.
*
* LibMultiScale 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 LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __DD2D_DOMAIN_AKANTU_STATIC_HH__
#define __DD2D_DOMAIN_AKANTU_STATIC_HH__
/* -------------------------------------------------------------------------- */
#include "domain_akantu.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template <UInt Dim>
class DomainAkantuStatic :
public virtual DomainAkantu<Dim>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public:
DomainAkantuStatic(DomainID ID,CommGroup GID);
virtual ~DomainAkantuStatic();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public:
void init();
void performStep1();
void performStep2();
void performStep3();
void declareParams();
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private:
bool LMsolveStep(Real tolerance, UInt max_iteration, Real & error, Real & initial_error, UInt & niter);
void LMupdateResidual();
protected:
bool nonlinear;
Real tolerance;
UInt max_iter;
Real mass_sum;
private:
bool first_solve;
};
__END_LIBMULTISCALE__
#endif /* __DD2D_DOMAIN_AKANTU_STATIC_HH__ */

Event Timeline