Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
9510df63
Commit
9510df63
authored
Jul 05, 2010
by
Backofen, Rainer
Browse files
changed heat demo to have some working example
parent
ab3182cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
demo/init/heat.dat.2d
View file @
9510df63
...
@@ -15,16 +15,17 @@ heat->space->solver->left precon: no
...
@@ -15,16 +15,17 @@ heat->space->solver->left precon: no
heat->space->solver->right precon: no
heat->space->solver->right precon: no
heat->space->estimator: residual
heat->space->estimator: residual
heat->space->estimator->C0:
1.0
heat->space->estimator->C0:
0.1
heat->space->estimator->C1:
1.0
heat->space->estimator->C1:
0.1
heat->theta: 1.0
heat->theta: 1.0
heat->adapt->timestep: 0.1
heat->adapt->timestep: 0.01
heat->adapt->min timestep: 0.01
heat->adapt->start time: 0.0
heat->adapt->start time: 0.0
heat->adapt->end time: 1.0
heat->adapt->end time: 1
0
.0
heat->adapt->tolerance: 0.1
heat->adapt->tolerance: 0.
000
1
heat->adapt->rel space error: 0.5
heat->adapt->rel space error: 0.5
heat->adapt->rel time error: 0.5
heat->adapt->rel time error: 0.5
heat->adapt->time theta 1: 1.0
heat->adapt->time theta 1: 1.0
...
@@ -36,13 +37,14 @@ heat->adapt->time delta 2: 1.4142
...
@@ -36,13 +37,14 @@ heat->adapt->time delta 2: 1.4142
heat->adapt->max iteration: 100
heat->adapt->max iteration: 100
heat->adapt->coarsen allowed: 1 % 0|1
heat->adapt->coarsen allowed: 1 % 0|1
heat->adapt->refine bisections:
2
heat->adapt->refine bisections:
1
heat->adapt->coarsen bisections:
2
heat->adapt->coarsen bisections:
1
heat->space->marker->strategy:
2
% 0=none, 1=GR, 2=MS, 3=ES, 4=GERS
heat->space->marker->strategy:
4
% 0=none, 1=GR, 2=MS, 3=ES, 4=GERS
heat->space->marker->MSGamma: 0.5
heat->space->marker->MSGamma: 0.5
heat->space->marker->MSGammaC: 0.1
heat->space->marker->MSGammaC: 0.1
heat->space->output->ParaView animation: 1
heat->space->output->filename: output/heat
heat->space->output->filename: output/heat
heat->space->output->ParaView format: 1
heat->space->output->ParaView format: 1
heat->space->output->write every i-th timestep: 1
heat->space->output->write every i-th timestep: 1
...
...
demo/src/heat.cc
View file @
9510df63
...
@@ -230,7 +230,7 @@ int main(int argc, char** argv)
...
@@ -230,7 +230,7 @@ int main(int argc, char** argv)
boundaryFct
->
setTimePtr
(
heat
.
getBoundaryTimePtr
());
boundaryFct
->
setTimePtr
(
heat
.
getBoundaryTimePtr
());
heat
.
setExactSolution
(
boundaryFct
);
heat
.
setExactSolution
(
boundaryFct
);
heatSpace
.
addDirichletBC
(
DIRICHLET
,
boundaryFct
);
//
heatSpace.addDirichletBC(DIRICHLET, boundaryFct);
// ===== start adaption loop =====
// ===== start adaption loop =====
...
...
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