Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82114283
solid_phase_coupler.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
Mon, Sep 9, 16:19
Size
3 KB
Mime Type
text/x-c++
Expires
Wed, Sep 11, 16:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20653325
Attached To
rAKA akantu
solid_phase_coupler.hh
View Options
/**
* @file solid_phase_coupler.hh
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Fri Sep 28 2018
* @date last modification: Fri Sep 28 2018
*
* @brief class for coupling of solid mechancis and phasefield model
*
* @section LICENSE
*
* Copyright (©) 2010-2018 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/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_common.hh"
#include "solid_mechanics_model.hh"
#include "phase_field_model.hh"
#include "material.hh"
#include "material_phasefield.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_SOLID_PHASE_COUPLER_HH__
#define __AKANTU_SOLID_PHASE_COUPLER_HH__
namespace
akantu
{
template
<
typename
SolidType
,
typename
PhaseType
>
class
SolidPhaseCoupler
{
/* ------------------------------------------------------------------------ */
/* Constructor/Destructors */
/* ------------------------------------------------------------------------ */
private
:
public
:
SolidPhaseCoupler
(
SolidType
&
,
PhaseType
&
);
~
SolidPhaseCoupler
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// computes damage on quad points for solid mechanics model from
/// damage array from phasefield model
void
computeDamageOnQuadPoints
(
const
GhostType
&
);
/// computes strain on quadrature points for phasefield model from
/// displacement gradient from solid mechanics model
void
computeStrainOnQuadPoints
(
const
GhostType
&
ghost_type
);
/// solve the coupled model
void
solve
();
private
:
/// computes small strain from displacement gradient
void
gradUToEpsilon
(
const
Matrix
<
Real
>
&
grad_u
,
Matrix
<
Real
>
&
epsilon
);
/// test the convergence criteria
bool
checkConvergence
(
Array
<
Real
>
&
,
Array
<
Real
>
&
,
Array
<
Real
>
&
,
Array
<
Real
>
&
);
/* ------------------------------------------------------------------------ */
/* Members */
/* ------------------------------------------------------------------------ */
private
:
///
SolidType
&
solid
;
///
PhaseType
&
phase
;
/// Spatial dimension of models
UInt
spatial_dimension
;
///
bool
convergence
;
};
}
// akantu
#endif
/* __AKANTU_SOLID_PHASE_COUPLER_HH__ */
Event Timeline
Log In to Comment