/// <summary> /// Pressure load /// </summary> /// <param name="region"></param> /// <param name="loadDirection">Vector. Direction of force.</param> /// <param name="z0">Surface level of soil/water (on the global Z axis).</param> /// <param name="q0">Load intensity at the surface level.</param> /// <param name="qh">Increment of load intensity per meter (along the global Z axis).</param> /// <param name="loadCase">LoadCase.</param> /// <param name="comment">Comment.</param> /// <param name="loadProjection"></param> /// <param name="loadType"></param> public PressureLoad(Geometry.Region region, Geometry.FdVector3d loadDirection, double z0, double q0, double qh, LoadCase loadCase, string comment, bool loadProjection, ForceLoadType loadType) { // base this.EntityCreated(); this.LoadCase = loadCase.Guid; this.Comment = comment; this.LoadProjection = loadProjection; this.LoadType = loadType; this.Region = region; this.Direction = loadDirection; // specific this.Z0 = z0; this.Q0 = q0; this.Qh = qh; }
/// <summary> /// Internal constructor accessed by static methods. /// </summary> public PointLoad(Geometry.FdPoint3d point, Geometry.FdVector3d force, LoadCase loadCase, string comment, ForceLoadType type) { this.EntityCreated(); this.LoadCase = loadCase.Guid; this.Comment = comment; this.LoadType = type; this.Direction = force.Normalize(); this.Load = new LoadLocationValue(point, force.Length()); }
public LineLoad(Geometry.Edge edge, Geometry.FdVector3d constantForce, LoadCase loadCase, ForceLoadType loadType, string comment = "", bool constLoadDir = true, bool loadProjection = false) { this.EntityCreated(); this.LoadCase = loadCase.Guid; this.Comment = comment; this.ConstantLoadDirection = constLoadDir; this.LoadProjection = loadProjection; this.LoadType = loadType; this.Edge = edge; this.Normal = edge.CoordinateSystem.LocalZ; // Note that LineLoad normal and Edge normal are not necessarily the same. this.SetStartAndEndForces(constantForce, constantForce); }