-
Notifications
You must be signed in to change notification settings - Fork 245
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
Generic Model Generator from GiD #278
Comments
I am very much supporting this idea since e.g. in all the optimization applications we are dealing with in Kratos, we constantly need to generate sub-model parts for various different geometrical operations. |
+1 from my side too. |
I also support the idea, as long as it remains bounded to the 'developer' version of the GUI. I think the tree could allow you to print a group as a SubModelPart (maybe nested levels also?? @jginternational) and it should allow to select if you want to print the nodes, elements or conditions somehow. |
@maceligueta That is exactly what would be needed |
+1. I also think it will be very useful for developers |
So, as far as I understood, you want to create GiD groups of entities, and make them appear in the MDPA as submodelparts writing its entities (nodes and/or elements and/or conditions) but without having to assign these groups to any known condition (Load, Inlets...). As @maceligueta said, this could be done adding to the tree some kind of branch (only for developers use) to select/create those groups, and choice what do you want to print (nodes|nodes+conditions|nodes+elements) |
@jginternational Yes exactly the way you describe |
@jginternational one comment: i believe that for this to be useful you will need to generate the conditions on the same face always with the same Id. I am telling this because at CIMNE we had a very long internal discussion about this, and we are clear of the difficulties, however this is not the case for @philbucher and @dbaumgaertner. My point is that I believe (but please correct if i am wrong) that the expected behaviour is that the outer face of a given element is always assigned the same Id, so that the corresponding Condition is not generated multiple times. |
In fact, @RiccardoRossi , at this point, any entity assigned to a group has it's own id. It doesn't matter if it's a face or not. About the issue of keeping the same id for the same entity, the best way to achieve it is by using the GiD id. But this should be another issue |
@jginternational , i really don't understand what you are saying :-( let's consider you have a "condition" (using Kratos nomenclature) on the face that goes between node 1 and node 2. Say that we need that condition will be written multiple times to the mdpa, as part of multiple submodelparts. I am not clear if the Id of that condition will be always the same in all the submodelparts? |
to ease the discussion let's consider the following mesh
let's assume that we have the following conditions :
the behaviour i would expect and that i believe that @philbucher @dbaumgaertner are epxecting (guys please correct me if i am wrong on this) is something like (name of the modelparts describe the portion of the domain)
|
@RiccardoRossi This is what I would expect But doesn't that already work with the current GiD conditions? |
Hi @philbucher, it works fine with nodes, the problem is if you want a submodelpart to contain "Conditions" or "Elements". similarly you may have PointLoadConditions in order to be able to apply point loads while assembling the system. These are conditions and may belong to multiple modelparts. |
@RiccardoRossi but the above SubModelPart "AllSkin" contains all the conditions on the boundary. And each condition id is assigned to a special condition type, say slip condition, that I may use for some analysis. I don't see the conflict, yet. What am I missing here? |
Hi Daniel, you want: all of such conditions are to be applied by a process, which operates on submodelparts, namely on the "conditions" contained in each of such model parts. You need that the instance of condition contained in the "wall part" is the same as the one contained in the whole skin (two pointers to the same instance). The practical issue is that guaranteeing that such objects are correctly assigned an unique Id (which must remain the same when writing the different submodelparts) is far from trivial within GiD. |
I think there's no problem if the Id is the same across the modelparts. The problem appears when Kratos needs different Ids for different conditions that are the same triangle actually. We'll wait for Javi's opinion... |
Let me please open a new issue for this. The current issue is claiming for a way to assign a group somewhere in the tree, to be able to write as MDPA with elements and/or conditions. In the new issue we can argue about How the problemtype should write, you can find it here |
When creating models for development I need to create SubModelParts most of the times, containing various entities (Nodes, Conditions, Elements) of different types (e.g. SurfaceCondition)
Doing that with GiD is quite cumbersome since one has to got through one of the available Problemtype-Applications (Fluid, Structural,...) and the available Conditions (such as Loads, Inlet, Outlet, Displacement)
I.e. if I want a group defined in GiD to appear in the mdpa file I have to assign a random Condition to do it.
I am proposing a generic model generator to write mdpa files with which I can crate SubModelParts beyond the standard stuff where I can define the entities I want it to have.
This could be either integrated in the existing Problemtype-Applications or exist as a separate one
What is your opinion on this?
@KratosMultiphysics/technical-committee @KratosMultiphysics/kratos-core-team
@KratosMultiphysics/gidproblemtype
@KratosMultiphysics/fluid-dynamics @KratosMultiphysics/structural-mechanics
The text was updated successfully, but these errors were encountered: