Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CardMech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
KIT
Mpp
CardMech
Commits
ae1a2ef0
Commit
ae1a2ef0
authored
4 days ago
by
Laura Stengel
Browse files
Options
Downloads
Patches
Plain Diff
has to be updated again!!! (but first implement prolongate also for EG and DG)
parent
89c8d63a
No related branches found
Branches containing commit
No related tags found
1 merge request
!276
i..
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/elasticity/solvers/IterativePressureSolver.cpp
+20
-21
20 additions, 21 deletions
src/elasticity/solvers/IterativePressureSolver.cpp
with
20 additions
and
21 deletions
src/elasticity/solvers/IterativePressureSolver.cpp
+
20
−
21
View file @
ae1a2ef0
...
...
@@ -21,7 +21,6 @@ bool IterativePressureSolver::Method(IElasticity &assemble, Vector &u) {
<<
endl
;
Vector
uNew
(
u
);
Initialize
(
assemble
,
uNew
);
while
(
!
iteration
.
IsFinished
())
{
bool
converged
=
Step
(
assemble
,
uNew
);
...
...
@@ -84,29 +83,29 @@ bool KlotzPressureSolver::Step(IElasticity &assemble, Vector &u) {
return
conv
;
}
void
CalculatePrestress
(
IElasticity
&
assemble
,
Vector
&
u
)
{
int
prestressSteps
{
1
};
Config
::
Get
(
"PrestressSteps"
,
prestressSteps
);
int
prestressLevel
=
0
;
Config
::
Get
(
"PrestressLevel"
,
prestressLevel
);
Vector
uPrestressLevel
(
assemble
.
GetSharedDisc
(),
prestressLevel
);
uPrestressLevel
.
Accumulate
();
IterativePressureSolver
prestressSolver
(
assemble
.
GetElasticityProblem
(),
prestressSteps
);
prestressSolver
.
Method
(
assemble
,
uPrestressLevel
);
LagrangeTransfer
lagrangeT
(
uPrestressLevel
,
u
);
lagrangeT
.
Prolongate
(
uPrestressLevel
,
u
);
assemble
.
InitializePrestress
(
u
);
//u.Clear();
}
//old version
//TODO implement EG Prolongarte and use this newer version again!!!
//void CalculatePrestress(IElasticity &assemble, Vector &u) {
// int prestressSteps{1};
// Config::Get("PrestressSteps", prestressSteps);
//
// int prestressLevel=0;
// Config::Get("PrestressLevel", prestressLevel);
// Vector uPrestressLevel(assemble.GetSharedDisc(),prestressLevel);
// uPrestressLevel.Accumulate();
// IterativePressureSolver prestressSolver(assemble.GetElasticityProblem(), prestressSteps);
// prestressSolver.Method(assemble, u);
// mout << "u after preStressSolver.Method " << u << endl << endl;
// prestressSolver.Method(assemble, uPrestressLevel);
// LagrangeTransfer lagrangeT(uPrestressLevel,u);
// lagrangeT.Prolongate(uPrestressLevel,u);
// assemble.InitializePrestress(u);
// //u.Clear();
//}
\ No newline at end of file
//}
//old version
void
CalculatePrestress
(
IElasticity
&
assemble
,
Vector
&
u
)
{
int
prestressSteps
{
1
};
Config
::
Get
(
"PrestressSteps"
,
prestressSteps
);
IterativePressureSolver
prestressSolver
(
assemble
.
GetElasticityProblem
(),
prestressSteps
);
prestressSolver
.
Method
(
assemble
,
u
);
assemble
.
InitializePrestress
(
u
);
//u.Clear();
}
\ No newline at end of file
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