Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
CardMech
Commits
0708c473
Commit
0708c473
authored
Jun 10, 2022
by
uheqb
Browse files
generalized Prestress in MainElasticity
parent
2a78e345
Pipeline
#218951
failed with stages
in 98 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cardmech/src/elasticity/MainElasticity.cpp
View file @
0708c473
...
...
@@ -105,8 +105,8 @@ void MainElasticity::initAssemble() {
config
.
get
(
"WithPrestress"
,
prestress
);
if
(
prestress
)
{
StaticPressureProblem
prestressPressure
(
pressureProblem
->
InitialPressure
());
Lagrang
eElasticity
pEla
(
*
elasticityProblem
,
prestressPressure
,
*
meshes
,
degree
,
isStatic
);
IterativePressureSolver
prestressSolver
(
p
Ela
,
prestressPressure
);
prestressedEla
=
CreateFinit
eElasticity
Assemble
(
*
elasticityProblem
,
prestressPressure
,
*
meshes
,
degree
,
isStatic
);
IterativePressureSolver
prestressSolver
(
*
prestressed
Ela
,
prestressPressure
);
Vector
p
(
0.0
,
*
displacement
);
prestressSolver
.
Solve
(
p
,
prestressSteps
);
mechA
->
InitializePrestress
(
p
);
...
...
cardmech/src/elasticity/MainElasticity.hpp
View file @
0708c473
...
...
@@ -23,6 +23,7 @@ class MainElasticity : public MainCardMech {
std
::
unique_ptr
<
IDiscretization
>
scalarDisc
=
nullptr
;
std
::
unique_ptr
<
FiniteElasticity
>
mechA
=
nullptr
;
std
::
unique_ptr
<
FiniteElasticity
>
prestressedEla
=
nullptr
;
std
::
unique_ptr
<
TimeSeries
>
tSeries
=
nullptr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment