Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88721124
phasefield_linear.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
Sun, Oct 20, 08:45
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Oct 22, 08:45 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
21811829
Attached To
rAKA akantu
phasefield_linear.hh
View Options
/* -------------------------------------------------------------------------- */
#include "phasefield.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_PHASEFIELD_LINEAR_HH__
#define __AKANTU_PHASEFIELD_LINEAR_HH__
namespace
akantu
{
class
PhaseFieldLinear
:
public
PhaseField
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
PhaseFieldLinear
(
PhaseFieldModel
&
model
,
const
ID
&
id
=
""
);
~
PhaseFieldLinear
()
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*/
,
const
Real
&
/*g_c_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
;
};
}
// namespace akantu
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
#include "phasefield_linear_inline_impl.hh"
#endif
Event Timeline
Log In to Comment