OGS
SmallDeformation/ConstitutiveRelations/Gravity.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
Gravity.h
"
5
6
namespace
ProcessLib::SmallDeformation
7
{
8
template
<
int
DisplacementDim>
9
void
GravityModel<DisplacementDim>::eval
(
10
SolidDensity
const
& rho_SR,
VolumetricBodyForce<DisplacementDim>
& out)
const
11
{
12
*out = *rho_SR *
specific_body_force_
();
13
}
14
15
template
struct
GravityModel<2>
;
16
template
struct
GravityModel<3>
;
17
}
// namespace ProcessLib::SmallDeformation
Gravity.h
ProcessLib::SmallDeformation
Definition
SmallDeformation/ConstitutiveRelations/Base.h:10
ProcessLib::SmallDeformation::SolidDensity
BaseLib::StrongType< double, struct SolidDensityTag > SolidDensity
Definition
SmallDeformation/ConstitutiveRelations/SolidDensity.h:11
ProcessLib::SmallDeformation::VolumetricBodyForce
BaseLib::StrongType< GlobalDimVector< DisplacementDim >, struct GravityTag > VolumetricBodyForce
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:13
ProcessLib::SmallDeformation::GravityModel
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:18
ProcessLib::SmallDeformation::GravityModel::eval
void eval(SolidDensity const &rho_SR, VolumetricBodyForce< DisplacementDim > &out) const
Definition
SmallDeformation/ConstitutiveRelations/Gravity.cpp:9
ProcessLib::SmallDeformation::GravityModel::specific_body_force_
ProcessLib::ConstitutiveRelations::SpecificBodyForce< DisplacementDim > const specific_body_force_
Definition
SmallDeformation/ConstitutiveRelations/Gravity.h:38
ProcessLib
SmallDeformation
ConstitutiveRelations
Gravity.cpp
Generated by
1.14.0