/// <summary>
///
/// </summary>
/// <param name="start"></param>
/// <param name="end"></param>
/// <param name="material"></param>
/// <param name="crossSection"></param>
/// <returns></returns>
public Linear1DBeam CreateLinear1DBeam(IFiniteElementNode start, IFiniteElementNode end, IMaterial material, ICrossSection crossSection)
{
Guard.AgainstInvalidState(() => { return(!Linear1DBeam.IsASupportedModelType(this.ModelType)); },
"Linear1DBeams are not available in a model of type {0}",
this.ModelType);
Linear1DBeam newBeam = new Linear1DBeam(start, end, material, crossSection);
if (this.repository != null)
{
this.repository.Add(newBeam);
}
return(newBeam);
}