private void readLoadGroundDisplacements(XmlNode node)
{
uint id = uint.Parse(readAttribute(node, "Joint", "0"));
string lcName = readAttribute(node, "LoadCase", "").Trim();
lcName = (lcName.Length > 0) ? lcName : Culture.Get("Case");
LoadCase lCase = model.LoadCases[lcName];
Joint obj = model.JointList[id];
if (obj != null && lCase != null)
{
AssignedLoads loads = obj.Loads;
// readAttribute(node, "CoordSys", "GLOBAL");
GroundDisplacementLoad load = new GroundDisplacementLoad();
load.Tx = float.Parse(readAttribute(node, "U1", "0"));
load.Ty = float.Parse(readAttribute(node, "U2", "0"));
load.Tz = float.Parse(readAttribute(node, "U3", "0"));
load.Rx = model.UnitSystem.Rad2Deg(float.Parse(readAttribute(node, "R1", "0")));
load.Ry = model.UnitSystem.Rad2Deg(float.Parse(readAttribute(node, "R2", "0")));
load.Rz = model.UnitSystem.Rad2Deg(float.Parse(readAttribute(node, "R3", "0")));
loads.Add(load, lCase);
}
}