-
Notifications
You must be signed in to change notification settings - Fork 252
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
[PfemFluid] CutFEM element #11868
Conversation
…Multiphysics/Kratos into PfemFluid/cut_fem_element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my comments :)
...ation/custom_elements/two_step_updated_lagrangian_V_P_implicit_fluid_FIC_cut_fem_element.cpp
Outdated
Show resolved
Hide resolved
...ation/custom_elements/two_step_updated_lagrangian_V_P_implicit_fluid_FIC_cut_fem_element.cpp
Outdated
Show resolved
Hide resolved
...ation/custom_elements/two_step_updated_lagrangian_V_P_implicit_fluid_FIC_cut_fem_element.cpp
Outdated
Show resolved
Hide resolved
...ation/custom_elements/two_step_updated_lagrangian_V_P_implicit_fluid_FIC_cut_fem_element.cpp
Outdated
Show resolved
Hide resolved
...ation/custom_elements/two_step_updated_lagrangian_V_P_implicit_fluid_FIC_cut_fem_element.cpp
Outdated
Show resolved
Hide resolved
} | ||
|
||
bool longDamBreak = false; // to attivate in case of long dam breaks to avoid separeted elements in the water front | ||
if (longDamBreak == true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (longDamBreak == true) | |
if (longDamBreak) |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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 $ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// 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]) / |
There was a problem hiding this comment.
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
...ations/PfemFluidDynamicsApplication/tests/cut_pfem_tests/dam_break_2d/ProjectParameters.json
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job guys
📝 Description
This PR adds a CutPFEM Navier-Stokes element together with its required functionalities.