Skip to content
Snippets Groups Projects
Commit 08860f25 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

[Cleanup] Rename: ignoreNodes -> velocityDirichletNodes,

parent 655ac103
No related branches found
No related tags found
No related merge requests found
...@@ -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 &ignoreNodes, Dune::BitSetVector<dims> const &velocityDirichletNodes,
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, ignoreNodes, stiffnessMatrix, u_initial, v_initial, velocityDirichletNodes,
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,
ignoreNodes, velocityDirichletFunction); velocityDirichletNodes, 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> ignoreNodes(finestSize, false); Dune::BitSetVector<dims> velocityDirichletNodes(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;
ignoreNodes[id][1] = true; velocityDirichletNodes[id][1] = true;
} }
// upper face // upper face
else if (localCoordinates[1] == upperRight[1]) else if (localCoordinates[1] == upperRight[1])
ignoreNodes[id] = true; velocityDirichletNodes[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,
ignoreNodes); velocityDirichletNodes);
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, ignoreNodes, massMatrix, velocityDirichletFunction, velocityDirichletNodes, 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment