Пример #1
0
        public double maxMoment(ILoad load)
        {
            if (load.GetType() == typeof(ContinuousLoad))
            {
                return((load.Value * this._lenght) / 8);
            }

            if (load.GetType() == typeof(FocusForce))
            {
                return((((load.Value * (_lenght - load.CenterOfGravity)) / _lenght)) * load.CenterOfGravity);
            }
            else
            {
                return(0);
            }
        }
Пример #2
0
        /***************************************************/
        /**** Public Methods                            ****/
        /***************************************************/

        public static void ToRFEM(this ILoad load, int loadId, int loadcaseId)
        {
            if (load != null)
            {
                BH.Engine.Base.Compute.RecordError("Load type '" + load.GetType() + "' area not supported");
            }
        }
Пример #3
0
        /***************************************************/
        /**** Private Methods - fall back               ****/
        /***************************************************/

        private static IEnumerable <IGeometry> Visualize(this ILoad load, double scaleFactor, bool displayForces, bool displayMoments, bool asResultants)
        {
            Reflection.Compute.RecordWarning("No load visualisation is yet implemented for load of type " + load.GetType().Name);
            return(new List <IGeometry>());
        }
Пример #4
0
        /***************************************************/
        /****       Helper Methods                      ****/
        /***************************************************/

        private void SetLoad(ILoad load, bool replace)
        {
            Engine.Base.Compute.RecordError("Load of type " + load.GetType().Name + " is not supported.");
        }
Пример #5
0
        /***************************************************/

        private bool CreateLoad(ILoad bhLoad)
        {
            Engine.Base.Compute.RecordError($"TheLoad type {bhLoad.GetType()} is not implemented!");
            return(false);
        }