Skip to content

Commit

Permalink
🐛 imperfection analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Pellegrino committed Sep 16, 2024
1 parent 5c5c30a commit 8e9fb99
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
8 changes: 5 additions & 3 deletions FemDesign.Core/Calculate/Analysis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,11 @@ public void SetImperfectionAnalysis(FemDesignConnection connection)

internal void _setImperfectionAnalysis(List<Loads.LoadCombination> loadCombination)
{
//this.Comb.CombItem.Clear();

// check if
//check if comb is defined. if not, create a new one. if exist, clear it
if (this.Comb == null)
this.Comb = new Comb();
else
this.Comb.CombItem.Clear();

foreach (var element in loadCombination)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using FemDesign.Results;
using FemDesign.Calculate;
using System.Linq.Expressions;
using FemDesign.Loads;


namespace FemDesign.Examples
Expand Down Expand Up @@ -221,6 +222,18 @@ static void Main()

var combDefault = Calculate.Comb.Default();


var loadCombinations = new List<string> { "SNOW LEAD", "WIND LEAD", "ULS VERTICAL" };
var imperfectionSettings = new Calculate.Imperfection
(
loadCombinations,
new List<int> { 5, 4,2 },
true,
5,
true
);


// RUN ANALYSIS

Analysis analysis;
Expand All @@ -237,13 +250,17 @@ static void Main()
analysis = new Analysis(comb: noComb, calcCase: true, calcComb: true);
connection.RunAnalysis(analysis);


analysis = new Analysis(comb: combDefault, calcCase: true, calcComb: true);
connection.RunAnalysis(analysis);

analysis = new Analysis(freq: freqSettings, calcFreq: true);
connection.RunAnalysis(analysis);

analysis = new Analysis(stability: stabilitySettings, calcStab: true);
//analysis = new Analysis(stability: stabilitySettings, calcStab: true);
//connection.RunAnalysis(analysis);

analysis = new Analysis(imperfection: imperfectionSettings, calcImpf: true);
connection.RunAnalysis(analysis);
}
}
Expand Down

0 comments on commit 8e9fb99

Please sign in to comment.