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

[SD-LIE] Small deformation process with lower-dimensional interface elements #1452

Merged
merged 13 commits into from
Oct 20, 2016

Conversation

norihiro-w
Copy link
Collaborator

@norihiro-w norihiro-w commented Sep 28, 2016

followup of #1455, #1456 and #1457

This PR adds the new process type "SMALL_DEFORMATION_WITH_LIE", which includes lower-dimensional interface elements for modeling fracture deformations. To make review easier, I would like to keep this first PR as simple as possible and focus on deformation with a single fracture cutting a domain. This is indeed enough for the DECOVALEX benchmark. Complexity can be increased later on step by step.

@norihiro-w norihiro-w mentioned this pull request Sep 29, 2016
1 task
@norihiro-w norihiro-w changed the title Small deformation process with lower-dimensional interface elements [SD-LIE] Small deformation process with lower-dimensional interface elements Sep 29, 2016
@endJunction
Copy link
Member

Please rebase to 6.0.7 before merging.

"sigma_xy", 1,
makeExtrapolator(
getExtrapolator(), _local_assemblers,
&SmallDeformationLocalAssemblerInterface::getIntPtSigmaZZ));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xy output does not match the getter for ZZ. But I have discovered this bug just a minute ago in SD.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected following your PR

std::unique_ptr<NumLib::LocalToGlobalIndexMap>
_local_to_global_index_map_single_component;

std::vector<MeshLib::Element*> _vec_matrix_elements;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that these elements and nodes are kept untouched. Is it possible to use
std::vector<MeshLib::Element const*> or std::vector<MeshLib::Node const*>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no it's not possible, because they are passed to functions which take the non-const versions as arguments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see.

{
if (pv_name != "displacement"
&& pv_name.find("displacement_jump")==std::string::npos)
OGS_FATAL("Found a process variable name '%s'. It should be 'displacement' or 'displacement_jumpN'");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

N at the end of displacement_jumpN does not match with find parameter.

Copy link
Member

@endJunction endJunction left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things to be improved.
ctest is running, though it is very small and I could not check for any performance issues.

@@ -0,0 +1,17 @@
/**
* \copyright
* Copyright (c) 2012-2015, OpenGeoSys Community (http://www.opengeosys.org)
Copy link
Member

@endJunction endJunction Oct 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2016 ✅


// set fracture property assuming a fracture forms a straight line
setFractureProperty(DisplacementDim,
*_vec_fracutre_elements[0],
Copy link
Member

@endJunction endJunction Oct 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo in fracture.
And above in the argument list too. ✅

// set fracture property assuming a fracture forms a straight line
setFractureProperty(DisplacementDim,
*_vec_fracutre_elements[0],
*_process_data._fracture_property.get());
Copy link
Member

@endJunction endJunction Oct 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While tracing where the get() is from (it's unique_ptr...)...
PL/SDwLIE/Common/FractureProperty.h is included in itself ✅

getExtrapolator(), _local_assemblers,
&SmallDeformationLocalAssemblerInterface::getIntPtSigmaXY));

auto mesh_prop_sigma_xx = const_cast<MeshLib::Mesh&>(mesh).getProperties().template createNewPropertyVector<double>("stress_xx", MeshLib::MeshItemType::Cell);
Copy link
Member

@endJunction endJunction Oct 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you break the long lines? ✅

std::unique_ptr<NumLib::LocalToGlobalIndexMap>
_local_to_global_index_map_single_component;

std::vector<MeshLib::Element*> _vec_matrix_elements;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In getFractureMatrixDataInMesh() the mesh elements are sorted in two sets those for fracture and those from matrix: One could also use std::partition_copy there.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure what you mean. Later the type of _vec_fracture_elements will be changed to std::vector<std::vector<MeshLib::Element*>> for multiple fractures.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here all is fine. In getFractureMatrixDataInMesh() one could use std::partition_copy. Just an idea.

@norihiro-w
Copy link
Collaborator Author

@endJunction let me know if you have further comments on this. if not, I'd merge this tomorrow morning.

@endJunction
Copy link
Member

ufz/ogs/master locked now.

@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants