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
b08d3bd8
Commit
b08d3bd8
authored
2 years ago
by
Laura Stengel
Browse files
Options
Downloads
Patches
Plain Diff
Documented SegregatedSolver
parent
5a4ef232
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!231
Resolve "Document Code"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/coupled/solvers/SegregatedSolver.cpp
+1
-0
1 addition, 0 deletions
src/coupled/solvers/SegregatedSolver.cpp
src/coupled/solvers/SegregatedSolver.hpp
+3
-0
3 additions, 0 deletions
src/coupled/solvers/SegregatedSolver.hpp
with
4 additions
and
0 deletions
src/coupled/solvers/SegregatedSolver.cpp
+
1
−
0
View file @
b08d3bd8
...
...
@@ -61,6 +61,7 @@ SegregatedSolver::EvaluateIteration(const IElphyAssemble &elphyAssemble, const I
evaluationMetrics
[
metrics
[
19
]].
emplace_back
(
elphyAssemble
.
L2Norm
(
mechValues
[
1
]));
evaluationMetrics
[
metrics
[
20
]].
emplace_back
(
elphyAssemble
.
H1Norm
(
mechValues
[
1
]));
// Get some metrices from src/elasticity/problem/ElasticityProblem.hpp (for the mechanics part)
auto
problemMetrics
=
mechAssemble
.
GetElasticityProblem
().
EvaluationMetrics
();
auto
problemEntries
=
mechAssemble
.
GetElasticityProblem
().
EvaluationResults
(
mechValues
[
0
]);
for
(
int
i
=
0
;
i
<
problemMetrics
.
size
();
++
i
)
{
...
...
This diff is collapsed.
Click to expand it.
src/coupled/solvers/SegregatedSolver.hpp
+
3
−
0
View file @
b08d3bd8
...
...
@@ -23,6 +23,7 @@ class SegregatedSolver : public CardiacSolver {
std
::
unique_ptr
<
ElphySolver
>
elphySolver
;
std
::
unique_ptr
<
ElastodynamicTimeIntegrator
>
mechSolver
;
/// Creates some output for each step.
void
printStep
();
void
printFullEvaluation
();
void
initEvaluation
(
const
IElphyAssemble
&
elphyAssemble
,
...
...
@@ -62,8 +63,10 @@ public:
void
Initialize
(
IElphyAssemble
&
elphyAssemble
,
IElasticity
&
mechAssemble
,
Vector
&
potential
,
Vector
&
displacement
);
/// Solves coupled equation from mechAssemble.firstTimeStep to mechAssemble.lastTimeStep
void
Method
(
IElphyAssemble
&
elphyAssemble
,
IElasticity
&
mechAssemble
,
Vector
&
potential
,
Vector
&
displacement
);
/// Calculates next timestep for the mechanics as well as for the electrophysiology.
void
Step
(
IElphyAssemble
&
elphyAssemble
,
IElasticity
&
mechAssemble
,
Vectors
&
elphyValues
,
Vectors
&
mechValues
);
void
Finalize
(
Vectors
&
values
)
{};
...
...
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