Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78357032
structural_mechanics_model_mass.cc
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, Aug 20, 02:08
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Aug 22, 02:08 (2 d)
Engine
blob
Format
Raw Data
Handle
19988251
Attached To
rAKA akantu
structural_mechanics_model_mass.cc
View Options
/**
* @file structural_mechanics_model_mass.cc
*
* @author Sébastien Hartmann <sebastien.hartmann@epfl.ch>
*
* @date creation: Mon Jul 07 2014
* @date last modification: Thu Oct 15 2015
*
* @brief function handling mass computation
*
* @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 "structural_mechanics_model.hh"
#include "material.hh"
#include "integrator_gauss.hh"
#include "shape_structural.hh"
/* -------------------------------------------------------------------------- */
namespace
akantu
{
class
ComputeRhoFunctor
{
public
:
explicit
ComputeRhoFunctor
(
const
StructuralMechanicsModel
&
model
)
:
model
(
model
){};
void
operator
()(
Matrix
<
Real
>
&
rho
,
const
Element
&
element
)
const
{
Real
mat_rho
=
model
.
getMaterial
(
element
).
rho
;
rho
.
set
(
mat_rho
);
}
private
:
const
StructuralMechanicsModel
&
model
;
};
/* -------------------------------------------------------------------------- */
void
StructuralMechanicsModel
::
assembleMass
(){
AKANTU_DEBUG_IN
();
assembleMass
(
_not_ghost
);
AKANTU_DEBUG_OUT
();
}
/* -------------------------------------------------------------------------- */
void
StructuralMechanicsModel
::
assembleMass
(
GhostType
ghost_type
)
{
AKANTU_DEBUG_IN
();
#if 0
MyFEEngineType & fem = getFEEngineClass<MyFEEngineType>();
ComputeRhoFunctor compute_rho(*this);
for (auto type : mesh.elementTypes(spatial_dimension, ghost_type, _ek_structural)) {
fem.assembleFieldMatrix(compute_rho, "M", "displacement",
this->getDOFManager(), type, ghost_type);
}
#endif
AKANTU_DEBUG_OUT
();
}
}
// akantu
Event Timeline
Log In to Comment