Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83571123
test_material.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
Tue, Sep 17, 21:16
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Sep 19, 21:16 (2 d)
Engine
blob
Format
Raw Data
Handle
20856757
Attached To
rAKA akantu
test_material.hh
View Options
/**
* @file test_material.hh
*
* @author Aurelia Isabel Cuba Ramos <aurelia.cubaramos@epfl.ch>
*
* @date creation: Thu Feb 21 2013
* @date last modification: Wed Nov 25 2015
*
* @brief test material for the non-local neighborhood base test
*
* @section LICENSE
*
* Copyright (©) 2014, 2015 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 "material_damage.hh"
#include "material_non_local.hh"
#ifndef __TEST_MATERIAL_HH__
#define __TEST_MATERIAL_HH__
__BEGIN_AKANTU__
template
<
UInt
dim
>
class
TestMaterial
:
public
MaterialDamage
<
dim
,
MaterialElastic
>
,
public
MaterialNonLocal
<
dim
>
{
/* ------------------------------------------------------------------------ */
/* Constructor/Destructor */
/* ------------------------------------------------------------------------ */
public
:
TestMaterial
(
SolidMechanicsModel
&
model
,
const
ID
&
id
);
virtual
~
TestMaterial
(){};
typedef
MaterialNonLocal
<
dim
>
MyNonLocalParent
;
typedef
MaterialDamage
<
dim
,
MaterialElastic
>
MyLocalParent
;
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
initMaterial
();
void
computeNonLocalStresses
(
__attribute__
((
unused
))
GhostType
ghost_type
){};
void
insertQuadsInNeighborhoods
(
GhostType
ghost_type
);
virtual
void
registerNeighborhood
();
/* ------------------------------------------------------------------------ */
/* Members */
/* ------------------------------------------------------------------------ */
private
:
InternalField
<
Real
>
grad_u_nl
;
};
__END_AKANTU__
#endif
/* __TEST_MATERIAL_HH__ */
Event Timeline
Log In to Comment