-
Notifications
You must be signed in to change notification settings - Fork 15
Use CellDataTransfer in MechanicalPhysics #477
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
base: master
Are you sure you want to change the base?
Changes from all commits
9672601
200ccb1
f00cafa
be487d5
9c6d97e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |||||
| #define MECHANICAL_PHYSICS_HH | ||||||
|
|
||||||
| #include <Boundary.hh> | ||||||
| #include <ClosestSourcePointAdaptation.hh> | ||||||
| #include <Geometry.hh> | ||||||
| #include <MechanicalOperator.hh> | ||||||
|
|
||||||
|
|
@@ -183,19 +184,26 @@ private: | |||||
| dim, dealii::LA::distributed::Vector<double, dealii::MemorySpace::Host>> | ||||||
| _solution_transfer; | ||||||
|
|
||||||
| /** | ||||||
| * Object used for interpolating to and from the closest quadrature point in | ||||||
| * the cell data transfer object. | ||||||
| */ | ||||||
| adamantine::ClosestQuadPointAdaptation<dim, dim, std::vector<double>> | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| _closest_quad_point_adaptation; | ||||||
|
|
||||||
| /** | ||||||
| * Cell data transfer object used for updating _plastic_internal_variable, | ||||||
| * _stress, and _back_stress when the triangulation is updated when adding | ||||||
| * material | ||||||
| */ | ||||||
| dealii::parallel::distributed::CellDataTransfer< | ||||||
| dim, dim, std::vector<std::vector<double>>> | ||||||
| dim, dim, std::vector<std::vector<std::vector<double>>>> | ||||||
| _cell_data_transfer; | ||||||
|
|
||||||
| /** | ||||||
| * Temporary storaged used by _cell_data_transfer | ||||||
| */ | ||||||
| std::vector<std::vector<double>> _data_to_transfer; | ||||||
| std::vector<std::vector<std::vector<double>>> _data_to_transfer; | ||||||
| }; | ||||||
|
|
||||||
| template <int dim, int n_materials, int p_order, typename MaterialStates, | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,7 +41,7 @@ BOOST_AUTO_TEST_CASE(integration_thermoelastic, *utf::tolerance(1.0e-5)) | |
| // To generate a new gold solution | ||
| // std::cout << "dis l2:" << displacement.l2_norm() << std::endl; | ||
|
|
||
| BOOST_TEST(displacement.l2_norm() == 0.21537566016824577); | ||
| BOOST_TEST(displacement.l2_norm() == 0.38717686373752414); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Codex review (P2): This assertion only replaces the expected final displacement norm. It exercises the AMR path, but it does not verify that the nested payload preserves every component of |
||
| } | ||
|
|
||
| BOOST_AUTO_TEST_CASE(integration_thermoelastic_add_material, | ||
|
|
@@ -71,5 +71,5 @@ BOOST_AUTO_TEST_CASE(integration_thermoelastic_add_material, | |
| // For now doing a simple regression test. Without a dof handler, it's hard to | ||
| // do something more meaningful with the vector. | ||
|
|
||
| BOOST_TEST(displacement.l2_norm() == 0.24117708846731); | ||
| BOOST_TEST(displacement.l2_norm() == 0.27838526776051664); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.