-
Notifications
You must be signed in to change notification settings - Fork 248
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
[CoSim] Extra options for ComputeNormalsOperation #13039
base: master
Are you sure you want to change the base?
[CoSim] Extra options for ComputeNormalsOperation #13039
Conversation
@@ -222,6 +222,14 @@ void AddGeometricalUtilitiesToPython(pybind11::module &m) | |||
rNormalCalculationUtils.CalculateNormals<ModelPart::ConditionsContainerType,true>(rModelPart, EnforceGenericAlgorithm);}) | |||
.def("CalculateNormals", [](NormalCalculationUtils& rNormalCalculationUtils, ModelPart& rModelPart){ | |||
rNormalCalculationUtils.CalculateNormals<ModelPart::ConditionsContainerType,true>(rModelPart);}) | |||
.def("CalculateElementNormals", [](NormalCalculationUtils& rNormalCalculationUtils, |
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.
The problem is that this is genarating an inconsistency, both Condictions/Elements should be defined even if that means that two methods do exactly the same.
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.
Disclaimer: this is actually my change.
The problem is that this is genarating an inconsistency, both Condictions/Elements should be defined even if that means that two methods do exactly the same.
I don't quite get it, can you elaborate a bit plz? Currently, there are no functions exposed to python that would compute normals on Element
s. They exclusively operate on Condition
s. Am I missing something?
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.
CalculateConditionNormals should be defined al well, even if it is the same as CalculateNormals, for the sake of consistency IMHO
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.
Ah I see now. Fine by me, but I guess the standard CalculateNormals
(computing conditions' normals) should stay as well for backward compatibility, right?
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.
Yep
This PR is related to coupling the
CableNetApplication
with theMPMApplication
.Element
s instead ofCondition
s@matekelemen @philbucher