Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90390164
bem_gigipol.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
Fri, Nov 1, 05:48
Size
4 KB
Mime Type
text/x-c++
Expires
Sun, Nov 3, 05:48 (2 d)
Engine
blob
Format
Raw Data
Handle
22066772
Attached To
rTAMAAS tamaas
bem_gigipol.hh
View Options
/**
*
* @author Valentine Rey <valentine.rey@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_GIGIPOL_H
#define BEM_GIGIPOL_H
/* -------------------------------------------------------------------------- */
#include "bem_fft_base.hh"
/* -------------------------------------------------------------------------- */
namespace
tamaas
{
class
BemGigipol
:
public
BemFFTBase
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
BemGigipol
(
Surface
<
Real
>&
p
)
:
BemFFTBase
(
p
),
search_direction
(
p
.
size
(),
p
.
getL
()),
mean_disp_search_direction
(
p
.
size
(),
p
.
getL
()),
surface_t
(
p
.
size
(),
p
.
getL
()),
surface_r
(
p
.
size
(),
p
.
getL
()),
pold
(
p
.
size
(),
p
.
getL
())
{
e_star
=
1.
;
max_iterations
=
10000
;
}
virtual
~
BemGigipol
()
{}
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
Real
computeEquilibrium
(
Real
epsilon
,
Real
mean_displacement
);
Real
computeEquilibrium2
(
Real
epsilon
,
Real
mean_pressure
);
Real
computeEquilibrium2init
(
Real
epsilon
,
Real
mean_pressure
,
Surface
<
Real
>&
init
);
Real
computeEquilibriuminit
(
Real
epsilon
,
Real
mean_displacement
,
Surface
<
Real
>&
init
);
Real
computeStoppingCriterion
();
Real
computeG
();
Real
computeMeanPressuresInNonContact
();
void
optimizeToMeanDisplacement
(
Real
imposed_mean
);
Real
positiveGapAverage
(
Real
shift
);
void
updateT
(
Real
G
,
Real
Gold
,
Real
delta
);
Real
updateDisplacements
(
Real
tau
,
Real
mean_displacement
);
void
enforceMeanDisplacement
(
Real
mean_displacement
);
void
computePressures
();
Real
computeTau
();
Real
computeTau
(
Real
mean_pressure
);
virtual
void
computeTractionsFromDisplacements
();
/* ------------------------------------------------------------------------ */
/* 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
;
};
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
//! exploration direction for the Gigi algo
Surface
<
Real
>
search_direction
;
//! exploration direction for optimization of mean displacement
Surface
<
Real
>
mean_disp_search_direction
;
//! 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
;
};
}
// namespace tamaas
#endif
/* BEM_GIGIPOL_H */
Event Timeline
Log In to Comment