OGS
SmallDeformation/ConstitutiveRelations/Gravity.h
Go to the documentation of this file.
1
9
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
SmallDeformation/ConstitutiveRelations/Base.h:20
ProcessLib::SmallDeformation::SolidDensity
BaseLib::StrongType< double, struct SolidDensityTag > SolidDensity
Definition
SmallDeformation/ConstitutiveRelations/SolidDensity.h:17
ProcessLib::SmallDeformation::VolumetricBodyForce
BaseLib::StrongType< GlobalDimVector< DisplacementDim >, struct GravityTag > VolumetricBodyForce
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:18
BaseLib::StrongType
Definition
StrongType.h:25
ProcessLib::SmallDeformation::GravityModel
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:23
ProcessLib::SmallDeformation::GravityModel::eval
void eval(SolidDensity const &rho_SR, VolumetricBodyForce< DisplacementDim > &out) const
Definition
SmallDeformation/ConstitutiveRelations/Gravity.cpp:15
ProcessLib::SmallDeformation::GravityModel::specific_body_force_
Eigen::Vector< double, DisplacementDim > const specific_body_force_
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:35
ProcessLib::SmallDeformation::GravityModel::GravityModel
GravityModel(Eigen::Vector< double, DisplacementDim > const &specific_body_force)
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:24
ProcessLib
SmallDeformation
ConstitutiveRelations
Gravity.h
Generated by
1.14.0