ISAAR.MSolve.SamplesConsole/Preprocessing/PreprocessorModel.cs
/// <summary>
/// Divides the provided load by the number of provided nodes and then applies it to all of them.
/// </summary>
/// <param name="nodes"></param>
/// <param name="freedomDegree">The axis of the nodal load.</param>
/// <param name="signedMagnitudeTotal">The magnitude of the nodal load with its sign.</param>
Divides the provided load by the number of provided nodes and then applies it to all of them.
Divides the provided load by the number of provided nodes and then applies it to all of them .
public void DistributeNodalLoadEvenly(IEnumerable<Node> nodes, IDofType freedomDegree, double signedMagnitudeTotal)
        {
            int numNodes = nodes.Count();
            double individualLoad = signedMagnitudeTotal / numNodes;
            foreach (Node node in nodes) ApplyNodalLoad(node, freedomDegree, individualLoad);
        }
public void DistributeNodalLoadEvenly ( IEnumerable < Node > nodes , IDofType freedomDegree , double signedMagnitudeTotal ) { int numNodes = nodes . Count ( ) ; double individualLoad = signedMagnitudeTotal / numNodes ; foreach ( Node node in nodes ) ApplyNodalLoad ( node , freedomDegree , individualLoad ) ; }
Divides the provided load by the number of provided nodes and then applies it to all of them.
Divides the provided load by the number of provided nodes and then applies it to all of them .
nodes
IEnumerable<Node>
None
freedomDegree
IDofType
The axis of the nodal load.
The axis of the nodal load .
signedMagnitudeTotal
double
The magnitude of the nodal load with its sign.
The magnitude of the nodal load with its sign .