Code Monkey home page Code Monkey logo

rcbeam's Introduction

RCBeam Library

A java library for the analysis of reinforced concrete beams of any section.

Section Features

  • Hollow Sections
  • Any shape (provided with x,y coordinates) except rounded
  • Default unit is metric

Limitations

  • Horizontal line intersection in a polygon must not exceed 2.

Analysis Results

  • Moment
  • Curvature
  • Height of compression block

Creating Steel in Tension Object

// Creating object
SteelTension st = new SteelTension();

// Asigning the steel area, 2nd parameter is true if in metric units (in square millimeters)
st.setTotalArea(1200, Unit.METRIC);

Creating Steel in Compression Object

// Creating object
SteelCompression sc = new SteelCompression();

// Asigning the steel area, 2nd parameter is true if in metric units (square millimeters)
sc.setTotalArea(1200, Unit.METRIC);

// Set the location of compression steel reinf. from extrem concrete compression fiber (in millimeters)
sc.setdPrime(50, Unit.METRIC);

Creating BeamSection Object

// Creating object
BeamSection beam = new BeamSection();

// Create section shape
Section section = new Section();
List<Node> mainSection = new ArrayList();
mainSection.add(new BeamSectionNode(0, 0));
mainSection.add(new BeamSectionNode(0, 500));
mainSection.add(new BeamSectionNode(300, 500));
mainSection.add(new BeamSectionNode(300, 0));

section.setMainSection(mainSection);

beam.setSection(section);

// Define unit
beam.setUnit(Unit.METRIC);

// Define properties
beam.setFcPrime(21);
beam.setEffectiveDepth(450);
beam.setFy(275);

// Define reinforcements
beam.setSteelTension(st);
beam.setSteelCompression(sc);

Creating a hollow section

Hollow portions are needed to define a hollow sections or sections that may have more than 2 intersections if you draw a horizontal line at any point. For example, if you want to draw a section above with a v-shape cut at the top, you could use the following snippet as a guide:

List<Node> clipping = new ArrayList();
clipping.add(new Node(100, 500));
clipping.add(new Node(200, 500));
clipping.add(new Node(150, 350));
clipping.add(new Node(100, 500));

section.addClipping(clipping);

Creating an Analysis

// Creating an object, specifying the beam section to be analyzed
BeamAnalyses analyses = new BeamAnalyses(bs);

// Defining a result from the analysis
BeamAnalysisResult uncrackAnalysis = analyses.uncrackedAnalysis();

// Accessing the result
// Cracking moment
System.out.println(uncrackAnalysis.getMomentC());
// Curvature right before cracking
System.out.println(uncrackAnalysis.getCurvatureC());
// Minimum tensile reinforcement as required by ACI code
System.out.println(uncrackAnalysis.getMinimumSteelTensionArea());

Balanced Design Analysis

analyses.balancedAnalysis(StressDistribution.WHITNEY);
double Asb = analyses.getBalancedSteelTension();

Nominal Moment Capacity

BeamAnalysisResult limitAnalysis = analyses.beamCapacityAnalysis(StressDistribution.WHITNEY);
double Mn = limitAnalysis.getMomentC();

How to Contribute

Anyone is welcome to contribute via coding or anything. For coding contributions, please refer to the issues and find the topic that best suits you. If for a reason the topic you want to contribute isn't listed yet, feel free to create the issue and I'll try to respond as quickly as I could.

rcbeam's People

Contributors

alexiusacademia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

syncster31

rcbeam's Issues

Concrete Compression Stress Factor

Calculation of the compression stress factor for concrete as a factor of kd, k3 and b(y).

  • b(y) is the width of the beam at y distance from the neutral axis up to beam compression-most fiber.
  • k3 is the shape factor included in Lo which is:
    Lo = k1 * k3
  • kd is the distance from neutral axis to compression-most fiber of concrete.

Beam Analysis

Beam analysis for different stages (e.g. uncrack, crack, concrete yield, steel yield, inelastic).

TensileSteel class

Class to hold steel reinforcement at tension side and all its properties like stresses and strains.

Unit Conversion

Unit conversion utility to convert between English and Metric units.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.