LoadInPoint Class |
Namespace: IdeaRS.OpenModel.Loading
The LoadInPoint type exposes the following members.
Name | Description | |
---|---|---|
LoadInPoint |
Constructor
|
Name | Description | |
---|---|---|
Direction |
Local / global
| |
Fx |
Force in X direction
| |
Fy |
Force in Y direction
| |
Fz |
Force in Z direction
| |
Geometry |
Gets, sets geometry
| |
Id |
Element Id
(Inherited from OpenElementId.) | |
Mx |
Moment about the x-axis
| |
My |
Moment about the y-axis
| |
Mz |
Moment about the z-axis
|
//Creating the model OpenModel openModel = new OpenModel(); //Create nodes Point3D pointA = new Point3D(); pointA.X = 0; pointA.Y = 0; pointA.Z = 0; openModel.AddObject(pointA); Point3D pointB = new Point3D(); pointB.X = 0; pointB.Y = 0; pointB.Z = 1.2; openModel.AddObject(pointB); Point3D pointC = new Point3D(); pointC.X = 0; pointC.Y = 0; pointC.Z = 2.4; openModel.AddObject(pointC); //Line between nodes LineSegment3D line1 = new LineSegment3D(); line1.StartPoint = new ReferenceElement(pointA); line1.EndPoint = new ReferenceElement(pointB); //LCS of line line1.LocalCoordinateSystem = new CoordSystemByZup(); openModel.AddObject(line1); //Line between nodes LineSegment3D line2 = new LineSegment3D(); line2.StartPoint = new ReferenceElement(pointB); line2.EndPoint = new ReferenceElement(pointC); //LCS of line line2.LocalCoordinateSystem = new CoordSystemByZup(); openModel.AddObject(line2); //Load case LoadCase loadCase = new LoadCase(); //... openModel.AddObject(loadCase); //Point loading impulse in the node - int rthe LCS of node = GCS LoadInPoint loadPoint = new LoadInPoint(); loadPoint.Geometry = new ReferenceElement(pointB); loadPoint.Fx = -5e3; //in the global X direction openModel.AddObject(loadPoint); loadCase.LoadsInPoint.Add(new ReferenceElement(loadPoint));