ISAAR.MSolve.SamplesConsole/Preprocessing/PreprocessorModel.cs
/// <summary>
/// Applies a ground motion to the whole structure. Only 1 can be active, but it may be applied to various freedom 
/// degrees with various magnifications.
/// </summary>
/// <param name="accelerogramPath">The absolute path of the file that contains the ground acceleration at each 
///     timestep.</param>
/// <param name="magnificationFactors">The acceleration at along each freedom degree will be equal to the value read 
///     from <paramref name="accelerogramPath"/> times the magnification factor for that degree. Do not include freedom 
///     degrees with 0 magnifications.</param>
/// <param name="timeStep">The time between two successive accelerations read from 
///     <paramref name="accelerogramPath"/>.</param>
/// <param name="TotalDuration">The total duration of the ground motion.</param>
/// <param name="magnificationFactor"></param>
Applies a ground motion to the whole structure. Only 1 can be active, but it may be applied to various freedom
degrees with various magnifications.
Applies a ground motion to the whole structure . Only 1 can be active but it may be applied to various freedom degrees with various magnifications .
public void SetGroundMotion(string accelerogramPath, Dictionary<IDofType, double> magnificationFactors, double timeStep,
            double TotalDuration)
        {
            this.TimeStep = timeStep;
            this.TotalDuration = TotalDuration;
            model.MassAccelerationHistoryLoads.Clear();
            foreach (var dofMagnificationPair in magnificationFactors)
            {
                model.MassAccelerationHistoryLoads.Add(
                    new MassAccelerationHistoryLoad(accelerogramPath, dofMagnificationPair.Value)
                    {
                        DOF = dofMagnificationPair.Key
                    });
            }
        }
public void SetGroundMotion ( string accelerogramPath , Dictionary < IDofType , double > magnificationFactors , double timeStep , double TotalDuration ) { this . TimeStep = timeStep ; this . TotalDuration = TotalDuration ; model . MassAccelerationHistoryLoads . Clear ( ) ; foreach ( var dofMagnificationPair in magnificationFactors ) { model . MassAccelerationHistoryLoads . Add ( new MassAccelerationHistoryLoad ( accelerogramPath , dofMagnificationPair . Value ) { DOF = dofMagnificationPair . Key } ) ; } }
Applies a ground motion to the whole structure.
Applies a ground motion to the whole structure .
accelerogramPath
string
The absolute path of the file that contains the ground acceleration at each
timestep.
The absolute path of the file that contains the ground acceleration at each timestep .
magnificationFactors
Dictionary<IDofType, double>
The acceleration at along each freedom degree will be equal to the value read
from  times the magnification factor for that degree. Do not include freedom
degrees with 0 magnifications.
The acceleration at along each freedom degree will be equal to the value read from times the magnification factor for that degree . Do not include freedom degrees with 0 magnifications .
timeStep
double
The time between two successive accelerations read from
.
The time between two successive accelerations read from .
TotalDuration
double
The total duration of the ground motion.
The total duration of the ground motion .
magnificationFactor
None