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
c8257f39
Commit
c8257f39
authored
7 years ago
by
Dmitri Naumov
Browse files
Options
Downloads
Patches
Plain Diff
[MatL] Ehlers; Rename material state class.
For unknown reasons MSVC-15 and 17 refuse to compile the original code.
parent
1795ba69
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/Ehlers-impl.h
+5
-5
5 additions, 5 deletions
MaterialLib/SolidModels/Ehlers-impl.h
MaterialLib/SolidModels/Ehlers.h
+7
-7
7 additions, 7 deletions
MaterialLib/SolidModels/Ehlers.h
with
12 additions
and
12 deletions
MaterialLib/SolidModels/Ehlers-impl.h
+
5
−
5
View file @
c8257f39
...
...
@@ -670,11 +670,11 @@ SolidEhlers<DisplacementDim>::integrateStress(
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
const
&
material_state_variables
)
{
assert
(
dynamic_cast
<
Material
StateVariables
<
DisplacementDim
>
const
*>
(
assert
(
dynamic_cast
<
StateVariables
<
DisplacementDim
>
const
*>
(
&
material_state_variables
)
!=
nullptr
);
Material
StateVariables
<
DisplacementDim
>
state
=
static_cast
<
Material
StateVariables
<
DisplacementDim
>
const
&>
(
StateVariables
<
DisplacementDim
>
state
=
static_cast
<
StateVariables
<
DisplacementDim
>
const
&>
(
material_state_variables
);
state
.
setInitialConditions
();
...
...
@@ -759,14 +759,14 @@ SolidEhlers<DisplacementDim>::integrateStress(
return
std
::
make_tuple
(
mp
.
G
*
sigma
*
(
1
-
state
.
damage
.
value
()),
std
::
unique_ptr
<
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
>
{
new
Material
StateVariables
<
DisplacementDim
>
{
state
}},
new
StateVariables
<
DisplacementDim
>
{
state
}},
tangentStiffness
);
return
{
mp
.
G
*
sigma
,
std
::
unique_ptr
<
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
>
{
new
Material
StateVariables
<
DisplacementDim
>
{
state
}},
new
StateVariables
<
DisplacementDim
>
{
state
}},
tangentStiffness
};
}
...
...
This diff is collapsed.
Click to expand it.
MaterialLib/SolidModels/Ehlers.h
+
7
−
7
View file @
c8257f39
...
...
@@ -133,16 +133,16 @@ private:
};
template
<
int
DisplacementDim
>
struct
Material
StateVariables
struct
StateVariables
:
public
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
{
Material
StateVariables
&
operator
=
(
Material
StateVariables
const
&
)
=
default
;
StateVariables
&
operator
=
(
StateVariables
const
&
)
=
default
;
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
&
operator
=
(
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
const
&
state
)
noexcept
override
{
assert
(
dynamic_cast
<
Material
StateVariables
const
*>
(
&
state
)
!=
nullptr
);
return
operator
=
(
static_cast
<
Material
StateVariables
const
&>
(
state
));
assert
(
dynamic_cast
<
StateVariables
const
*>
(
&
state
)
!=
nullptr
);
return
operator
=
(
static_cast
<
StateVariables
const
&>
(
state
));
}
void
setInitialConditions
()
...
...
@@ -168,7 +168,7 @@ struct MaterialStateVariables
#ifndef NDEBUG
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
Material
StateVariables
<
DisplacementDim
>
const
&
m
)
std
::
ostream
&
os
,
StateVariables
<
DisplacementDim
>
const
&
m
)
{
os
<<
"State:
\n
"
<<
"eps_p_D: "
<<
m
.
eps_p
.
D
<<
"
\n
"
...
...
@@ -205,8 +205,8 @@ public:
typename
MechanicsBase
<
DisplacementDim
>::
MaterialStateVariables
>
createMaterialStateVariables
()
override
{
return
std
::
unique_ptr
<
Material
StateVariables
<
DisplacementDim
>>
{
new
Material
StateVariables
<
DisplacementDim
>
};
return
std
::
unique_ptr
<
StateVariables
<
DisplacementDim
>>
{
new
StateVariables
<
DisplacementDim
>
};
}
public
:
...
...
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