Uploaded by Kam Paolino

Chapitre3

advertisement
Chapter III: Built a computer code to design the concrete mix ACI method
Introduction:
Concrete is a composite material made of several different elements, each of those
qualities can be very different. The quality of concrete can be affected by these materials'
characteristics. In order to attain the necessary workability, strength, and durability, the
correct elements must be chosen, and their proportions must be determined.
Construction becomes more cost-effective when the proper quantity of these materials is
chosen. Finding the exact proportions for the concrete mix is a difficult task that takes time if
done manually because material qualities vary greatly. In order to create programs for the mix
design of high strength concrete according to visual, an attempt has been made.
The resulting computer program removes the arduous hand calculations and aids in
mixing input variables proportionately for the necessary set of output parameters. The built
program is rigorously examined for accuracy and the findings are compared to numerous
challenges that were manually created. The high strength concrete mix design designed for
visual studio 2022 is accurate, time-saving, and computationally efficient.
57
Chapter III: Built a computer code to design the concrete mix ACI method
Programming with visual studio 2022 using Vb.net:
Microsoft's Visual Studio is an integrated development environment (IDE). Computer
programs, including as websites, web applications, online services, and mobile applications,
are developed using it. Microsoft's software development platforms, including Windows
Store, Windows Presentation Foundation, Windows API, and Windows Forms, are used by
Visual Studio. Both native and managed code can be generated by it.
A code editor that supports code refactoring and IntelliSense (the code completion
feature) is a feature of Visual Studio. Both a source-level debugger and a machine-level
debugger can be used with the integrated debugger. A code profiler, designer for creating GUI
apps, web designer, class designer, and database schema designer are further built-in tools. It
accepts plug-ins that add functionality at nearly every level, including support for source
control systems (like Subversion and Git) and the addition of new toolkits, such as editors and
visual designers for domain-specific languages or toolkits for different stages of the software
development lifecycle (such as the Azure DevOps client: Team Explorer).
If a language-specific service is available, Visual Studio enables the code editor and
debugger to support (to varied degrees) practically every programming language. It currently
supports 36 distinct programming languages. C, C++, C++/CLI, Visual Basic.NET, C#, F#,
JavaScript, Type Script, XML, XSLT, HTML, and CSS are just a few of the built-in
languages. Through plug-ins, more languages can be supported, including Python, Ruby,
Node.js, and M, among others. In the past, Java (and J#) were supported.
The Community edition of Visual Studio is the free version and is the most basic
version. "Free, fully-featured IDE for students, open-source and individual developers" is the
tagline for Visual Studio Community version.
Visual Studio 2022 is the most recent production-ready version as of January 10, 2023.
Extended is available for.Visual Studio 2013, 2015, and 2017.
58
Chapter III: Built a computer code to design the concrete mix ACI method
Overview of the User Graphical Interface of the suggested App
On the desk screen we press the button
the following software screen shows
us:
The screen has two main branches: Data Entry and Results
Required Data
Result
59
Chapter III: Built a computer code to design the concrete mix ACI method
To start entering the data we press the button
And
60
or
Chapter III: Built a computer code to design the concrete mix ACI method
The following screen appears:
61
Chapter III: Built a computer code to design the concrete mix ACI method
The requirement data is:
1. Statistical data available: Yes or No
2. Standard deviation (MPa)
62
Chapter III: Built a computer code to design the concrete mix ACI method
3. Exposure condition
We have three possibilities:
•
Concrete intended to have low permeability when exposed to water.
•
Concrete protected from exposure to freezing and thawing, application of deicing
chemicals or aggressive.
•
For corrosion protection for reinforced concrete exposed to chlorides from deicing
salts, salt water, brackish water, seawater, or spray from these sources.
4. Sulfate exposure:
Flexural strength is sometimes used on paving projects instead of’compressive strength;
however, flexural strength is avoided due to its greater variability.
For more information on flexural strength.
•
Negligible
•
Moderate
•
Severe
•
Very severe
63
Chapter III: Built a computer code to design the concrete mix ACI method
5. Air-Entrained concrete Yes or No
64
Chapter III: Built a computer code to design the concrete mix ACI method
6. Level of exposure
•
Mild Exposure
•
Moderate Exposure
•
Severe Exposure
7. Underwater concrete Yes or No
65
Chapter III: Built a computer code to design the concrete mix ACI method
8. Desired workability (Slump)
•
Between 25 and 50 mm
•
Between 75 and 100 mm
•
Between 150 and 175 mm
9. Design strength (MPa)
The specified compressive strength, fc`, at 28 days is the strength that is expected to be equal
exceeded by the average of any set of three consecutive strength tests.
66
Chapter III: Built a computer code to design the concrete mix ACI method
10. Maximum size of aggregate
67
Chapter III: Built a computer code to design the concrete mix ACI method
11. Coarse aggregate
a. Description
b. Type of Gravel
•
Angular gravel
•
Sub angular gravel
•
Gravel with some crushed particles
•
Rounded gravel
68
Chapter III: Built a computer code to design the concrete mix ACI method
c. Relative density (kg/m3)
d. Moisture content (%)
e. Fineness Modulus
f. Absorption (%)
69
Chapter III: Built a computer code to design the concrete mix ACI method
12. Fine aggregate
a. Description
70
Chapter III: Built a computer code to design the concrete mix ACI method
b. Relative density (kg/m3)
c.
Moisture content (%)
d. Fineness Modulus
e. Absorption (%)
13. Water reducer
a. Description
b. Reduce water by (%)
c. Dosage (g/Kg)
71
Chapter III: Built a computer code to design the concrete mix ACI method
14. Air entraining
a. Description
b. Dosage (g/Kg)
72
Chapter III: Built a computer code to design the concrete mix ACI method
15. Cement
a. Description
b. Relative density
Finally for look the result we press the button
73
Chapter III: Built a computer code to design the concrete mix ACI method
We get the following results:
Example:
74
Chapter III: Built a computer code to design the concrete mix ACI method
The used algorithm:
The underlying algorithm used by VB.NET, the programming language, is not specifically
referred to as an "algorithm." Instead, VB.NET is based on the .NET framework, which
provides a runtime environment and a set of libraries for executing VB.NET code.
VB.NET code is compiled into an intermediate language called Common Intermediate
Language (CIL), which is platform-agnostic. At runtime, the CIL code is further compiled
into machine code by the Common Language Runtime (CLR), which is part of the .NET
framework. The CLR handles tasks such as memory management, garbage collection, and
security.
The execution of VB.NET code follows a procedural flow, where instructions are
executed in the order they appear. VB.NET supports various programming constructs and
features such as variables, data types, control structures (e.g., if-else statements, loops),
functions, classes, and object-oriented programming principles.
When you write VB.NET code, it is essentially a sequence of instructions and logic that
the runtime executes. The specifics of how these instructions are executed and optimized
are handled by the .NET framework, which leverages the Just-In-Time (JIT) compilation
process to convert the CIL code into machine code for the target platform.
Overall, while VB.NET is not characterized by a specific algorithm, it is a programming
language that follows a specific syntax and execution flow, leveraging the .NET
framework's runtime and libraries to execute the code.
In the context of VB.NET, an algorithm refers to a step-by-step procedure or a set of
instructions used to solve a specific problem or achieve a particular outcome. Algorithms
in VB.NET, as in any programming language, are implemented using code constructs and
control flow statements.
Here is an example of a simple algorithm in VB.NET to find the sum of two numbers:
75
Chapter III: Built a computer code to design the concrete mix ACI method
In this algorithm, the steps involved are:
1. Declare variables num1 and num2 to store the numbers.
2. Assign values to num1 and num2.
3. Calculate the sum of num1 and num2 and store the result in the sum variable.
4. Display the result using Console.WriteLine ().
Algorithms can range from simple to complex, depending on the problem being solved.
They can involve various control structures such as loops, conditionals, and function calls
to achieve the desired functionality.
It's important to note that the algorithms themselves are not unique to VB.NET but can be
implemented in any programming language. VB.NET provides the syntax and constructs
necessary to write and execute algorithms effectively within the framework of the
language.
Overview of the program code source:
To provide an overview of a program's source code, I would need to see the actual code or at
least a specific code snippet. Without the code, I can't provide a detailed overview. However,
I can offer a general outline of what you might find in a typical program's source code.
76
Chapter III: Built a computer code to design the concrete mix ACI method
Here are the common components you may encounter:
1. Import/Using Statements: These statements allow the program to access external libraries
or namespaces, providing additional functionality and resources.
2. Declarations: This section typically includes variable declarations, constant definitions,
and class/interface/module declarations. Variables are used to store and manipulate data
throughout the program.
3. Functions/Methods: These are blocks of code that perform specific tasks or actions.
Functions accept input (parameters) and can return values. Methods are functions associated
with a class or object.
4. Control Flow Statements: These statements control the flow of execution in the program.
Examples include conditionals (if-else, switch), loops (for, while, do-while), and exception
handling (try-catch).
5. Event Handlers: In event-driven programming, you may find event handler methods that
respond to user actions or system events. These methods are triggered when a specific event
occurs.
6. Input/Output Operations: This section handles input and output operations, such as
reading from or writing to files, interacting with the console, or communicating with external
devices or networks.
7. Object-Oriented Concepts: If the program follows an object-oriented paradigm, you will
find classes, objects, inheritance relationships, and other OOP concepts. These components
help organize and structure the code.
8. Comments: Source code often includes comments that provide explanations,
documentation, or annotations for developers to understand the code's functionality and
purpose.
9. Error Handling: Programs typically include error handling mechanisms to catch and
handle runtime errors, ensuring graceful termination or recovery from unexpected situations.
10. Additional Features: Depending on the specific program's purpose, you may encounter
additional components such as database connections, API integrations, graphical user
interfaces (GUI), web service calls, and more.
It's important to note that the structure and content of the source code can vary significantly
depending on the programming language, the program's purpose, and the coding style of the
developer.
77
Chapter III: Built a computer code to design the concrete mix ACI method
Conclusion
VB.NET is a versatile programming language that is part of the .NET framework.
It offers a user-friendly syntax and a wide range of features that make it suitable
for various software development tasks. Here are some key points to summarize:
1. Ease of Use: VB.NET is known for its simplicity and ease of learning. It uses
English-like keywords and provides a friendly development environment for
beginners and experienced developers alike.
2. Object-Oriented Programming: VB.NET fully supports object-oriented
programming principles, allowing developers to create reusable and modular code
using classes, interfaces, and inheritance.
3. Integration with .NET Framework: VB.NET seamlessly integrates with
the .NET framework, which provides a robust set of libraries and APIs for
developing different types of applications, including desktop, web, and mobile
applications.
4. Rapid Application Development: VB.NET provides features like dragand-drop design and visual tools in the Visual Studio IDE, enabling developers to
quickly prototype and develop applications.
5. Database Connectivity: VB.NET has built-in support for
database
connectivity through ADO.NET, making it easy to work with various databases
and data manipulation tasks.
6. Interoperability: VB.NET can interoperate with other .NET languages,
such as C#, enabling developers to leverage existing code and components across
different projects.
7. Windows Forms and Web Development: VB.NET supports both Windows
Forms for desktop application development and web development using
technologies such as ASP.NET and Web Forms.
8. Event-Driven
Programming:
VB.NET
excels
in
event-driven
programming, allowing developers to create responsive applications by handling
user actions and system events.
9. Community and Resources: Being part of the .NET ecosystem, VB.NET
benefits from a large community of developers and ample resources, including
78
Chapter III: Built a computer code to design the concrete mix ACI method
documentation, forums, and third-party libraries.
Overall, VB.NET offers a balance between simplicity and power, making it a
suitable choice for a wide range of software development projects, from smallscale
utilities
to
large
enterprise
a
pplications.
79
Download