Ejemplo n.º 1
0
        private void AddLoadCasesToOpenModel()
        {
            LoadCase loadCase = new LoadCase();

            loadCase.Name = "LC1";
            loadCase.Id   = 1;
            loadCase.Type = LoadCaseSubType.PermanentStandard;

            LoadGroupEC loadGroup = null;

            loadGroup           = new LoadGroupEC();
            loadGroup.Id        = 1;
            loadGroup.Name      = "LG1";
            loadGroup.GammaQ    = 1.5;
            loadGroup.Psi0      = 0.7;
            loadGroup.Psi1      = 0.5;
            loadGroup.Psi2      = 0.3;
            loadGroup.GammaGInf = 1.0;
            loadGroup.GammaGSup = 1.35;
            loadGroup.Dzeta     = 0.85;
            openStructModel.AddObject(loadGroup);

            loadCase.LoadGroup = new ReferenceElement(loadGroup);

            openStructModel.AddObject(loadCase);
        }
Ejemplo n.º 2
0
        private void AddLoadCaseToOpenModel(KarambaIDEA.Core.LoadcaseRAZ _loadCaseRAZ)
        {
            LoadCase loadCase = new LoadCase();

            loadCase.Name = _loadCaseRAZ.name;
            loadCase.Id   = _loadCaseRAZ.id;
            loadCase.Type = LoadCaseSubType.PermanentStandard;

            LoadGroupEC loadGroup = null;

            loadGroup           = new LoadGroupEC();
            loadGroup.Id        = _loadCaseRAZ.id;
            loadGroup.Name      = "LG" + _loadCaseRAZ.id;
            loadGroup.GammaQ    = 1.5;
            loadGroup.Psi0      = 0.7;
            loadGroup.Psi1      = 0.5;
            loadGroup.Psi2      = 0.3;
            loadGroup.GammaGInf = 1.0;
            loadGroup.GammaGSup = 1.35;
            loadGroup.Dzeta     = 0.85;
            openModel.AddObject(loadGroup);

            loadCase.LoadGroup = new ReferenceElement(loadGroup);


            openModel.AddObject(loadCase);

            CombiInputEC combi = new CombiInputEC();

            combi.Name                 = "CO" + _loadCaseRAZ.id;
            combi.TypeCombiEC          = TypeOfCombiEC.ULS;
            combi.TypeCalculationCombi = TypeCalculationCombiEC.Linear;
            combi.Items                = new List <CombiItem>();
            CombiItem it = new CombiItem();

            it.Id       = 1;
            it.LoadCase = new ReferenceElement(loadCase);
            it.Coeff    = 1.0;
            combi.Items.Add(it);
            openModel.AddObject(combi);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Add load cases to the IDEA open model
        /// </summary>
        /// <param name="model">Open model</param>
        private static void AddLoadCasesToIOM(OpenModel model)
        {
            // create LG1
            LoadGroupEC LG1 = new LoadGroupEC();;

            LG1.Id        = 1;
            LG1.Name      = "PERM1";
            LG1.Relation  = Relation.Standard;
            LG1.GroupType = LoadGroupType.Permanent;
            LG1.GammaQ    = 1.35;
            LG1.Dzeta     = 0.85;
            LG1.GammaGInf = 1;
            LG1.GammaGSup = 1.35;
            model.AddObject(LG1);

            // create LC1
            LoadCase LC1 = new LoadCase();

            LC1.Id        = 1;
            LC1.Name      = "SelfWeight";
            LC1.LoadType  = LoadCaseType.Permanent;
            LC1.Type      = LoadCaseSubType.PermanentStandard;
            LC1.Variable  = VariableType.Standard;
            LC1.LoadGroup = new ReferenceElement(LG1);

            // create LC2
            LoadCase LC2 = new LoadCase();

            LC2.Id        = 2;
            LC2.Name      = "PernamentLoading";
            LC2.LoadType  = LoadCaseType.Permanent;
            LC2.Type      = LoadCaseSubType.PermanentStandard;
            LC2.Variable  = VariableType.Standard;
            LC2.LoadGroup = new ReferenceElement(LG1);

            // create LG2
            LoadGroupEC LG2 = new LoadGroupEC();;

            LG2.Id        = 2;
            LG2.Name      = "VAR1";
            LG2.Relation  = Relation.Exclusive;
            LG2.GroupType = LoadGroupType.Variable;
            LG2.GammaQ    = 1.5;
            LG2.Dzeta     = 0.85;
            LG2.GammaGInf = 0;
            LG2.GammaGSup = 1.5;
            LG2.Psi0      = 0.7;
            LG2.Psi1      = 0.5;
            LG2.Psi2      = 0.3;
            model.AddObject(LG2);

            // create LC3
            LoadCase LC3 = new LoadCase();

            LC3.Id        = 3;
            LC3.Name      = "LiveLoad";
            LC3.LoadType  = LoadCaseType.Variable;
            LC3.Type      = LoadCaseSubType.VariableStatic;
            LC3.Variable  = VariableType.Standard;
            LC3.LoadGroup = new ReferenceElement(LG2);

            // add load cases
            model.AddObject(LC1);
            model.AddObject(LC2);
            model.AddObject(LC3);
        }