Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
podlesny
dune-tectonic
Commits
08860f25
Commit
08860f25
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename: ignoreNodes -> velocityDirichletNodes,
parent
655ac103
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/one-body-sample.cc
+13
-13
13 additions, 13 deletions
src/one-body-sample.cc
with
13 additions
and
13 deletions
src/one-body-sample.cc
+
13
−
13
View file @
08860f25
...
@@ -89,7 +89,7 @@ template <class VectorType, class MatrixType, class FunctionType, int dims>
...
@@ -89,7 +89,7 @@ template <class VectorType, class MatrixType, class FunctionType, int dims>
Dune
::
shared_ptr
<
TimeSteppingScheme
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
Dune
::
shared_ptr
<
TimeSteppingScheme
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
initTimeStepper
(
Config
::
scheme
scheme
,
initTimeStepper
(
Config
::
scheme
scheme
,
FunctionType
const
&
velocityDirichletFunction
,
FunctionType
const
&
velocityDirichletFunction
,
Dune
::
BitSetVector
<
dims
>
const
&
ignore
Nodes
,
Dune
::
BitSetVector
<
dims
>
const
&
velocityDirichlet
Nodes
,
MatrixType
const
&
massMatrix
,
MatrixType
const
&
stiffnessMatrix
,
MatrixType
const
&
massMatrix
,
MatrixType
const
&
stiffnessMatrix
,
VectorType
const
&
u_initial
,
VectorType
const
&
v_initial
,
VectorType
const
&
u_initial
,
VectorType
const
&
v_initial
,
VectorType
const
&
a_initial
)
{
VectorType
const
&
a_initial
)
{
...
@@ -97,18 +97,18 @@ initTimeStepper(Config::scheme scheme,
...
@@ -97,18 +97,18 @@ initTimeStepper(Config::scheme scheme,
case
Config
::
ImplicitEuler
:
case
Config
::
ImplicitEuler
:
return
Dune
::
make_shared
<
return
Dune
::
make_shared
<
ImplicitEuler
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
ImplicitEuler
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
u_initial
,
v_initial
,
ignore
Nodes
,
stiffnessMatrix
,
u_initial
,
v_initial
,
velocityDirichlet
Nodes
,
velocityDirichletFunction
);
velocityDirichletFunction
);
case
Config
::
Newmark
:
case
Config
::
Newmark
:
return
Dune
::
make_shared
<
return
Dune
::
make_shared
<
Newmark
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
Newmark
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
a_initial
,
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
a_initial
,
ignore
Nodes
,
velocityDirichletFunction
);
velocityDirichlet
Nodes
,
velocityDirichletFunction
);
case
Config
::
EulerPair
:
case
Config
::
EulerPair
:
return
Dune
::
make_shared
<
return
Dune
::
make_shared
<
EulerPair
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
EulerPair
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
ignoreNodes
,
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
velocityDirichletFunction
);
velocityDirichletNodes
,
velocityDirichletFunction
);
default:
default:
assert
(
false
);
assert
(
false
);
}
}
...
@@ -208,7 +208,7 @@ int main(int argc, char *argv[]) {
...
@@ -208,7 +208,7 @@ int main(int argc, char *argv[]) {
Assembler
<
P1Basis
,
P1Basis
>
const
p1Assembler
(
p1Basis
,
p1Basis
);
Assembler
<
P1Basis
,
P1Basis
>
const
p1Assembler
(
p1Basis
,
p1Basis
);
// Set up the boundary
// Set up the boundary
Dune
::
BitSetVector
<
dims
>
ignore
Nodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
dims
>
velocityDirichlet
Nodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
dims
>
noNodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
dims
>
noNodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
1
>
neumannNodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
1
>
neumannNodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
1
>
frictionalNodes
(
finestSize
,
false
);
Dune
::
BitSetVector
<
1
>
frictionalNodes
(
finestSize
,
false
);
...
@@ -227,12 +227,12 @@ int main(int argc, char *argv[]) {
...
@@ -227,12 +227,12 @@ int main(int argc, char *argv[]) {
// lower face
// lower face
if
(
localCoordinates
[
1
]
==
lowerLeft
[
1
])
{
if
(
localCoordinates
[
1
]
==
lowerLeft
[
1
])
{
frictionalNodes
[
id
]
=
true
;
frictionalNodes
[
id
]
=
true
;
ignore
Nodes
[
id
][
1
]
=
true
;
velocityDirichlet
Nodes
[
id
][
1
]
=
true
;
}
}
// upper face
// upper face
else
if
(
localCoordinates
[
1
]
==
upperRight
[
1
])
else
if
(
localCoordinates
[
1
]
==
upperRight
[
1
])
ignore
Nodes
[
id
]
=
true
;
velocityDirichlet
Nodes
[
id
]
=
true
;
// right face (except for both corners)
// right face (except for both corners)
else
if
(
localCoordinates
[
0
]
==
upperRight
[
0
])
else
if
(
localCoordinates
[
0
]
==
upperRight
[
0
])
...
@@ -387,7 +387,7 @@ int main(int argc, char *argv[]) {
...
@@ -387,7 +387,7 @@ int main(int argc, char *argv[]) {
auto
const
solverTolerance
=
parset
.
get
<
double
>
(
"solver.tolerance"
);
auto
const
solverTolerance
=
parset
.
get
<
double
>
(
"solver.tolerance"
);
MySolver
<
dims
,
MatrixType
,
VectorType
,
GridType
>
solverHost
(
MySolver
<
dims
,
MatrixType
,
VectorType
,
GridType
>
solverHost
(
parset
.
sub
(
"solver.tnnmg"
),
refinements
,
solverTolerance
,
*
grid
,
parset
.
sub
(
"solver.tnnmg"
),
refinements
,
solverTolerance
,
*
grid
,
ignore
Nodes
);
velocityDirichlet
Nodes
);
auto
multigridStep
=
solverHost
.
getSolver
();
auto
multigridStep
=
solverHost
.
getSolver
();
Solver
::
VerbosityMode
const
verbosity
=
Solver
::
VerbosityMode
const
verbosity
=
parset
.
get
<
bool
>
(
"verbose"
)
?
Solver
::
FULL
:
Solver
::
QUIET
;
parset
.
get
<
bool
>
(
"verbose"
)
?
Solver
::
FULL
:
Solver
::
QUIET
;
...
@@ -406,10 +406,10 @@ int main(int argc, char *argv[]) {
...
@@ -406,10 +406,10 @@ int main(int argc, char *argv[]) {
std
::
fstream
iterationWriter
(
"iterations"
,
std
::
fstream
::
out
);
std
::
fstream
iterationWriter
(
"iterations"
,
std
::
fstream
::
out
);
std
::
fstream
dampingWriter
(
"damping"
,
std
::
fstream
::
out
);
std
::
fstream
dampingWriter
(
"damping"
,
std
::
fstream
::
out
);
auto
timeSteppingScheme
=
auto
timeSteppingScheme
=
initTimeStepper
(
initTimeStepper
(
parset
.
get
<
Config
::
scheme
>
(
"timeSteppingScheme"
),
parset
.
get
<
Config
::
scheme
>
(
"timeSteppingScheme"
),
velocityDirichletFunction
,
ignore
Nodes
,
massMatrix
,
velocityDirichletFunction
,
velocityDirichlet
Nodes
,
massMatrix
,
stiffnessMatrix
,
u_initial
,
v_initial
,
a_initial
);
stiffnessMatrix
,
u_initial
,
v_initial
,
a_initial
);
auto
stateUpdater
=
initStateUpdater
<
SingletonVectorType
,
VectorType
>
(
auto
stateUpdater
=
initStateUpdater
<
SingletonVectorType
,
VectorType
>
(
parset
.
get
<
Config
::
state_model
>
(
"boundary.friction.state_model"
),
parset
.
get
<
Config
::
state_model
>
(
"boundary.friction.state_model"
),
alpha_initial
,
frictionalNodes
,
frictionData
);
alpha_initial
,
frictionalNodes
,
frictionData
);
...
...
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