//Changes karamba support conditions to rfem support conditions private static void SupportConditions(ref NodalSupport rSupport, Karamba.Supports.Support kSupport) { if (kSupport._condition[0]) { rSupport.SupportConstantX = -1; } else { rSupport.SupportConstantX = 0; } if (kSupport._condition[1]) { rSupport.SupportConstantY = -1; } else { rSupport.SupportConstantY = 0; } if (kSupport._condition[2]) { rSupport.SupportConstantZ = -1; } else { rSupport.SupportConstantZ = 0; } if (kSupport._condition[3]) { rSupport.RestraintConstantX = -1; } else { rSupport.RestraintConstantX = 0; } if (kSupport._condition[4]) { rSupport.RestraintConstantY = -1; } else { rSupport.RestraintConstantY = 0; } if (kSupport._condition[5]) { rSupport.RestraintConstantZ = -1; } else { rSupport.RestraintConstantZ = 0; } }
public void addConstraint(Karamba.Supports.Support support) { string[] cons = new string[] { "PX", "PY", "PZ", "MX", "MY", "MZ" }; int i = 0; foreach (bool boolean in support._condition) { if (boolean) { constraints.Add(cons[i]); } // TODO: prescribed displacement i++; } }