Coder Social home page Coder Social logo

giobrol / ann_functions Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 42 KB

ANN functions to calculate some mechanical properties of unidirectional composites

MATLAB 100.00%
ann mechanical-engineering artificial-neural-networks micromechanics composites unidirectional-composites mechanical-properties shear-modulus transverse-modulus transverse-tensile-strength

ann_functions's Introduction

doi

doi

Description

This project aims to provide functions created to calculate some mechanical properties of unidirectional composites. These functions were created using artificial neural networks (ANN) based on data collected from the literature. For more details see the following articles:

https://doi.org/10.1016/j.jmrt.2023.01.195 (Yt)

https://doi.org/10.1016/j.compositesb.2019.107171 (G12 and Xt)

https://doi.org/10.1016/j.compositesb.2011.04.042 (E2)

The highlighted properties are: longitudinal shear modulus (G12), ultimate longitudinal tensile strength (Xt), transverse elastic modulus (E2) and the ultimate transverse tensile strength (Yt).

How to use

The functions follow a common principle of usage, where the input data needs to be provided, varying according to each property. As an example, let's consider the function that calculates the value of G12. This function requires three input values: volumetric fraction of fiber (Vf), shear modulus of fiber (Gf) and shear modulus of matrix (Gm).

Let's consider a laminate with a volumetric fraction of fibers of 0.6, made of glass fibers (Gf = 35 GPa), and with an epoxy resin (Gm = 2 GPa). To display the results, you can use either Python or MATLAB:

In Python, you can use the following code:

from your_module import G12_M_ANN

Vf = 0.6
Gf = 35
Gm = 2

G12 = G12_M_ANN(0.6, 35, 2)
print(f"G12 = {G12:.2f}")

In MATLAB, you can use the following code:

Vf = 0.6
Gf = 35
Gm = 2

[G12, ~] = G12_M_ANN(0.6, 35, 2)
fprintf("G12 = %.2f\n", G12);

Both codes will yield the same result:

G12 = 7.29

The value obtained, 7.29 GPa, represents the G12 value of the unidirectional composite, measured in gigapascals (GPa).

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.