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); } }
/***************************************************/ /**** 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"); } }
/***************************************************/ /**** 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>()); }
/***************************************************/ /**** Helper Methods ****/ /***************************************************/ private void SetLoad(ILoad load, bool replace) { Engine.Base.Compute.RecordError("Load of type " + load.GetType().Name + " is not supported."); }
/***************************************************/ private bool CreateLoad(ILoad bhLoad) { Engine.Base.Compute.RecordError($"TheLoad type {bhLoad.GetType()} is not implemented!"); return(false); }