Skip to content

Commit

Permalink
Renamed both line interface element types (#12750)
Browse files Browse the repository at this point in the history
Fixed a typo in two element type names: 'PlainStrain' => 'PlaneStrain'. Also removed the 'Pw' part from the interface element's type name, since the water pressure it not taken into account yet.
  • Loading branch information
avdg81 authored Oct 14, 2024
1 parent 34c152b commit a1c3df1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ void KratosGeoMechanicsApplication::Register()
KRATOS_REGISTER_ELEMENT("UPwSmallStrainLinkInterfaceElement3D6N", mUPwSmallStrainLinkInterfaceElement3D6N)
KRATOS_REGISTER_ELEMENT("UPwSmallStrainLinkInterfaceElement3D8N", mUPwSmallStrainLinkInterfaceElement3D8N)

KRATOS_REGISTER_ELEMENT("Geo_UPwLineInterfacePlainStrainElement2Plus2N", mUPwLineInterfacePlaneStrainElement2Plus2N)
KRATOS_REGISTER_ELEMENT("Geo_UPwLineInterfacePlainStrainElement3Plus3N", mUPwLineInterfacePlaneStrainElement3Plus3N)
KRATOS_REGISTER_ELEMENT("Geo_ULineInterfacePlaneStrainElement2Plus2N", mULineInterfacePlaneStrainElement2Plus2N)
KRATOS_REGISTER_ELEMENT("Geo_ULineInterfacePlaneStrainElement3Plus3N", mULineInterfacePlaneStrainElement3Plus3N)

// Updated-Lagranian elements
KRATOS_REGISTER_ELEMENT("UPwUpdatedLagrangianElement2D3N", mUPwUpdatedLagrangianElement2D3N)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,10 @@ class KRATOS_API(GEO_MECHANICS_APPLICATION) KratosGeoMechanicsApplication : publ
0, Kratos::make_shared<HexahedraInterface3D8<NodeType>>(Element::GeometryType::PointsArrayType(8)),
std::make_unique<ThreeDimensionalStressState>()};

const LineInterfaceElement mUPwLineInterfacePlaneStrainElement2Plus2N{
const LineInterfaceElement mULineInterfacePlaneStrainElement2Plus2N{
0, Kratos::make_shared<LineInterfaceGeometry<Line2D2<NodeType>>>(
Element::GeometryType::PointsArrayType(4))};
const LineInterfaceElement mUPwLineInterfacePlaneStrainElement3Plus3N{
const LineInterfaceElement mULineInterfacePlaneStrainElement3Plus3N{
0, Kratos::make_shared<LineInterfaceGeometry<Line2D3<NodeType>>>(
Element::GeometryType::PointsArrayType(6))};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ KRATOS_TEST_CASE_IN_SUITE(LineInterfaceElementsAreAvailableAfterGeoAppRegistrati
{
KratosGeoMechanicsApplication geo_app;
const auto element_type_names =
std::vector<std::string>{"Geo_UPwLineInterfacePlainStrainElement2Plus2N",
"Geo_UPwLineInterfacePlainStrainElement3Plus3N"};
std::vector<std::string>{"Geo_ULineInterfacePlaneStrainElement2Plus2N",
"Geo_ULineInterfacePlaneStrainElement3Plus3N"};

for (const auto& r_name : element_type_names) {
KRATOS_EXPECT_FALSE(KratosComponents<Element>::Has(r_name))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Begin Nodes
13 7.0000000000 0.0000000000 0.0000000000
End Nodes

Begin Elements Geo_UPwLineInterfacePlainStrainElement3Plus3N
Begin Elements Geo_ULineInterfacePlaneStrainElement3Plus3N
1 1 1 3 2 11 13 12
End Elements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Begin Nodes
33 0.0000000000 7.0000000000 0.0000000000
End Nodes

Begin Elements Geo_UPwLineInterfacePlainStrainElement3Plus3N
Begin Elements Geo_ULineInterfacePlaneStrainElement3Plus3N
1 1 1 3 2 11 13 12
11 1 31 33 32 21 23 22
End Elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Begin Nodes
13 7.0000000000 0.0000000000 0.0000000000
End Nodes

Begin Elements Geo_UPwLineInterfacePlainStrainElement3Plus3N
Begin Elements Geo_ULineInterfacePlaneStrainElement3Plus3N
1 1 1 3 2 11 13 12
End Elements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Begin Nodes
33 0.0000000000 7.0000000000 0.0000000000
End Nodes

Begin Elements Geo_UPwLineInterfacePlainStrainElement3Plus3N
Begin Elements Geo_ULineInterfacePlaneStrainElement3Plus3N
1 1 1 3 2 11 13 12
11 1 31 33 32 21 23 22
End Elements
Expand Down

0 comments on commit a1c3df1

Please sign in to comment.