Skip to content

Commit

Permalink
🐛 default value for relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed Jan 17, 2025
1 parent 2e44455 commit b8bcd3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FemDesign.Core/Loads/Load groups/LoadGroupBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial class LoadGroupBase
[XmlElement("load_case")]
public List<ModelLoadCaseInGroup> ModelLoadCase = new List<ModelLoadCaseInGroup>();// sequence: ModelLoadCaseInGroup
[XmlAttribute("relationship")]
public ELoadGroupRelationship Relationship { get; set; }
public ELoadGroupRelationship Relationship { get; set; } = ELoadGroupRelationship.Alternative;
[XmlIgnore]
public List<LoadCase> LoadCase = new List<LoadCase>(); // List of complete load cases

Expand Down
8 changes: 4 additions & 4 deletions FemDesign.Core/Loads/Load groups/LoadGrouprelationship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ namespace FemDesign.Loads
[System.Serializable]
public enum ELoadGroupRelationship
{
/// <summary> If all cases are to be applied together </summary>
[XmlEnum("entire")]
Entire,
/// <summary> If all cases are to be applied mutually exclusive </summary>
[XmlEnum("alternative")]
Alternative,
/// <summary> If all cases are to be applied simultaneously</summary>
[XmlEnum("simultaneous")]
Simultaneous,
/// <summary> If all cases are to be applied together </summary>
[XmlEnum("entire")]
Entire,
/// <summary> Custom combination pattern</summary>
[XmlEnum("custom")]
Custom,
}
}
}

0 comments on commit b8bcd3a

Please sign in to comment.