Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
c8458a84
Commit
c8458a84
authored
8 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MatL] Lubby2: Extract material properties class.
parent
6c2d0256
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MaterialLib/SolidModels/CreateLubby2.h
+1
-2
1 addition, 2 deletions
MaterialLib/SolidModels/CreateLubby2.h
MaterialLib/SolidModels/Lubby2.h
+38
-2
38 additions, 2 deletions
MaterialLib/SolidModels/Lubby2.h
with
39 additions
and
4 deletions
MaterialLib/SolidModels/CreateLubby2.h
+
1
−
2
View file @
c8458a84
...
@@ -92,8 +92,7 @@ std::unique_ptr<MechanicsBase<DisplacementDim>> createLubby2(
...
@@ -92,8 +92,7 @@ std::unique_ptr<MechanicsBase<DisplacementDim>> createLubby2(
DBUG
(
"Use '%s' as dependency parameter mvM."
,
DBUG
(
"Use '%s' as dependency parameter mvM."
,
dependency_parameter_mvM
.
name
.
c_str
());
dependency_parameter_mvM
.
name
.
c_str
());
Lubby2MaterialProperties
mp
{
typename
Lubby2
<
DisplacementDim
>::
MaterialProperties
mp
{
kelvin_shear_modulus
,
maxwell_shear_modulus
,
kelvin_shear_modulus
,
maxwell_shear_modulus
,
maxwell_bulk_modulus
,
kelvin_viscosity
,
maxwell_bulk_modulus
,
kelvin_viscosity
,
maxwell_viscosity
,
dependency_parameter_mK
,
maxwell_viscosity
,
dependency_parameter_mK
,
...
...
This diff is collapsed.
Click to expand it.
MaterialLib/SolidModels/Lubby2.h
+
38
−
2
View file @
c8458a84
...
@@ -20,6 +20,42 @@ namespace MaterialLib
...
@@ -20,6 +20,42 @@ namespace MaterialLib
{
{
namespace
Solids
namespace
Solids
{
{
//
// Variables specific to the material model.
//
struct
Lubby2MaterialProperties
{
using
P
=
ProcessLib
::
Parameter
<
double
>
;
Lubby2MaterialProperties
(
P
const
&
GK0_
,
P
const
&
GM0_
,
P
const
&
KM0_
,
P
const
&
etaK0_
,
P
const
&
etaM0_
,
P
const
&
mK_
,
P
const
&
mvK_
,
P
const
&
mvM_
)
:
GK0
(
GK0_
),
GM0
(
GM0_
),
KM0
(
KM0_
),
etaK0
(
etaK0_
),
etaM0
(
etaM0_
),
mK
(
mK_
),
mvK
(
mvK_
),
mvM
(
mvM_
)
{
}
// basic material parameters
P
const
&
GK0
;
P
const
&
GM0
;
P
const
&
KM0
;
P
const
&
etaK0
;
P
const
&
etaM0
;
P
const
&
mK
;
P
const
&
mvK
;
P
const
&
mvM
;
};
template
<
int
DisplacementDim
>
template
<
int
DisplacementDim
>
class
Lubby2
final
:
public
MechanicsBase
<
DisplacementDim
>
class
Lubby2
final
:
public
MechanicsBase
<
DisplacementDim
>
{
{
...
@@ -121,7 +157,7 @@ public:
...
@@ -121,7 +157,7 @@ public:
Eigen
::
RowMajor
>
;
Eigen
::
RowMajor
>
;
public
:
public
:
explicit
Lubby2
(
MaterialProperties
&
material_properties
)
explicit
Lubby2
(
Lubby2
MaterialProperties
&
material_properties
)
:
_mp
(
material_properties
)
:
_mp
(
material_properties
)
{
{
}
}
...
@@ -190,7 +226,7 @@ private:
...
@@ -190,7 +226,7 @@ private:
}
}
private
:
private
:
MaterialProperties
_mp
;
Lubby2
MaterialProperties
_mp
;
};
};
extern
template
class
Lubby2
<
2
>;
extern
template
class
Lubby2
<
2
>;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment