Search Results for

    Show / Hide Table of Contents

    Interface IRectangleProfile

    Defines a rectangular section profile.

    Depth Width Origin

    Inherited Members
    ITrapezoidProfileAbstractInterface.TopWidth
    ITrapezoidProfileAbstractInterface.BottomWidth
    ITrapezoidProfileAbstractInterface.Depth
    IProfile.Rotation
    IProfile.IsReflectedY
    IProfile.IsReflectedZ
    IProfile.Area()
    IProfile.LocalAxisSecondMomentOfArea()
    IProfile.PrincipalAxisSecondMomentOfArea()
    IProfile.ShearAreaFactor()
    IProfile.TorsionConstant()
    IProfile.ElasticModulus()
    IProfile.PlasticModulus()
    IProfile.ElasticCentroid()
    IProfile.RadiusOfGyration()
    IProfile.SurfaceAreaPerUnitLength()
    IProfile.Description()
    IProfile.Validate()
    Namespace: Oasys.Profiles
    Assembly: AdSec_API_IDL.dll
    Syntax
    public interface IRectangleProfile : ITrapezoidProfileAbstractInterface, IProfile
    Remarks

    IRectangleProfile inherits ITrapezoidProfileAbstractInterface and IProfile.

    The rectangle is centered at the origin of its local coordinate system.

    Examples
    • C#
    • Python
    using Oasys.Profiles;
    using OasysUnits;
    Length depth = Length.FromMillimeters(800);
    Length width = Length.FromMillimeters(500);
    IRectangleProfile profile = IRectangleProfile.Create(depth, width);

    Example creating a rectangular profile.

    import oasys.adsec
    from OasysUnits import Length
    from OasysUnits.Units import LengthUnit
    from Oasys.Profiles import IRectangleProfile
    depth = Length(float(800), LengthUnit.Millimeter)
    width = Length(float(500), LengthUnit.Millimeter)
    profile = IRectangleProfile.Create(depth, width)

    Example creating a rectangular profile.

    Properties

    Width

    Width of the rectangle, in y-axis direction.

    Declaration
    Length Width { get; set; }
    Property Value
    Type Description
    OasysUnits.Length
    Exceptions
    Type Condition
    System.ArgumentException

    When the width is not a positive and finite value.

    Methods

    Create(Length, Length)

    Creates a new IRectangleProfile profile from its Depth and Width

    Declaration
    static IRectangleProfile Create(Length depth, Length width)
    Parameters
    Type Name Description
    OasysUnits.Length depth

    Defines the profile's depth

    OasysUnits.Length width

    Defines the profile's width

    Returns
    Type Description
    IRectangleProfile

    Rectangular profile with the specified width.

    Exceptions
    Type Condition
    System.ArgumentException

    When any of its dimensions is not a positive and finite value.

    In This Article
    Back to top Copyright ©Oasys Limited 2021
    8 Fitzroy Street, London, W1T 4BJ
    Oasys Limited is registered in England and Wales № 01454051