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

[PfemFluid] CutFEM element #11868

Merged
merged 64 commits into from
Mar 8, 2024
Merged

[PfemFluid] CutFEM element #11868

merged 64 commits into from
Mar 8, 2024

Conversation

rubenzorrilla
Copy link
Member

📝 Description
This PR adds a CutPFEM Navier-Stokes element together with its required functionalities.

Copy link
Member

@AlejandroCornejo AlejandroCornejo left a comment

Choose a reason for hiding this comment

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

my comments :)

}

bool longDamBreak = false; // to attivate in case of long dam breaks to avoid separeted elements in the water front
if (longDamBreak == true)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (longDamBreak == true)
if (longDamBreak)

Copy link
Member

Choose a reason for hiding this comment

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

besides, the If will never be activated since we just defined this variable to false right?

KRATOS_TRY
const SizeType dimension = mrModelPart.ElementsBegin()->GetGeometry().WorkingSpaceDimension();

NodeWeakPtrVectorType &neighb_nodes = CheckedNode.GetValue(NEIGHBOUR_NODES);
Copy link
Member

Choose a reason for hiding this comment

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

auto?

// Project Name: KratosPfemFluidDynamicsApplication $
// Created by: $Author: AFranci $
// Last modified by: $Co-Author: $
// Date: $Date: October 2016 $
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Date: $Date: October 2016 $
// Date: $Date: December 2023 $

}
else
{
const double cosAngle01 = (nodesVelocities[0][0] * nodesVelocities[1][0] + nodesVelocities[0][1] * nodesVelocities[1][1] + nodesVelocities[0][1] * nodesVelocities[1][2]) /
Copy link
Member

Choose a reason for hiding this comment

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

This operation can be defined somewhere and then reused many times

@rubenzorrilla
Copy link
Member Author

I cleaned up all the stuff related to the element. About the process, I'd consider deriving from the standard one to avoid code duplication prior to any clean up.

Copy link
Member

@AlejandroCornejo AlejandroCornejo left a comment

Choose a reason for hiding this comment

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

good job guys

@rubenzorrilla rubenzorrilla merged commit 113dccf into master Mar 8, 2024
15 of 17 checks passed
@rubenzorrilla rubenzorrilla deleted the PfemFluid/cut_fem_element branch March 8, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants