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
4f5dea16
Commit
4f5dea16
authored
11 years ago
by
Elias Pipping
Committed by
Elias Pipping
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Cleanup] Rename: dirichletFunction -> velocityDirichletFunction
parent
4e6db7b0
No related branches found
Branches containing commit
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
+8
-7
8 additions, 7 deletions
src/one-body-sample.cc
with
8 additions
and
7 deletions
src/one-body-sample.cc
+
8
−
7
View file @
4f5dea16
...
...
@@ -87,7 +87,8 @@ int const dims = DIM;
template
<
class
VectorType
,
class
MatrixType
,
class
FunctionType
,
int
dims
>
Dune
::
shared_ptr
<
TimeSteppingScheme
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
initTimeStepper
(
Config
::
scheme
scheme
,
FunctionType
const
&
dirichletFunction
,
initTimeStepper
(
Config
::
scheme
scheme
,
FunctionType
const
&
velocityDirichletFunction
,
Dune
::
BitSetVector
<
dims
>
const
&
ignoreNodes
,
MatrixType
const
&
massMatrix
,
MatrixType
const
&
stiffnessMatrix
,
VectorType
const
&
u_initial
,
VectorType
const
&
v_initial
,
...
...
@@ -97,17 +98,17 @@ initTimeStepper(Config::scheme scheme, FunctionType const &dirichletFunction,
return
Dune
::
make_shared
<
ImplicitEuler
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
u_initial
,
v_initial
,
ignoreNodes
,
d
irichletFunction
);
velocityD
irichletFunction
);
case
Config
::
Newmark
:
return
Dune
::
make_shared
<
Newmark
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
a_initial
,
ignoreNodes
,
d
irichletFunction
);
ignoreNodes
,
velocityD
irichletFunction
);
case
Config
::
EulerPair
:
return
Dune
::
make_shared
<
EulerPair
<
VectorType
,
MatrixType
,
FunctionType
,
dims
>>
(
stiffnessMatrix
,
massMatrix
,
u_initial
,
v_initial
,
ignoreNodes
,
d
irichletFunction
);
velocityD
irichletFunction
);
default:
assert
(
false
);
}
...
...
@@ -247,7 +248,7 @@ int main(int argc, char *argv[]) {
using
FunctionType
=
Dune
::
VirtualFunction
<
double
,
double
>
;
SharedPointerMap
<
std
::
string
,
FunctionType
>
functions
;
initPython
(
functions
);
auto
const
&
d
irichletFunction
=
functions
.
get
(
"dirichletCondition"
);
auto
const
&
velocityD
irichletFunction
=
functions
.
get
(
"dirichletCondition"
);
auto
const
&
neumannFunction
=
functions
.
get
(
"neumannCondition"
);
// Set up normal stress, mass matrix, and gravity functional
...
...
@@ -350,7 +351,7 @@ int main(int argc, char *argv[]) {
// condition match up at t=0
v_initial
=
0.0
;
double
v_initial_const
;
d
irichletFunction
.
evaluate
(
0.0
,
v_initial_const
);
velocityD
irichletFunction
.
evaluate
(
0.0
,
v_initial_const
);
for
(
size_t
i
=
0
;
i
<
v_initial
.
size
();
++
i
)
v_initial
[
i
][
0
]
=
v_initial_const
;
}
...
...
@@ -406,7 +407,7 @@ int main(int argc, char *argv[]) {
auto
timeSteppingScheme
=
initTimeStepper
(
parset
.
get
<
Config
::
scheme
>
(
"timeSteppingScheme"
),
d
irichletFunction
,
ignoreNodes
,
massMatrix
,
velocityD
irichletFunction
,
ignoreNodes
,
massMatrix
,
stiffnessMatrix
,
u_initial
,
v_initial
,
a_initial
);
auto
stateUpdater
=
initStateUpdater
<
SingletonVectorType
,
VectorType
>
(
parset
.
get
<
Config
::
state_model
>
(
"boundary.friction.state_model"
),
...
...
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