-
Notifications
You must be signed in to change notification settings - Fork 95
Kelvin-Voigt Boundary Implementation for #692 #710
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
Open
cgeudeker
wants to merge
23
commits into
cb-geo:develop
Choose a base branch
from
cgeudeker:material
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+678
−2
Open
Changes from 13 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
9c73b25
Kelvin-Voight Boundary Condition Implementation
cgeudeker 55d7b19
First Edits, and absorbing constraint file
cgeudeker 97e282d
Merge branch 'develop' into material
cgeudeker e1d24ce
Test cases
cgeudeker d61aafa
Test cases
cgeudeker e30d186
Test cases, minor fix
cgeudeker 6a53280
Test Case for Absorbing Constraint File
cgeudeker 04380c3
Minor Fixes
cgeudeker 4999748
Switched Assert for If Statement
cgeudeker e1ccc53
Absorbing Boundary in Scheme
cgeudeker f082fbf
Merge branch 'develop' of https://github.com/cb-geo/mpm into material
jgiven100 fe5f74e
:hammer: add position input to absorb boundary
jgiven100 472fce5
:hammer::fire: remove unused variables
jgiven100 f3b70e6
:hammer: change absorb bound position from string to enum
jgiven100 fd06771
:dart::heavy_check_mark: update absorb boundary tests
jgiven100 f5f2d1b
:hammer::bug: replace if with switch statement and cppcheck suppress
jgiven100 805626c
:bug::hammer: fix traction -> force for absorb boundary
jgiven100 1e3e479
Merge branch 'develop' of https://github.com/cb-geo/mpm into material
jgiven100 229e1d7
:wrench::sparkles: add 3d support for Kelvin-Voigt
jgiven100 746283d
:construction::dart: improve test coverage
jgiven100 397e6e9
:bug: clang-format
jgiven100 6fa65b9
:construction::dart: improve test coverage
jgiven100 4cbc60a
:dart::fire: tidy commented-out lines
jgiven100 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| #ifndef MPM_ABSORBING_CONSTRAINT_H_ | ||
| #define MPM_ABSORBING_CONSTRAINT_H_ | ||
|
|
||
| namespace mpm { | ||
|
|
||
| //! AbsorbingConstraint class to store friction constraint on a set | ||
| //! \brief AbsorbingConstraint class to store a constraint on a set | ||
| //! \details AbsorbingConstraint stores the constraint as a static value | ||
| class AbsorbingConstraint { | ||
| public: | ||
| // Constructor | ||
| //! \param[in] setid set id | ||
| //! \param[in] dir Normal direction of boundary application | ||
| //! \param[in] delta Virtual viscous layer thickness | ||
| //! \param[in] h_min Cell height | ||
| //! \param[in] a Equation constant | ||
| //! \param[in] b Equation constant | ||
| //! \param[in] position Nodal position along boundary | ||
| AbsorbingConstraint(int setid, unsigned dir, double delta, double h_min, | ||
| double a = 1., double b = 1., | ||
| std::string position = "null") | ||
| : setid_{setid}, | ||
| dir_{dir}, | ||
| delta_{delta}, | ||
| h_min_{h_min}, | ||
| a_{a}, | ||
| b_{b}, | ||
| position_{position} {}; | ||
|
|
||
| // Set id | ||
| int setid() const { return setid_; } | ||
|
|
||
| // Direction | ||
| unsigned dir() const { return dir_; } | ||
|
|
||
| // Virtual viscous layer thickness | ||
| double delta() const { return delta_; } | ||
|
|
||
| // Cell height | ||
| double h_min() const { return h_min_; } | ||
|
|
||
| // Return a | ||
| double a() const { return a_; } | ||
|
|
||
| // Return b | ||
| double b() const { return b_; } | ||
|
|
||
| // Return position | ||
| std::string position() const { return position_; } | ||
|
|
||
| private: | ||
| // ID | ||
| int setid_; | ||
| // Direction | ||
| unsigned dir_; | ||
| // Delta | ||
| double delta_; | ||
| // Cell height | ||
| double h_min_; | ||
| // a | ||
| double a_; | ||
| // b | ||
| double b_; | ||
| // Node position | ||
| std::string position_; | ||
| }; | ||
| } // namespace mpm | ||
| #endif // MPM_ABSORBING_CONSTRAINT_H_ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.