Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96208090
phasefield_quadratic.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, Dec 23, 19:08
Size
3 KB
Mime Type
text/x-c++
Expires
Wed, Dec 25, 19:08 (1 d, 16 h)
Engine
blob
Format
Raw Data
Handle
23143782
Attached To
rAKA akantu
phasefield_quadratic.hh
View Options
/**
* @file phasefield_exponential.hh
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Fri Jun 19 2020
* @date last modification: Wed Jun 23 2021
*
* @brief Phasefield law for approximating discrete crack as an exponential
*
*
* @section LICENSE
*
* Copyright (©) 2018-2021 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 "phasefield.hh"
#include "volumetric_deviatoric_split.hh"
#include "no_energy_split.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_PHASEFIELD_QUADRATIC_HH__
#define __AKANTU_PHASEFIELD_QUADRATIC_HH__
namespace
akantu
{
template
<
Int
dim
>
class
PhaseFieldQuadratic
:
public
PhaseField
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
PhaseFieldQuadratic
(
PhaseFieldModel
&
model
,
const
ID
&
id
=
""
);
~
PhaseFieldQuadratic
()
override
=
default
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// compute the dissiapted energy
void
computeDissipatedEnergy
(
ElementType
el_type
)
override
;
void
computeDissipatedEnergyByElement
(
const
Element
&
element
,
Vector
<
Real
>
&
edis_on_quad_points
)
override
;
protected
:
void
computeDissipatedEnergyByElement
(
ElementType
type
,
Idx
index
,
Vector
<
Real
>
&
edis_on_quad_points
)
override
;
void
computePhiOnQuad
(
const
Matrix
<
Real
>
&
/*strain_quad*/
,
Real
&
/*phi_quad*/
);
void
computePhiIsotropicOnQuad
(
const
Matrix
<
Real
>
&
/*strain_quad*/
,
Real
&
/*phi_quad*/
);
void
computeDrivingForce
(
ElementType
/*el_type*/
,
GhostType
/*ghost_type*/
)
override
;
inline
void
computeDrivingForceOnQuad
(
const
Real
&
/*phi_quad*/
,
Real
&
/*driving_force_quad*/
);
inline
void
computeDamageEnergyDensityOnQuad
(
const
Real
&
/*phi_quad*/
,
Real
&
/*dam_energy_quad*/
,
const
Real
&
/*g_c_quad*/
);
inline
void
computeDissipatedEnergyOnQuad
(
const
Real
&
/*dam_quad*/
,
const
Vector
<
Real
>
&
/*grad_d_quad */
,
Real
&
/*energy*/
,
Real
&
/*g_c_quad*/
);
public
:
void
updateInternalParameters
()
override
;
void
initPhaseField
()
override
;
private
:
// irreversibility tolerance
Real
tol_ir
;
// penalization parameter
Real
gamma
;
// dimension to consider in deviatoric split
Int
dev_dim
;
// energy split
std
::
shared_ptr
<
EnergySplit
>
energy_split
{
nullptr
};
};
}
// namespace akantu
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
#include "phasefield_quadratic_inline_impl.hh"
#endif
Event Timeline
Log In to Comment