OGS
Gravity.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
BaseLib/StrongType.h
"
13
#include "
SolidDensity.h
"
14
15
namespace
ProcessLib::SmallDeformation
16
{
17
template
<
int
DisplacementDim>
18
using
VolumetricBodyForce
=
19
BaseLib::StrongType<GlobalDimVector<DisplacementDim>
,
struct
GravityTag>;
20
21
template
<
int
DisplacementDim>
22
struct
GravityModel
23
{
24
explicit
GravityModel
(
25
Eigen::Vector<double, DisplacementDim>
const
& specific_body_force)
26
:
specific_body_force_
(specific_body_force)
27
{
28
}
29
30
void
eval
(
SolidDensity
const
& rho_SR,
31
VolumetricBodyForce<DisplacementDim>
& out)
const
;
32
33
private
:
34
// TODO (naumov) Do we need to store this for each integration point?
35
Eigen::Vector<double, DisplacementDim>
const
specific_body_force_
;
36
};
37
38
extern
template
struct
GravityModel<2>
;
39
extern
template
struct
GravityModel<3>
;
40
}
// namespace ProcessLib::SmallDeformation
SolidDensity.h
StrongType.h
ProcessLib::SmallDeformation
Definition
Base.h:20
BaseLib::StrongType
Definition
StrongType.h:25
ProcessLib::SmallDeformation::GravityModel
Definition
Gravity.h:23
ProcessLib::SmallDeformation::GravityModel::eval
void eval(SolidDensity const &rho_SR, VolumetricBodyForce< DisplacementDim > &out) const
Definition
Gravity.cpp:15
ProcessLib::SmallDeformation::GravityModel::specific_body_force_
Eigen::Vector< double, DisplacementDim > const specific_body_force_
Definition
Gravity.h:35
ProcessLib::SmallDeformation::GravityModel::GravityModel
GravityModel(Eigen::Vector< double, DisplacementDim > const &specific_body_force)
Definition
Gravity.h:24
ProcessLib
SmallDeformation
ConstitutiveRelations
Gravity.h
Generated by
1.11.0