{"action":"created","comment":{"url":"https://api.github.com/repos/idaholab/moose/pulls/comments/133211439","pull_request_review_id":56361343,"id":133211439,"diff_hunk":"@@ -0,0 +1,120 @@\n+/****************************************************************/\n+/* MOOSE - Multiphysics Object Oriented Simulation Environment  */\n+/*                                                              */\n+/*          All contents are licensed under LGPL V2.1           */\n+/*             See LICENSE for full restrictions                */\n+/****************************************************************/\n+#include \"CappedMohrCoulombCosseratStressUpdate.h\"\n+#include \"libmesh/utility.h\"\n+\n+template <>\n+InputParameters\n+validParams<CappedMohrCoulombCosseratStressUpdate>()\n+{\n+  InputParameters params = validParams<CappedMohrCoulombStressUpdate>();\n+  params.addClassDescription(\"Capped Mohr-Coulomb plasticity stress calculator for the Cosserat \"\n+                             \"situation where the host medium (ie, the limit where all Cosserat \"\n+                             \"effects are zero) is isotropic.  Note that the return-map flow rule \"\n+                             \"uses an isotropic elasticity tensor built with the 'host' properties \"\n+                             \"defined by the user.\");\n+  params.addRequiredRangeCheckedParam<Real>(\"host_youngs_modulus\",\n+                                            \"host_youngs_modulus>0\",\n+                                            \"Young's modulus for the isotropic host medium\");\n+  params.addRequiredRangeCheckedParam<Real>(\"host_poissons_ratio\",\n+                                            \"host_poissons_ratio>=0\",\n+                                            \"Poisson's ratio for the isotropic host medium\");\n+  return params;\n+}\n+\n+CappedMohrCoulombCosseratStressUpdate::CappedMohrCoulombCosseratStressUpdate(\n+    const InputParameters & parameters)\n+  : CappedMohrCoulombStressUpdate(parameters),\n+    _host_young(getParam<Real>(\"host_youngs_modulus\")),\n+    _host_poisson(getParam<Real>(\"host_poissons_ratio\")),\n+    _host_E0011(_host_young * _host_poisson / (1.0 + _host_poisson) / (1.0 - 2.0 * _host_poisson)),\n+    _host_E0000(_host_E0011 + _host_young / (1.0 + _host_poisson))\n+{\n+}\n+\n+void\n+CappedMohrCoulombCosseratStressUpdate::preReturnMapV(\n+    const std::vector<Real> & /*trial_stress_params*/,\n+    const RankTwoTensor & stress_trial,\n+    const std::vector<Real> & /*intnl_old*/,\n+    const std::vector<Real> & /*yf*/,\n+    const RankFourTensor & /*Eijkl*/)\n+{\n+  std::vector<Real> eigvals;\n+  stress_trial.symmetricEigenvaluesEigenvectors(eigvals, _eigvecs);\n+  _poissons_ratio = _host_poisson;\n+}\n+\n+void\n+CappedMohrCoulombCosseratStressUpdate::setEffectiveElasticity(const RankFourTensor & /*Eijkl*/)\n+{\n+  _Eij[0][0] = _Eij[1][1] = _Eij[2][2] = _host_E0000;\n+  _Eij[0][1] = _Eij[1][0] = _Eij[0][2] = _Eij[2][0] = _Eij[1][2] = _Eij[2][1] = _host_E0011;\n+  _En = _Eij[2][2];\n+  const Real denom = _Eij[0][0] * (_Eij[0][0] + _Eij[0][1]) - 2 * Utility::pow<2>(_Eij[0][1]);","path":"modules/tensor_mechanics/src/materials/CappedMohrCoulombCosseratStressUpdate.C","position":58,"original_position":58,"commit_id":"690898e668d8c6b7e85984972ddb081108e69045","original_commit_id":"690898e668d8c6b7e85984972ddb081108e69045","user":{"login":"dschwen","id":202302,"avatar_url":"https://avatars2.githubusercontent.com/u/202302?v=4","gravatar_id":"","url":"https://api.github.com/users/dschwen","html_url":"https://github.com/dschwen","followers_url":"https://api.github.com/users/dschwen/followers","following_url":"https://api.github.com/users/dschwen/following{/other_user}","gists_url":"https://api.github.com/users/dschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwen/subscriptions","organizations_url":"https://api.github.com/users/dschwen/orgs","repos_url":"https://api.github.com/users/dschwen/repos","events_url":"https://api.github.com/users/dschwen/events{/privacy}","received_events_url":"https://api.github.com/users/dschwen/received_events","type":"User","site_admin":false},"body":"let's put an assertion here for `demon > LIBMESH_TOL`","created_at":"2017-08-15T14:57:15Z","updated_at":"2017-08-15T14:58:26Z","html_url":"https://github.com/idaholab/moose/pull/9630#discussion_r133211439","pull_request_url":"https://api.github.com/repos/idaholab/moose/pulls/9630","_links":{"self":{"href":"https://api.github.com/repos/idaholab/moose/pulls/comments/133211439"},"html":{"href":"https://github.com/idaholab/moose/pull/9630#discussion_r133211439"},"pull_request":{"href":"https://api.github.com/repos/idaholab/moose/pulls/9630"}}},"pull_request":{"url":"https://api.github.com/repos/idaholab/moose/pulls/9630","id":134785487,"html_url":"https://github.com/idaholab/moose/pull/9630","diff_url":"https://github.com/idaholab/moose/pull/9630.diff","patch_url":"https://github.com/idaholab/moose/pull/9630.patch","issue_url":"https://api.github.com/repos/idaholab/moose/issues/9630","number":9630,"state":"open","locked":false,"title":"CappedMohrCoulombCosseratStressUpdate added to TensorMechanics","user":{"login":"WilkAndy","id":6676821,"avatar_url":"https://avatars1.githubusercontent.com/u/6676821?v=4","gravatar_id":"","url":"https://api.github.com/users/WilkAndy","html_url":"https://github.com/WilkAndy","followers_url":"https://api.github.com/users/WilkAndy/followers","following_url":"https://api.github.com/users/WilkAndy/following{/other_user}","gists_url":"https://api.github.com/users/WilkAndy/gists{/gist_id}","starred_url":"https://api.github.com/users/WilkAndy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilkAndy/subscriptions","organizations_url":"https://api.github.com/users/WilkAndy/orgs","repos_url":"https://api.github.com/users/WilkAndy/repos","events_url":"https://api.github.com/users/WilkAndy/events{/privacy}","received_events_url":"https://api.github.com/users/WilkAndy/received_events","type":"User","site_admin":false},"body":"A Cosserat version of capped Mohr-Coulomb plasticity is added to TensorMechanics.  It assumes a ``host'' non-Cosserat isotropic elasticity tensor exists, and this is employed in the return-map algorithm.  The unsymmetric parts of the stress tensor and the moment-stress tensor do not enter into the plasticity theory, so they are unaffected during plastic deformation.\r\n\r\nFixes #9620 ","created_at":"2017-08-09T00:11:39Z","updated_at":"2017-08-15T14:58:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d77a5a69beb87996f1830e46059db4f31c334f72","assignee":{"login":"dschwen","id":202302,"avatar_url":"https://avatars2.githubusercontent.com/u/202302?v=4","gravatar_id":"","url":"https://api.github.com/users/dschwen","html_url":"https://github.com/dschwen","followers_url":"https://api.github.com/users/dschwen/followers","following_url":"https://api.github.com/users/dschwen/following{/other_user}","gists_url":"https://api.github.com/users/dschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwen/subscriptions","organizations_url":"https://api.github.com/users/dschwen/orgs","repos_url":"https://api.github.com/users/dschwen/repos","events_url":"https://api.github.com/users/dschwen/events{/privacy}","received_events_url":"https://api.github.com/users/dschwen/received_events","type":"User","site_admin":false},"assignees":[{"login":"dschwen","id":202302,"avatar_url":"https://avatars2.githubusercontent.com/u/202302?v=4","gravatar_id":"","url":"https://api.github.com/users/dschwen","html_url":"https://github.com/dschwen","followers_url":"https://api.github.com/users/dschwen/followers","following_url":"https://api.github.com/users/dschwen/following{/other_user}","gists_url":"https://api.github.com/users/dschwen/gists{/gist_id}","starred_url":"https://api.github.com/users/dschwen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dschwen/subscriptions","organizations_url":"https://api.github.com/users/dschwen/orgs","repos_url":"https://api.github.com/users/dschwen/repos","events_url":"https://api.github.com/users/dschwen/events{/privacy}","received_events_url":"https://api.github.com/users/dschwen/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/idaholab/moose/pulls/9630/commits","review_comments_url":"https://api.github.com/repos/idaholab/moose/pulls/9630/comments","review_comment_url":"https://api.github.com/repos/idaholab/moose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/idaholab/moose/issues/9630/comments","statuses_url":"https://api.github.com/repos/idaholab/moose/statuses/690898e668d8c6b7e85984972ddb081108e69045","head":{"label":"WilkAndy:cosserat_mc_9620","ref":"cosserat_mc_9620","sha":"690898e668d8c6b7e85984972ddb081108e69045","user":{"login":"WilkAndy","id":6676821,"avatar_url":"https://avatars1.githubusercontent.com/u/6676821?v=4","gravatar_id":"","url":"https://api.github.com/users/WilkAndy","html_url":"https://github.com/WilkAndy","followers_url":"https://api.github.com/users/WilkAndy/followers","following_url":"https://api.github.com/users/WilkAndy/following{/other_user}","gists_url":"https://api.github.com/users/WilkAndy/gists{/gist_id}","starred_url":"https://api.github.com/users/WilkAndy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilkAndy/subscriptions","organizations_url":"https://api.github.com/users/WilkAndy/orgs","repos_url":"https://api.github.com/users/WilkAndy/repos","events_url":"https://api.github.com/users/WilkAndy/events{/privacy}","received_events_url":"https://api.github.com/users/WilkAndy/received_events","type":"User","site_admin":false},"repo":{"id":17852524,"name":"moose","full_name":"WilkAndy/moose","owner":{"login":"WilkAndy","id":6676821,"avatar_url":"https://avatars1.githubusercontent.com/u/6676821?v=4","gravatar_id":"","url":"https://api.github.com/users/WilkAndy","html_url":"https://github.com/WilkAndy","followers_url":"https://api.github.com/users/WilkAndy/followers","following_url":"https://api.github.com/users/WilkAndy/following{/other_user}","gists_url":"https://api.github.com/users/WilkAndy/gists{/gist_id}","starred_url":"https://api.github.com/users/WilkAndy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilkAndy/subscriptions","organizations_url":"https://api.github.com/users/WilkAndy/orgs","repos_url":"https://api.github.com/users/WilkAndy/repos","events_url":"https://api.github.com/users/WilkAndy/events{/privacy}","received_events_url":"https://api.github.com/users/WilkAndy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WilkAndy/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":true,"url":"https://api.github.com/repos/WilkAndy/moose","forks_url":"https://api.github.com/repos/WilkAndy/moose/forks","keys_url":"https://api.github.com/repos/WilkAndy/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WilkAndy/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WilkAndy/moose/teams","hooks_url":"https://api.github.com/repos/WilkAndy/moose/hooks","issue_events_url":"https://api.github.com/repos/WilkAndy/moose/issues/events{/number}","events_url":"https://api.github.com/repos/WilkAndy/moose/events","assignees_url":"https://api.github.com/repos/WilkAndy/moose/assignees{/user}","branches_url":"https://api.github.com/repos/WilkAndy/moose/branches{/branch}","tags_url":"https://api.github.com/repos/WilkAndy/moose/tags","blobs_url":"https://api.github.com/repos/WilkAndy/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WilkAndy/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WilkAndy/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/WilkAndy/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WilkAndy/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/WilkAndy/moose/languages","stargazers_url":"https://api.github.com/repos/WilkAndy/moose/stargazers","contributors_url":"https://api.github.com/repos/WilkAndy/moose/contributors","subscribers_url":"https://api.github.com/repos/WilkAndy/moose/subscribers","subscription_url":"https://api.github.com/repos/WilkAndy/moose/subscription","commits_url":"https://api.github.com/repos/WilkAndy/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/WilkAndy/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/WilkAndy/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/WilkAndy/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/WilkAndy/moose/contents/{+path}","compare_url":"https://api.github.com/repos/WilkAndy/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WilkAndy/moose/merges","archive_url":"https://api.github.com/repos/WilkAndy/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WilkAndy/moose/downloads","issues_url":"https://api.github.com/repos/WilkAndy/moose/issues{/number}","pulls_url":"https://api.github.com/repos/WilkAndy/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/WilkAndy/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/WilkAndy/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WilkAndy/moose/labels{/name}","releases_url":"https://api.github.com/repos/WilkAndy/moose/releases{/id}","deployments_url":"https://api.github.com/repos/WilkAndy/moose/deployments","created_at":"2014-03-18T03:30:23Z","updated_at":"2014-06-24T22:41:44Z","pushed_at":"2017-08-10T23:21:33Z","git_url":"git://github.com/WilkAndy/moose.git","ssh_url":"git@github.com:WilkAndy/moose.git","clone_url":"https://github.com/WilkAndy/moose.git","svn_url":"https://github.com/WilkAndy/moose","homepage":null,"size":198666,"stargazers_count":0,"watchers_count":0,"language":"Eiffel","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":0,"default_branch":"devel"}},"base":{"label":"idaholab:devel","ref":"devel","sha":"7bf8d809633be04489497db74a358342c87af567","user":{"login":"idaholab","id":3855370,"avatar_url":"https://avatars0.githubusercontent.com/u/3855370?v=4","gravatar_id":"","url":"https://api.github.com/users/idaholab","html_url":"https://github.com/idaholab","followers_url":"https://api.github.com/users/idaholab/followers","following_url":"https://api.github.com/users/idaholab/following{/other_user}","gists_url":"https://api.github.com/users/idaholab/gists{/gist_id}","starred_url":"https://api.github.com/users/idaholab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idaholab/subscriptions","organizations_url":"https://api.github.com/users/idaholab/orgs","repos_url":"https://api.github.com/users/idaholab/repos","events_url":"https://api.github.com/users/idaholab/events{/privacy}","received_events_url":"https://api.github.com/users/idaholab/received_events","type":"Organization","site_admin":false},"repo":{"id":16851223,"name":"moose","full_name":"idaholab/moose","owner":{"login":"idaholab","id":3855370,"avatar_url":"https://avatars0.githubusercontent.com/u/3855370?v=4","gravatar_id":"","url":"https://api.github.com/users/idaholab","html_url":"https://github.com/idaholab","followers_url":"https://api.github.com/users/idaholab/followers","following_url":"https://api.github.com/users/idaholab/following{/other_user}","gists_url":"https://api.github.com/users/idaholab/gists{/gist_id}","starred_url":"https://api.github.com/users/idaholab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idaholab/subscriptions","organizations_url":"https://api.github.com/users/idaholab/orgs","repos_url":"https://api.github.com/users/idaholab/repos","events_url":"https://api.github.com/users/idaholab/events{/privacy}","received_events_url":"https://api.github.com/users/idaholab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/idaholab/moose","description":"Multiphysics Object Oriented Simulation Environment","fork":false,"url":"https://api.github.com/repos/idaholab/moose","forks_url":"https://api.github.com/repos/idaholab/moose/forks","keys_url":"https://api.github.com/repos/idaholab/moose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/idaholab/moose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/idaholab/moose/teams","hooks_url":"https://api.github.com/repos/idaholab/moose/hooks","issue_events_url":"https://api.github.com/repos/idaholab/moose/issues/events{/number}","events_url":"https://api.github.com/repos/idaholab/moose/events","assignees_url":"https://api.github.com/repos/idaholab/moose/assignees{/user}","branches_url":"https://api.github.com/repos/idaholab/moose/branches{/branch}","tags_url":"https://api.github.com/repos/idaholab/moose/tags","blobs_url":"https://api.github.com/repos/idaholab/moose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/idaholab/moose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/idaholab/moose/git/refs{/sha}","trees_url":"https://api.github.com/repos/idaholab/moose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/idaholab/moose/statuses/{sha}","languages_url":"https://api.github.com/repos/idaholab/moose/languages","stargazers_url":"https://api.github.com/repos/idaholab/moose/stargazers","contributors_url":"https://api.github.com/repos/idaholab/moose/contributors","subscribers_url":"https://api.github.com/repos/idaholab/moose/subscribers","subscription_url":"https://api.github.com/repos/idaholab/moose/subscription","commits_url":"https://api.github.com/repos/idaholab/moose/commits{/sha}","git_commits_url":"https://api.github.com/repos/idaholab/moose/git/commits{/sha}","comments_url":"https://api.github.com/repos/idaholab/moose/comments{/number}","issue_comment_url":"https://api.github.com/repos/idaholab/moose/issues/comments{/number}","contents_url":"https://api.github.com/repos/idaholab/moose/contents/{+path}","compare_url":"https://api.github.com/repos/idaholab/moose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/idaholab/moose/merges","archive_url":"https://api.github.com/repos/idaholab/moose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/idaholab/moose/downloads","issues_url":"https://api.github.com/repos/idaholab/moose/issues{/number}","pulls_url":"https://api.github.com/repos/idaholab/moose/pulls{/number}","milestones_url":"https://api.github.com/repos/idaholab/moose/milestones{/number}","notifications_url":"https://api.github.com/repos/idaholab/moose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/idaholab/moose/labels{/name}","releases_url":"https://api.github.com/repos/idaholab/moose/releases{/id}","deployments_url":"https://api.github.com/repos/idaholab/moose/deployments","created_at":"2014-02-14T22:26:15Z","updated_at":"2017-08-08T07:42:05Z","pushed_at":"2017-08-15T14:55:13Z","git_url":"git://github.com/idaholab/moose.git","ssh_url":"git@github.com:idaholab/moose.git","clone_url":"https://github.com/idaholab/moose.git","svn_url":"https://github.com/idaholab/moose","homepage":"http://www.mooseframework.org","size":199013,"stargazers_count":225,"watchers_count":225,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":368,"mirror_url":null,"open_issues_count":734,"forks":368,"open_issues":734,"watchers":225,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/idaholab/moose/pulls/9630"},"html":{"href":"https://github.com/idaholab/moose/pull/9630"},"issue":{"href":"https://api.github.com/repos/idaholab/moose/issues/9630"},"comments":{"href":"https://api.github.com/repos/idaholab/moose/issues/9630/comments"},"review_comments":{"href":"https://api.github.com/repos/idaholab/moose/pulls/9630/comments"},"review_comment":{"href":"https://api.github.com/repos/idaholab/moose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/idaholab/moose/pulls/9630/commits"},"statuses":{"href":"https://api.github.com/repos/idaholab/moose/statuses/690898e668d8c6b7e85984972ddb081108e69045"}}}}
{"actor":{"display_login":"dschwen"}}