Skip to content

Add mdpa generator app#845

Merged
jginternational merged 10 commits intomasterfrom
add-mdpa-generator
Oct 28, 2021
Merged

Add mdpa generator app#845
jginternational merged 10 commits intomasterfrom
add-mdpa-generator

Conversation

@jginternational
Copy link
Copy Markdown
Member

@jginternational jginternational commented Oct 27, 2021

Adding MDPA generator

That lego block
image

You can choose between 2 modes when writing conditions id:
image

If we apply 2 conditions over the same geometrical entity, there are 2 policies for the condition id numeration:

  • Unique ids
  • No repeat

In the following figure, both groups contain the same line (1)
image

Unique ids:

We remember the past assigned ids, so a face using the same entity will have always the same id

Begin Nodes
    1  -8.6507900000   1.2018100000   0.0000000000
    2  -8.6507900000   5.3514700000   0.0000000000
End Nodes


Begin Conditions LineCondition3D2N// GUI group identifier: Add SubModelPart Auto1
    1 0 2 1
End Conditions

Begin Conditions LineCondition3D2N// GUI group identifier: Add SubModelPart Auto2
End Conditions

Begin SubModelPart GENERIC_Add_SubModelPart_Auto1 // Group Add SubModelPart Auto1 // Subtree GENERIC
    Begin SubModelPartNodes
            1
            2
    End SubModelPartNodes
    Begin SubModelPartElements
    End SubModelPartElements
    Begin SubModelPartConditions
            1
    End SubModelPartConditions
End SubModelPart
Begin SubModelPart GENERIC_Add_SubModelPart_Auto2 // Group Add SubModelPart Auto2 // Subtree GENERIC
    Begin SubModelPartNodes
            1
            2
    End SubModelPartNodes
    Begin SubModelPartElements
    End SubModelPartElements
    Begin SubModelPartConditions
            1
    End SubModelPartConditions
End SubModelPart

No repeat ids

Every time we assign a condition to an entity, a new id is generated.

Begin Nodes
    1  -8.6507900000   1.2018100000   0.0000000000
    2  -8.6507900000   5.3514700000   0.0000000000
End Nodes


Begin Conditions LineCondition3D2N// GUI group identifier: Add SubModelPart Auto1
    1 0 2 1
End Conditions

Begin Conditions LineCondition3D2N// GUI group identifier: Add SubModelPart Auto2
    2 0 2 1
End Conditions

Begin SubModelPart GENERIC_Add_SubModelPart_Auto1 // Group Add SubModelPart Auto1 // Subtree GENERIC
    Begin SubModelPartNodes
            1
            2
    End SubModelPartNodes
    Begin SubModelPartElements
    End SubModelPartElements
    Begin SubModelPartConditions
            1
    End SubModelPartConditions
End SubModelPart
Begin SubModelPart GENERIC_Add_SubModelPart_Auto2 // Group Add SubModelPart Auto2 // Subtree GENERIC
    Begin SubModelPartNodes
            1
            2
    End SubModelPartNodes
    Begin SubModelPartElements
    End SubModelPartElements
    Begin SubModelPartConditions
            2
    End SubModelPartConditions
End SubModelPart

Condition numeration start

User can also set the starting id for conditions id, 1 by default

Copy link
Copy Markdown
Member

@rubenzorrilla rubenzorrilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is exactly what we need.

@jginternational jginternational merged commit 0492dd6 into master Oct 28, 2021
@rubenzorrilla
Copy link
Copy Markdown
Member

In write options I'd put

  • Unique condition
  • Overlap conditions

@jginternational jginternational deleted the add-mdpa-generator branch February 8, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants