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

[GiD model] Submodel part naming conflict #701

Open
mpentek opened this issue Jan 20, 2020 · 13 comments
Open

[GiD model] Submodel part naming conflict #701

mpentek opened this issue Jan 20, 2020 · 13 comments
Assignees
Labels
after release To tag those tasks to be done after the upcoming release bug question

Comments

@mpentek
Copy link
Member

mpentek commented Jan 20, 2020

When working with multiple geometry layers and groups for better handling of complex geometry, I have the following situation:
image
So I will end up with submodel parts when using Kratos with names such as:
FluidModelPart.Drag_mq/1
which is internally used for output (file) generation. I find the choice of the "/" as subgroup/child separator not the best choice. Was this intended to be like this, does it have to be like this? Is it something that comes from the Kratos problemtype? @rubenzorrilla I assume that a lot of processes might encounter errors due to special character such as "/" included in names.

@rubenzorrilla
Copy link
Member

Honestly, I have never used subgroups so far... In any case I agree that the slash is not the best character.

@jginternational can we control this?

@jginternational
Copy link
Member

From the 'kratos point of view' there are no groups, we'll have submodelparts

You are right -> The name of the submodelparts whose group is child is written like this:
"FluidModelPart.Outlet2D_Outlet/Child"
Maybe we can change it to this if we don't like the / as separator:
"FluidModelPart.Outlet2D_Outlet-Child"

Spaces are changed for underscores _
Child slashes could be replaced for regular score -

@philbucher
Copy link
Member

philbucher commented Jan 22, 2020

FluidModelPart.Outlet2D_Outlet-Child sounds good to me 👍 , it should work

@jginternational jginternational self-assigned this Jan 22, 2020
@jginternational jginternational added the after release To tag those tasks to be done after the upcoming release label Jan 22, 2020
@rubenzorrilla
Copy link
Member

rubenzorrilla commented Jan 22, 2020

The - is fine for me as well.

However, I think that the subgroups in GiD (1, 2, 3, 4 and 5 in @mpentek snapshot) should be subsubmodelparts in the *.mdpa. Is this possible @jginternational ?

@jginternational
Copy link
Member

Nope @rubenzorrilla
A submodelpart is created in the join of a Condition (on the problemtype) with a group
example:
If I assign a group to an Inlet I'll have the submodelpart Inlet_group
If I assign a group to an Inlet twice (same group, different time intervals) I'll have only 1 submodelpart Inlet_group

If I assign a subgroup group//subgroup to an inlet, the submodelpart created is expected to be
Inlet_group-subgroup

  • I hate the polysemy of the word Condition

@mpentek
Copy link
Member Author

mpentek commented Jan 23, 2020

For me the main concern for now is the format, meaning avoiding separators which are generally used for folder path and so on. If this were to be changed from "/" to "-", would it cause problems with compatibility, tests and so on @jginternational? I think it would by anyway worth it in the long run.

The discussion of model/submodel/subsubmodel is perhaps another aspect. Here @rubenzorrilla and @philbucher can say more.

@jginternational
Copy link
Member

@mpentek I'm merging that branch soon if there are no problems!

@mpentek mpentek closed this as completed Sep 10, 2020
@mpentek mpentek reopened this Nov 24, 2020
@mpentek
Copy link
Member Author

mpentek commented Nov 24, 2020

Re-opening this issue, as with the most current setup (Win10 + GiD15.0.1 + Kratos GiD problemtype - from here) I have the same ongoing issue: the naming will be with "/" or "//".

Am I missing something? I had the impression this was changed.

@philbucher
Copy link
Member

@jginternational can you please comment if this is solved?
This breaks many outputs in Kratos!

@jginternational
Copy link
Member

sorry. The requested changes have been pushed to master after checking all the tests.

I though I wrote this yesterday, but it seem that I forgot to click on the green button :(

@philbucher
Copy link
Member

coolt thx!

@mpentek mpentek reopened this Jun 2, 2021
@mpentek mpentek closed this as completed Jun 2, 2021
@sunethwarna sunethwarna reopened this Jun 2, 2021
@sunethwarna
Copy link
Member

Hi, Is there a way to avoid using "-" when naming model parts, submodel parts when used with groups? Because hdf5 cannot write names with "-" (no idea why tho). @jginternational . These "-" are automatically generated when you have groups within groups :/

@mpentek
Copy link
Member Author

mpentek commented Jun 2, 2021

"-" was the proposal to get away from "//", which was conflicting with path separators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
after release To tag those tasks to be done after the upcoming release bug question
Projects
None yet
Development

No branches or pull requests

5 participants