-
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
[Core] Adding deprecation message to CheckSameModelPartUsingSkinDistanceProcess + check dimension #10715
Conversation
Co-authored-by: Philipp Bucher <[email protected]>
KratosMultiphysics.Process.__init__(self) | ||
|
||
# Assigning values | ||
self.model = model | ||
|
||
# Get first model part (must be defined anyway) | ||
self.model_part = self.model[settings["skin_model_part_1_name"].GetString()] | ||
self.dimension = self.model_part.ProcessInfo[KratosMultiphysics.DOMAIN_SIZE] |
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.
I'd check that the ProcessInfo
has the domain size to throw a meaningful error if not provided.
explicit CheckSameModelPartUsingSkinDistanceProcess( | ||
ModelPart& rSkinModelPart1, | ||
ModelPart& rSkinModelPart2, | ||
Parameters ThisParameters = Parameters(R"({})") | ||
) | ||
: mrSkinModelPart1(rSkinModelPart1), | ||
mrSkinModelPart2(rSkinModelPart2), | ||
mThisParameters(ThisParameters) |
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.
Why adding a pure model part constructor? The line of the project is to promote the model-based ones. If the reasoning behind is to use more than one model, in my opinion giving this possibility is not a good idea. Note that the line of the project is to have a unique Model
container, also in the multistage case.
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.
(yes, that's the idea, @pooyan-dadvand wants to use it to check it in CoSim and the same model is not guaranteed)
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.
Though this is a fair usage, I'm not sure if we want to open this possibility in the entire Kratos core. To be discussed in @KratosMultiphysics/technical-committee.
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.
Giving support to "multi-model" simulations is out of the scope of this PR and must be discussed by the @KratosMultiphysics/technical-committee.
|
Exactly, these come from the pre-model era. New ones must use the model. This is why I said "The line of the project is to promote the model-based ones". |
@KratosMultiphysics/technical-committee has been discussing about the points raised by @rubenzorrilla.
|
@rubenzorrilla I already removed (commented) the two modelpart constructor. In that case, this is ready. Anyway, the problem will be the CoSimulation design itself. |
for the record, Aditya and I raised those concerns VERY LOUDLY during the implementation of the "single model" strategy IMO this is a limitation of the "single model" design |
I wasn't in that discussion, I just realized that design limitation as soon as I started with the implementation... |
I forgot what this about... |
@rubenzorrilla do you remember? |
Hellooooooooooooooooooooooo |
kratos/python_scripts/check_same_model_part_using_skin_process.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Philipp Bucher <[email protected]>
kratos/processes/check_same_modelpart_using_skin_distance_process.h
Outdated
Show resolved
Hide resolved
Co-authored-by: Rubén Zorrilla <[email protected]>
Co-authored-by: Rubén Zorrilla <[email protected]>
Co-authored-by: Rubén Zorrilla <[email protected]>
At last!, I don't even remember what was this PR doing :P |
📝 Description
Adding deprecation message to CheckSameModelPartUsingSkinDistanceProcess + check dimension. Also adding pure model part constructor as well.
After comment from #10704
🆕 Changelog