Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kelvin-Voigt Boundary Implementation for #692 #710

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9c73b25
Kelvin-Voight Boundary Condition Implementation
cgeudeker Mar 24, 2021
55d7b19
First Edits, and absorbing constraint file
cgeudeker Mar 25, 2021
97e282d
Merge branch 'develop' into material
cgeudeker Mar 25, 2021
e1d24ce
Test cases
cgeudeker May 19, 2021
d61aafa
Test cases
cgeudeker May 19, 2021
e30d186
Test cases, minor fix
cgeudeker May 19, 2021
6a53280
Test Case for Absorbing Constraint File
cgeudeker May 25, 2021
04380c3
Minor Fixes
cgeudeker May 25, 2021
4999748
Switched Assert for If Statement
cgeudeker May 25, 2021
e1ccc53
Absorbing Boundary in Scheme
cgeudeker Aug 1, 2021
f082fbf
Merge branch 'develop' of https://github.com/cb-geo/mpm into material
jgiven100 Aug 12, 2021
fe5f74e
:hammer: add position input to absorb boundary
jgiven100 Aug 19, 2021
472fce5
:hammer::fire: remove unused variables
jgiven100 Aug 19, 2021
f3b70e6
:hammer: change absorb bound position from string to enum
jgiven100 Aug 19, 2021
fd06771
:dart::heavy_check_mark: update absorb boundary tests
jgiven100 Aug 19, 2021
f5f2d1b
:hammer::bug: replace if with switch statement and cppcheck suppress
jgiven100 Aug 19, 2021
805626c
:bug::hammer: fix traction -> force for absorb boundary
jgiven100 Sep 21, 2021
1e3e479
Merge branch 'develop' of https://github.com/cb-geo/mpm into material
jgiven100 Nov 24, 2021
229e1d7
:wrench::sparkles: add 3d support for Kelvin-Voigt
jgiven100 Nov 24, 2021
746283d
:construction::dart: improve test coverage
jgiven100 Nov 25, 2021
397e6e9
:bug: clang-format
jgiven100 Nov 25, 2021
6fa65b9
:construction::dart: improve test coverage
jgiven100 Nov 25, 2021
4cbc60a
:dart::fire: tidy commented-out lines
jgiven100 Nov 25, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions include/node.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -397,19 +397,25 @@ bool mpm::Node<Tdim, Tdof, Tnphases>::apply_absorbing_constraint(
Eigen::Matrix<double, Tdim, 1> absorbing_force_;
double force0 = 0.0;
double force1 = 0.0;
if (position == mpm::Position::Corner) {
force0 = 0.5 * h_min * absorbing_traction_(0);
force1 = 0.5 * h_min * absorbing_traction_(1);
} else if (position == mpm::Position::Bottom) {
force0 = 0.5 * h_min * absorbing_traction_(0);
force1 = 1.0 * h_min * absorbing_traction_(1);
} else if (position == mpm::Position::Side) {
force0 = 1.0 * h_min * absorbing_traction_(0);
force1 = 0.5 * h_min * absorbing_traction_(1);
} else {
throw std::runtime_error("Invalid absorbing boundary position");
switch (position) {
case mpm::Position::Corner:
force0 = 0.5 * h_min * absorbing_traction_(0);
force1 = 0.5 * h_min * absorbing_traction_(1);
break;
case mpm::Position::Bottom:
force0 = 0.5 * h_min * absorbing_traction_(0);
force1 = 1.0 * h_min * absorbing_traction_(1);
break;
case mpm::Position::Side:
force0 = 1.0 * h_min * absorbing_traction_(0);
force1 = 0.5 * h_min * absorbing_traction_(1);
break;
jgiven100 marked this conversation as resolved.
Show resolved Hide resolved
default:
throw std::runtime_error("Invalid absorbing boundary position");
break;
}
// clang-format off
// cppcheck-suppress *
absorbing_force_ << force0, force1;
// clang-format on
this->update_external_force(true, phase, -absorbing_force_);
Expand Down